This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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) { | |
var myChart = new dimple.chart(svg, data); | |
myChart.setBounds(60, 30, 510, 310) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="chartContainer"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://dimplejs.org/dist/dimple.v1.js"></script> | |
<script type="text/javascript"> | |
// This code should support any data in this structure changing the data here | |
// should be dealt with by the the code below. The y axis min and max must | |
// be able to contain the data required or the results will be incorrect. | |
// Also the "bar" elements must have the correct value (sum of previous "bar" | |
// + intervening "var" elements) |