XChart icon indicating copy to clipboard operation
XChart copied to clipboard

After setting fill color, the last bar tip value could not see again.

Open wangputao1 opened this issue 1 year ago • 2 comments

setting color after1

do not setting color1

wangputao1 avatar Aug 15 '23 09:08 wangputao1

Can you please paste your code for easier reproduction?

mccartney avatar Aug 19 '23 18:08 mccartney

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)

wangputao1 avatar Aug 21 '23 01:08 wangputao1