You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "helgasoft (via GitHub)" <gi...@apache.org> on 2023/02/21 04:34:41 UTC

[GitHub] [echarts] helgasoft commented on issue #18290: [Feature] use 'dataset' as a source for 'graph', to make a filter possible in toolbox

helgasoft commented on issue #18290:
URL: https://github.com/apache/echarts/issues/18290#issuecomment-1437846440

   As you already figured out, _graph_ series **cannot** get their data from _datasets_ .  _Line_ series can, because they have the [datasetIndex](https://echarts.apache.org/en/option.html#series-line.datasetIndex) attribute, graphs do not (and I doubt this is a good feature candidate).
   
   Graphs need a **data source pair** - [nodes](https://echarts.apache.org/en/option.html#series-graph.nodes) and [links](https://echarts.apache.org/en/option.html#series-graph.links).
   Try updating _series[0].nodes_ and _series[0].links_  in myChart.setOption() ? It should work.


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