Plot line colors are all red in a combined plot

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

Plot line colors are all red in a combined plot

Post by John Michelsen » Thu May 16, 2002 5:34 pm

Hi, I have a really slick dynamicly generating set of charts in a combination plot. Very sweet. Almost there!

I'm using JFreeChart.createCombinableTimeSeriesChart and an XYDataSet.

For some reason, more often than not, the plot lines on the graph are all red, even when the Legend is showing the different colors. Sometimes the lines are painted correctly, then go to red, then later will go back and forth.

I am updating the chart on some interval basis, and calling

chart.setDataset()
chartPanel.revalidate()

to force the chart to refresh.

Any ideas?

Thanks in advance.
John

Locked