我在从dimple.js加载以下图表的示例代码时遇到了问题:http://dimplejs.org/advanced_examples_viewer.html?id=advanced_storyboard_control
我所做的唯一更改是将其保存为.csv而不是.tsv。代码(index.html)另存为:"C:\website\public\index.html“,数据文件另存为:"C:\website\public\data\example_data.csv”
有什么原因不能加载吗?
注意:酒窝示例数据文件可以从:http://dimplejs.org/data/example_data.tsv我在index.html中的代码与酒窝示例页面中的代码完全相同,除了第7行对数据文件的引用之外,我使用:
d3.csv("/data/example_data.csv",function (data) {
发布于 2016-04-27 08:24:11
当引用.tsv文件而不是.csv文件时,没有问题。
然而,StillNot确定了为什么文件格式对此很重要。
https://stackoverflow.com/questions/36864847
复制相似问题