Add 'Cumulative Sum' type series
Given the amount of development geared towards highcharts as a financial charting library, it's a little surprising that there is no 'cumulative sum' series type.
The user can take the cumulative sum before a series is added... but as soon as the date range is changed, the series should re-calculate the cumulative sum. Implementing it requires wrapping/extending no less than 6 highcharts functions, and I'm sure I'll continue to come across more.
Started, you can follow the progress on our GitHub: https://github.com/highcharts/highcharts/issues/15361
-
Nicholas Laventis commented
Pawel, sorry for the late reply... This sort of works but would immediately break the navigator series, as well as other pieces of core functionality
-
AdminPaweł Fus (Admin, Highcharts JS) commented
Thanks for sharing the idea!
Perhaps it was never asked, because you can simply use `afterSetExtremes()` event, see: https://api.highcharts.com/highcharts/xAxis.events.afterSetExtremes - in this event you can call `mySeries.setData([ newDataSet ])`. Where `newDataSet` will include calculated cumulative sum just like when series is added.