XChart
XChart copied to clipboard
After setting fill color, the last bar tip value could not see again.
Can you please paste your code for easier reproduction?
Setting setFillColor:
CategoryChart chart =
new CategoryChartBuilder()
.width(800)
.height(600)
.title("123")
.xAxisTitle("Score")
.yAxisTitle("Number")
.build();
chart.addSeries("test 1", Arrays.asList(0,1,2,3), Arrays.asList(4,5,4,3));
chart.getSeriesMap().get("test 1").setFillColor(new Color(10, 150, 235));
chart.getStyler().setLabelsVisible(true);
new SwingWrapper<CategoryChart>(chart).displayChart();
--------------------------------------------------------------------------------------
None-setting setFillColor:
CategoryChart chart =
new CategoryChartBuilder()
.width(800)
.height(600)
.title("123")
.xAxisTitle("Score")
.yAxisTitle("Number")
.build();
chart.addSeries("test 1", Arrays.asList(0,1,2,3), Arrays.asList(4,5,4,3));
// chart.getSeriesMap().get("test 1").setFillColor(new Color(10, 150, 235));
chart.getStyler().setLabelsVisible(true);
new SwingWrapper<CategoryChart>(chart).displayChart();
(EDITED by @mccartney to add formatting)