|
From: Campano, T. <Tro...@Li...> - 2003-12-11 19:49:52
|
Hello,=20
I'm trying to generate a bar graph from a database.
I define my labels and data like this:
=20
String[] xAxisLabels =3D new =
String[amount_of_rows];
double[][] data =3D new
double[amount_of_rows][amount_of_rows];
=20
=20
...and I scroll through my JDBC ResultSet like this:
=20
xAxisLabels[i] =3D
rs.getString("engine_vrsn_nme").toLowerCase();
data[i][i] =3D
rs.getDouble("version_count");
=20
=20
...but I get this error:
org.jCharts.chartData.ChartDataException: There is not an one to one
mapping of 'legend labels' to 'data sets'.
=20
=20
=20
=20
=20
Any ideas?
=20
Thank you!
=20
Troy Campano
=20
=20
|