【发布时间】:2018-01-28 20:12:46
【问题描述】:
我想在 Jekyll 草案中使用 d3.js 制作一个chopleth。
但不知何故,Jekyll 正在更改我的 JSON 文件
{"type":"FeatureCollection", "features":[{"type":"Feature", "id":"01",
到
{"type"=>"FeatureCollection", "features"=>[{"type"=>"Feature", "id"=>"01",
我希望 jekyll 将我的 json 文件放入 d3.json() 函数中,如下所示:
d3.json({{site.data.us-states}}, function(json){
svg.selectAll("path") blah blah
us-states 是我的 us-states.json 文件,但 Jekyll 到处都是 =>
有人可以帮助我吗?
【问题讨论】:
标签: javascript json d3.js jekyll liquid