how do you avoid legends in axisChartDataSet()

"apchar boiir" <[email protected]> Wed, 12 Jan 2005 01:45:22 -0500
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
I want to create a linechart without a legend. The javadocs say=20
just pass null to axisChartDataSet() where the legends array would=20
go. It compiles fine but when I run it (in appletviewer) I get

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

and the applet plots nothing.

The line in question is

AxisChartDataSet axisChartDataSet=3D new AxisChartDataSet( data, null, pain=
ts, ChartType.LINE, lineChartProperties );

What did I do wrong?
Thanks,
Apchar.

--=20
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.as=
p?SRC=3Dlycos10



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt