Skip to content

Commit c0c39a5

Browse files
committed
Adds the Material Bar chart.
1 parent c279329 commit c0c39a5

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

demo/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
rows='[["Something", 1]]'>
2929
</google-chart>
3030

31+
<p>And here is the material bar chart:</p>
32+
33+
<google-chart
34+
type="md-bar"
35+
cols='[{"label": "Data", "type": "string"},{"label": "Value", "type": "number"}]'
36+
rows='[["Something", 1]]'></google-chart>
37+
3138
<p>Charts can be resized with CSS, but you'll need to call the <code>drawChart</code> method when the size changes.</p>
3239
<p>Here's a basic responsive example using only CSS and JS (You could also use <code>&lt;iron-media-query&gt;</code>):</p>
3340

google-chart-loader.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
'bar': {
1919
ctor: 'BarChart',
2020
},
21+
'md-bar': {
22+
ctor: 'Bar',
23+
pkg: 'bar',
24+
},
2125
'bubble': {
2226
ctor: 'BubbleChart',
2327
},

0 commit comments

Comments
 (0)