You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/31 05:30:15 UTC

[GitHub] [incubator-echarts] dileepyelleti opened a new issue #10591: Dynamic multi line chart based on Json data

dileepyelleti opened a new issue #10591: Dynamic multi line chart based on Json data
URL: https://github.com/apache/incubator-echarts/issues/10591
 
 
   
   I am trying to plot time line chart with multiple lines (number of lines is dynamic based on Json data). I am getting Json data as mentioned. I would like to have each line plotted for each product. Is it possible with current data structure? If not how should I convert data so that echarts supports.
   
   [
    {date: "2019-05-21 00:00:00 UTC", value: 100, product: 'p1'},
    {date: "2019-05-21 00:00:00 UTC", value: 50, product: 'p2'},
    {date: "2019-05-19 00:00:00 UTC", value: 200, product: 'p3'},
    {date: "2019-05-18 00:00:00 UTC", value: 70, product: 'p1'},
    {date: "2019-05-18 00:00:00 UTC", value: 125, product: 'p2'},
    {date: "2019-05-18 00:00:00 UTC", value: 55, product: 'p3'}
   ]
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org