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 2019/10/06 06:25:28 UTC

[GitHub] [incubator-echarts] alex2wong commented on issue #9990: Can I control the order of stack line charts with an attribute?

alex2wong commented on issue #9990: Can I control the order of stack line charts with an attribute? 
URL: https://github.com/apache/incubator-echarts/issues/9990#issuecomment-538716245
 
 
   @tz310200  After diving into source code around  https://github.com/alex2wong/incubator-echarts/blob/master/src/util/model.js#L150 for a while.
   
   I suppose this mappingToExists function has ability to merge new chart option to existing ones by series.id attr.  Which means you can specify the series of data you wanna put at bottom with the same id as the previous bottom one. then the new series would be rendered at its new order.
   
   For instance, I provide a new forked codesandbox. 
   https://codesandbox.io/s/echarts-series-stackid-g8dvh
   
   You can see the new added series are rendered replacing the previous bottom one.. wish it help, thx
   

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org