简体   繁体   English

d3.js区域图-JSON数据未绑定到图表

[英]d3.js area chart - json data not binding to chart

I'm stumped trying to get this json data to render. 我为获取此json数据而感到困惑。 Thank you for the suggestions below I made some progress trying your solutions but not quite there yet. 感谢您提供以下建议,我在尝试您的解决方案方面取得了一些进展,但还没有完成。

Thank you. 谢谢。

jsfiddle: http://jsfiddle.net/tommy6s/9dv55t4q/

d3.json("http://www.corsproxy.com/dvl.thomascooper.com/data/kruggerrand.json",
function(error, data) { ...fiddle data...}

The variable type is undefined. 变量type未定义。 It's also not necessary. 也没有必要。

You might also want to think twice about posting your auth_token on a public web site like stackoverflow or jsfiddle. 您可能还需要三思而后行将auth_token发布到stackoverflow或jsfiddle这样的公共网站上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM