JdbcCategoryDataset

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

JdbcCategoryDataset

Post by Roberto Espitia » Fri Feb 21, 2003 12:48 am

I´m trying to generate a verticalBarChart with a JdbcCategoryDataset. I do get the data from my sybase database from a table like this:

numday totmb
----------- -----------
1 3325
2 3300
3 3250
4 3100
5 2990

The first field is a VARCHAR and the second is a numeric one.
With this data I only get a chart whose x-axis shows only one value (the first in the numday column) and nothing more is displayed. I never get even a single bar.
JFreeChart-0.9.4 JDK 1.4
Any help would be very appreciated. Thanks a lot.

David Gilbert

Re: JdbcCategoryDataset

Post by David Gilbert » Fri Feb 21, 2003 1:40 pm

Hi Roberto,

I would expect that to work. There were some changes made to the JdbcCategoryDataset class in the upgrade to 0.9.5. Is there any chance you could test the code in the latest version of JFreeChart and tell me if it still fails?

Regards,

Dave Gilbert

Locked