D3 multi-series line chart from pivoted JSON

前端 未结 2 1100
我在风中等你
我在风中等你 2021-02-08 21:45

There is a great example of a multi-series line chart here http://bl.ocks.org/mbostock/3884955 and if the tsv data were laid out I\'m sure it would look something like this:

2条回答
  •  我寻月下人不归
    2021-02-08 22:08

    One answer, if i want read this date of file/url with json equals, how i read this??

    Solution:

    d3.json("data.json", function(error, data) {
    color.domain(data.map(function(key) {
    return key.data;
    }));
    

提交回复
热议问题