Series Stroke with Secondary Renderer

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

Series Stroke with Secondary Renderer

Post by TMazzotta » Mon Aug 30, 2004 10:19 pm

I originally posted this a week or so ago, but I didn't get any responses. I figured I'd try one more time just in case somebody has a solution:

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