Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@
rows='[["Something", 1]]'>
</google-chart>

<p>A simple <code>google-chart-dashboard</code> looks like this:</p>

<google-chart-dashboard
data='[
["Name", "Donuts eaten"],
["Michael" , 5],
["Elisa", 7],
["Robert", 3],
["John", 2],
["Jessica", 6],
["Aaron", 1],
["Margareth", 8]
]'>
<google-chart type="pie" options='{
"width": 300,
"height": 300,
"pieSliceText": "value",
"legend": "right"
}'></google-chart>
<google-chart-control
type="number-range-filter"
options='{ "filterColumnLabel": "Donuts eaten" }'></google-chart-control>
</google-chart-dashboard>

<p>Charts can be resized with CSS, but you'll need to call the <code>drawChart</code> method when the size changes.</p>
<p>Here's a basic responsive example using only CSS and JS (You could also use <code>&lt;iron-media-query&gt;</code>):</p>

Expand Down
Loading