d3.js - c3js / highcharts multi series nested json chart with many data points -
i'm trying figure out whether possible generate c3js chart following json structure.
[ { "name": "linetest1", "data": [ {"date": 1452049754,"value": 118}, {"date": 1452049759,"value": 120} ] }, { "name": "linetest2", "data": [ {"date": 1452049758,"value": 54}, {"date": 1452049759,"value": 59} ] } ] i've seen mentions in documentations of using xs or keys: chart options appear setting x , y axis specific key in flat data array although haven't been able find docs or examples / google related multi series nested json, or how handle that.
with data above objective render 2 lines on chart. line 1 having title of linetest1 , line2 having title of linetest2. data points x axis line 1 use data.date timeseries , data.y value.
is possible? if not there better way this? if possible explain how can accomplished? loading data via url, have seen mentions stating better use d3 load json instead of using c3 like:
url: '/rest/chart_data_endpoint.json', type: 'line', mimetype: 'json' i have not yet been able single chart working current json structures don't have fiddle start with. other dilemma there may several lines , each have 5k data points / line? i'm curious whether highcharts not better option seem claim can 1mil points ajax load although i'm still in same boat not knowing js or libraries enough know pick or start.
Comments
Post a Comment