Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created February 4, 2014 16:50
Show Gist options
  • Save donaldallen/8807583 to your computer and use it in GitHub Desktop.
Save donaldallen/8807583 to your computer and use it in GitHub Desktop.
<div class="chart" id="chart1"></div>
[ip4]{
"template": ip4.barChart(), // Can be changed to ip4.pieChart(), ip4.lineChart()
"parentElement": "#chart1",
"data": {
"reader": ip4.dataReader()
.data([
<!— INSERT ROWS HERE, REPLACING THIS LINE —>
])
},
"d3": {
"yLabel": "",
"color": d3.scale.ordinal().range(["#1277BD", "#12B0B9", "#4CC1AF", "#16a085", "#34495e", "#7f8c8d"])
}
}[/ip4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment