Cannot Hide BaseLine in CategoryPlot with StackedBarRenderer

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
fraugher
Posts: 1
Joined: Mon Mar 19, 2018 2:02 pm
antibot: No, of course not.

Cannot Hide BaseLine in CategoryPlot with StackedBarRenderer

Post by fraugher » Mon Mar 19, 2018 2:11 pm

Thank you in advance for your assistance.

Am building stacked bar charts with StackedBarRenderer and CategoryPlot. Am trying to remove all background lines and artifacts, but despite trying many option settings, am unable to hide a thin baseline at the base of the stacked bars. Below is a portion of the chart, look to the left end of the bar to see a faint vertical anchor line, that is the one I am trying to expunge. Thanks again !

Image

Code: Select all

        renderer.setDrawBarOutline(false);
        plot.setOutlineVisible(showBorders);
        plot.setRangeCrosshairPaint(Color.WHITE);
        plot.setRangeCrosshairVisible(false);
        plot.setRangeGridlinePaint(Color.WHITE);
        plot.setRangeGridlinesVisible(false);
        plot.setDomainGridlinePaint(Color.WHITE);
        plot.setDomainGridlinesVisible(false);
        vAxis.setAxisLineVisible(false);
        vAxis.setTickLabelPaint(Color.WHITE);
        vAxis.setAxisLinePaint(Color.WHITE);
        vAxis.setVisible(false);
        plot.setRangeGridlinePaint(Color.WHITE);
        cAxis.setAxisLineVisible(false);
        cAxis.setTickLabelPaint(Color.WHITE);
        cAxis.setAxisLinePaint(Color.WHITE);
        cAxis.setVisible(false);

Post Reply