View Full Version : Chart Help

17 May 2010, 6:13 AM
Currently trying to create code that displays charts, configured dynamically.

Code such as the following works for charts such as Pie, Area, Line, Cylinder, FillBar, 3DBar, SketchBar and GlassBar:

BarChart chart = new BarChart(BarStyle.GLASS);
if (config.getColor() != null) {
BarDataProvider provider = new BarDataProvider(config.getValueField(), config.getLabelField());
model.addChartConfig(chart);This works, obviously, with the appropriate Chart and DataProvider classes depending on the chart type listed above.

My problem is that I cannot figure out how to make this work for Radar or HorizontalBar charts. The documentation is very poor regarding Radar charts, and there is no way to set the DataProvider on the HBar charts.

Is what I'm trying to do impossible with these types of charts? If not, any suggestions on how to accomplish the task?