阅读背景:

尝试在不使用GET的情况下将JSON加载到d3 treemap中

来源:互联网 

I am using https://bost.ocks.org/mike/treemap/ to attempt to incorporate a D3 treemap into Splunk. However, it errors on the d3.JSON("flare.json") as it can't find the file. I have tried putting the JSON array right into the js and calling root = JSON.parse(myjson), but then then it arrays with unexpected character JSON.parse. If you look at the js from Bostick's page, you can see that I can't just remove the d3.JSON, because it calls back to the functions that actually render the treemap.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: