JDBCPieDataSet

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

JDBCPieDataSet

Post by Ian » Fri Mar 07, 2003 2:36 pm

A table I have uses more than 1 column and I want to use a Piechart to display the data how can I increase the column size in JDBCPieDataSet. Or does this go against the grain of data required in a PieChart.

Regards
Ian

David Gilbert

Re: JDBCPieDataSet

Post by David Gilbert » Sat Mar 08, 2003 12:47 am

The JDBCPieDataset class expects to find two columns in the query. But you could use the JDBCCategoryDataset class to read more columns, and create a pie chart with that. The PiePlot class draws multiple pies when you use a CategoryDataset.

Regards,

Dave Gilbert

Locked