Secondary Renderer not allowing me to adjust series stroke

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
TMazzotta
Posts: 40
Joined: Thu Mar 27, 2003 7:11 pm

Secondary Renderer not allowing me to adjust series stroke

Post by TMazzotta » Fri Aug 20, 2004 11:34 pm

I have a graph that is using a secondary renderer. The first renderer is a bar chart (2 series).... Overlayed on top of that, I have two lines using a secondary renderer..

The graph is showing up OK, except for one thing:

- I am trying to make the two lines fatter... I'm using the following code, but it doesn't seem to make any difference (they always come up at the same width).

Code: Select all

plot.getSecondaryRenderer().setSeriesStroke(0,new BasicStroke(12));
plot.getSecondaryRenderer().setSeriesStroke(1,new BasicStroke(12));
Note: if I create a simple line chart (no secondary renderer) and adjust the width the lines, it works fine.

These are basis categoryDatasets and category plots... nothing really fancy.

I am using version JFreechart version 0.9.6

Thanks in advance!

Locked