Issue with StackedBarChart3D with Dynamic Data

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ranjith
Posts: 8
Joined: Thu Oct 13, 2005 7:34 am

Issue with StackedBarChart3D with Dynamic Data

Post by Ranjith » Wed Oct 19, 2005 8:45 am

Hi all :) ,

I am in confusion on StackedBarChart3D issue.
I have to create a barchart with dynamic data that shows some data varied by months.
Data is:

Month Assigned unassigned completed Total
-------------------------------------------------------------
Sep 99 23 8 130
Oct 0 2 2 4

I have the follwing code:

Code: Select all

public Object produceDataset(Map params) { 

final String[] categories = [b]Need to display months here?[/b]
final String[] seriesNames =  "Unassigned", "GateKeeper", "Assigned", "In Progress", "Completed" }; 

[b]how to display the chart range here ? like 0 to maximum total in the above table[/b] 
} 
 
DefaultIntervalCategoryDataset ds = 
new DefaultIntervalCategoryDataset(seriesNames, categories, startValues, endValues);  
return ds; 
} 
the above data is dynamic. Pls help me how to create a chart with this?
I have to display a chart status with months showing some numbers? Pls help me on this issue :?
Last edited by Ranjith on Thu Oct 20, 2005 1:40 pm, edited 1 time in total.
Cheers,
Ranjith

Fry
Posts: 14
Joined: Mon Aug 08, 2005 9:56 pm
Location: Karlsruhe (Germany)

Post by Fry » Wed Oct 19, 2005 4:29 pm

Hi Ranjith,

from where you get yor data? From a textfile?

Fry

Ranjith
Posts: 8
Joined: Thu Oct 13, 2005 7:34 am

Post by Ranjith » Thu Oct 20, 2005 10:48 am

Hi Fry,

I am using a SQL query to get the data from Oracle. I am stroing it in a request.
I am referring the request in the JSP file. The above query yields the result of the data given.
Cheers,
Ranjith

Locked