Bilge opened a new issue #14700:
URL: https://github.com/apache/echarts/issues/14700
### What problem does this feature solve?
The stacking order of a stacked line chart is determined by the order in
which the series are defined. However, this definition order also determines
the order of other components, such as the legend, tooltip and dataset. When
one wants to reverse the stacking order, currently the only option is to
redefine the order the series are defined in. Unfortunately, this implies the
order show in the legend and tooltip may be the reverse of what we want.
Generally, redefining the series order may adversely impact other components
and feels like the wrong approach to redeclare the data to suit the
presentation.
It is worth noting the tooltip can work around this because it has an
`order: 'seriesDesc'` option, and also custom formatting option, but the legend
does not. Again, in general it feels like the wrong approach to design every
component to be "reversible", when this is just a presentation problem.
### What does the proposed API look like?
It would probably be best if there was simply an option to draw the stacked
series in reverse order so all the other components will continue to work as
normal.
<!-- 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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]