Dynamic Stacked Vertical 3D Bar Chart

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

Dynamic Stacked Vertical 3D Bar Chart

Post by Jamey Johnston » Mon Dec 16, 2002 10:24 pm

I am trying to create a real-time database performance tuning application and I want to create a Dynamic Stacked Vertical 3D Bar Chart to track two of the statistics (these stats would constitute the series on the graph).

I initially want to create a blank Dynamic Stacked Vertical 3D Bar Chart with no categories and data at first but I do know the Series that I want to graph. When a user adds a database (this would be a category) to show the performance statistics then I want to add that database to the Dynamic Stacked Vertical 3D Bar Chart as a category and then dynamically update the data for each database (category).

Is this possible and is there an example of how this is done (creating a dynamic stacked 3D Vertical Bar Chart not how to collect the database stats). I have read the documentation and looked at the demos (including the premium demos that come with the documentation) and I am having a hard time figuring out how to do this.

Any help is appreciated. Thanks.

David Gilbert

Re: Dynamic Stacked Vertical 3D Bar Chart

Post by David Gilbert » Tue Dec 17, 2002 12:22 am

Hi Jamey,

I think the difficult part is that the DefaultCategoryDataset class is a pretty basic implementation of the CategoryDataset interface...it doesn't allow you to add or remove either categories or series after the dataset is first constructed.

I've taken some steps towards improving that for the next release (including some changes to the CategoryDataset interface to make it more symmetrical), but I'm not likely to get 0.9.5 released until late January at the earliest.

Your best bet is probably to develop your own class that implements the CategoryDataset interface.

Regards,

Dave Gilbert

Jamey Johnston

Re: Dynamic Stacked Vertical 3D Bar Chart

Post by Jamey Johnston » Tue Dec 17, 2002 12:26 am

That is what I figured. Is there something in the CVS that I could use?

David Gilbert

Re: Dynamic Stacked Vertical 3D Bar Chart

Post by David Gilbert » Tue Dec 17, 2002 12:37 am

You could look at the DefaultTableDataset class...it will at least give you an idea of the direction I'm heading in with the changes to the CategoryDataset interface. None of the code has been road-tested or even reviewed, so don't read too much into it just yet.

Regards,

DG

Locked