CategorySeriesRenderStyle.Line bugSee original GitHub issue
I got CategoryChart with years in x-axis and some data in y-axis. Y-axis data can be negative or null. When I draw this as CategorySeriesRenderStyle.Bar which is default it draws nicely showing negative values and leaving empty spaces whenever there is null. However when I change charts default render style with
.getStyler().setDefaultSeriesRenderStyle(CategorySeriesRenderStyle.Line); it doesn’t leave empty spaces when there is null value in y-axis data, but draws everything at the start of the chart leaving empty space to the wrong years at the end.
I also tried setting each series render style individually with
.setChartCategorySeriesRenderStyle(CategorySeriesRenderStyle.Line and then null values draw just fine. But now all negative values are drawn as zeroes. It scales chart fine but all the lines just go to zero when they should go to negative value.
I’ve checked imported data with
.getSeriesMap() and it is correct showing negative values and nulls in correct places. Overlapping is set true. Also I’m using GGPlot2 -theme but this happens with default one too.
This seems to be a bug when setting render style to
Any workaround ideas also appreciated, since I am on a tight schedule.
Thanks in advance!
- Created 7 years ago
- Comments:5 (3 by maintainers)