Use of Thermometer Plot / MeterDataSet

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

Use of Thermometer Plot / MeterDataSet

Post by Mohar Bhise » Mon Feb 03, 2003 8:26 am

Hi

I would like to know how to use the Thermometer Plot along with the MeterDataSet.

All other charts in JFreeChart have an explicit method to create a chart in ChartFactory and have Plots related to that chart (eg XYDataSet with XYPlot, PieDataSet with PiePlot).

But I found that the MeterDataSet is not used by any of the methods in ChartFactory that create charts.

Also a ThermometerPlot needs a MeterDataSet to initialize it.

Does this mean that I can directly create a Thermomter Plot initalized appropriately with the MeterDataSet to create a Thermometer like chart?

David Gilbert

Re: Use of Thermometer Plot / MeterDataSet

Post by David Gilbert » Mon Feb 03, 2003 2:08 pm

You need to create the chart directly as I haven't added a method to the ChartFactory class yet. There is an example in ThermometerDemo2 in the com.jrefinery.chart.demo package.

Regards,

Dave Gilbert

Locked