Skip to content

Commit 1178867

Browse files
committed
Adds the Material Bar chart.
1 parent ee3ec0f commit 1178867

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

demo/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ <h2>Chart gallery</h2>
190190
rows='[["Jan", 31],["Feb", 28],["Mar", 31],["Apr", 30],["May", 31],["Jun", 30]]'>
191191
</google-chart>
192192

193+
<p>And here is the material bar chart:</p>
194+
195+
<google-chart
196+
type="md-bar"
197+
options='{"title": "Days in a month"}'
198+
cols='[{"label": "Month", "type": "string"},{"label": "Days", "type": "number"}]'
199+
rows='[["Jan", 31],["Feb", 28],["Mar", 31],["Apr", 30],["May", 31],["Jun", 30]]'></google-chart>
200+
193201
<p>Here's a bubble chart:</p>
194202

195203
<google-chart

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)