no outline

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

no outline

Post by Nicolas » Wed Oct 16, 2002 10:00 am

Hi,

I would like to generate graphics that don't have any outline.

I constructed a chart, like JFreeChart chart = ChartFactory.createVerticalBarChart3D(_title,null,null,data,true);
and tried
java.awt.Stroke seriesStroke[] = {new java.awt.BasicStroke(0.0f,0,0)};
chart.getPlot().setSeriesOutlineStroke(seriesStroke);

or also

Color seriesColor[] = {new Color(0,0,0,0)};
chart.getPlot().setSeriesOutlinePaint(seriesColor);

But it doesn't work well, there is still something that is appearing
(especially when I include the graph in a pdf document)

Is there a way to avoid to have any outline?

thanks

Nicolas

Nicolas

Re: no outline

Post by Nicolas » Thu Oct 17, 2002 9:58 am

Ok I mangage to avoid my problem by specifying a big dash in the
BasicStroke.
Not that elegant but it works fine.

Alan

Re: no outline

Post by Alan » Thu Oct 17, 2002 4:48 pm

Nicolas,

I am attempting to do the same thing. Can you tell me what do you want by a big "dash" in BasicStroke?

much thanks,
Alan

Locked