JFreeChart renders StackedAreaChart with splines

I'm looking for a way to display StackedAreaChart using splines I think I'm behind some StackedSplineAreaChart

XYSplineRenderer does a good job but does not cover areas

Is there a trick for rendering AreaCharts with splines?

+4
source share
1 answer

Neither StackedAreaRenderer nor StackedXYAreaRenderer (JFreeChart 1.0.15) currently support splines. The function you are requesting is not currently supported by JFreeChart.

However, for StackedXYAreaRenderer it is not too difficult to improve it to support splines based on the implementation of XYSplineRenderer . You will need to create your own visualization class and override the drawItem() method.

+3
source

Source: https://habr.com/ru/post/1490753/


All Articles