Color Axis Example

gh-pages
John Kiernander 2013-05-30 23:42:49 +01:00
parent 69c6d8e1ee
commit 48be690867
2 changed files with 18 additions and 7077 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,18 @@
<div id="chartContainer">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="/dist/dimple.v1.js"></script>
<script type="text/javascript">
var svg = dimple.newSvg("#chartContainer", 590, 400);
d3.tsv("/data/example_data.tsv", function (data) {
data = dimple.filterData(data, "SKU", "Theta 18 Pack Standard");
var myChart = new dimple.chart(svg, data);
myChart.addCategoryAxis("x", "Month");
myChart.addMeasureAxis("y", "Unit Sales");
myChart.addColorAxis("Price");
myChart.addSeries(null, dimple.plot.line);
myChart.draw();
});
</script>
</div>