Horizontal stacked bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Nivedeeta

Horizontal stacked bar chart

Post by Nivedeeta » Sat Aug 17, 2002 5:58 am

Hi,

In stacked bar chart i am having boxes of 10 colors.

The problem is that the each box is outlined by a small black border.

How do i remove this outlined box?

I don't want the border for the box.

Thanks,
Nivedeeta

David Gilbert

Re: Horizontal stacked bar chart

Post by David Gilbert » Mon Aug 19, 2002 9:16 am

In the StackedHorizontalBarRenderer class, there is some code in the drawCategoryItem method that is adding this border:

if (itemWidth>3) {
g2.setStroke(plot.getSeriesStroke(series));
g2.setPaint(plot.getSeriesOutlinePaint(series));
g2.draw(bar);
}

I need to modify the code so that if either the series outline stroke or paint is null, then nothing is drawn.

As a workaround, you could just comment out those lines and recompile.

Regards,

DG.

Locked