Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running examples locally #293

Open
singla opened this issue Dec 31, 2019 · 0 comments
Open

Running examples locally #293

singla opened this issue Dec 31, 2019 · 0 comments

Comments

@singla
Copy link

singla commented Dec 31, 2019

Hi,
I tried to run example "bars_vertical_grouped.html" on my local machine instead of local server.
I modified the code as below -. Basically gave global reference to d3.js and copied example.tsv to my local directory (same as the html file) and gave absolute path. But when I open html, no value is displayed on the chart. Any thoughts on how to correct this please?

<script src="http://d3js.org/d3.v4.min.js"></script> <script src="http://dimplejs.org/dist/dimple.v2.3.0.min.js"></script> <script type="text/javascript"> var svg = dimple.newSvg("#chartContainer", 590, 400); d3.tsv("D:\myDimple\example_data.tsv", function (data) { var myChart = new dimple.chart(svg, data); myChart.setBounds(60, 30, 510, 330) myChart.addCategoryAxis("x", ["Price Tier", "Channel"]); myChart.addMeasureAxis("y", "Unit Sales"); myChart.addSeries("Channel", dimple.plot.bar); myChart.addLegend(65, 10, 510, 20, "right"); myChart.draw(); }); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant