How can i create a wave chart

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

How can i create a wave chart

Post by Divya » Wed Jan 29, 2003 9:12 pm

Hello,

I want to know how to create a wave chart like a sin wave instead of line i want as wave.how can i create that.i saw in freechart demo in XY Charts tab
they have XYPlot saying
A line chart using data from an XYDataset. Both axes are numerical.

i didn't find any demo for this chart.where can i find the source code for this chart and how can i create a wave chart.plse help.

Divya.

David Gilbert

Re: How can i create a wave chart

Post by David Gilbert » Thu Jan 30, 2003 12:32 am

The wave is created using the SampleXYDataset class in the com.jrefinery.chart.demo package. It's all hard-coded, but you should be able to create something similar (but more general) yourself.

Regards,

Dave Gilbert

Locked