You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/11/15 03:15:49 UTC

[GitHub] [echarts] Valar103769 commented on issue #17912: [Bug] dataSet.source 支持对象数组, series.data不支持吗?

Valar103769 commented on issue #17912:
URL: https://github.com/apache/echarts/issues/17912#issuecomment-1314705190

   > 
   
   请教一下实现方式,
   异步返回对象数组数据,需要加入一条线, 在无法使用
   ```
   myChart.setOption({
       xAxis: {
         data: data.categories
       },
       series: [
         {
           // 根据名字对应到相应的系列
           name: '销量',
           data: data.data
         }
       ]
     });
   ```
   `series.data` 来更新数据时, 应该怎么实现呢? 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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