DG,
I am trying to create Vertical Stacked Bar charts/ Vertical Bar charts, But I want the dates to be on the X axis and the Values (From my DB) to be on the Y axis. Just like you have it for your Time Series charts in the demo.
I will really appreciate it, if can get some poitnters
Thanks
Chi.
Stacked Bar charts And Dates in X-axis
RE: Stacked Bar charts And Dates in X-axis
Hi DG,
I forgot to mention that this class "createStackedVerticalBarChart" only takes categoryDataset object, Any way to pass a TimeSeriesCollection object that way I'll be able to map my data to my dates better.
createStackedVerticalBarChart(java.lang.String title, java.lang.String categoryAxisLabel, java.lang.String valueAxisLabel, CategoryDataset data, boolean legend)
Thanks
Chi
I forgot to mention that this class "createStackedVerticalBarChart" only takes categoryDataset object, Any way to pass a TimeSeriesCollection object that way I'll be able to map my data to my dates better.
createStackedVerticalBarChart(java.lang.String title, java.lang.String categoryAxisLabel, java.lang.String valueAxisLabel, CategoryDataset data, boolean legend)
Thanks
Chi
RE: Stacked Bar charts And Dates in X-axis
Hi Chi,
You can only create stacked bar charts using a CategoryDataset (one axis shows categories, the other shows values).
You can display ordinary bar plots using time series data (via the IntervalXYDataset interface, which is implemented by TimeSeriesCollection) - in this case both axes are numerical (the dates are converted to milliseconds). But there's no facility yet for stacking the bars...it would be a good project for someone wanting to contribute code to JFreeChart.
Regards,
DG.
You can only create stacked bar charts using a CategoryDataset (one axis shows categories, the other shows values).
You can display ordinary bar plots using time series data (via the IntervalXYDataset interface, which is implemented by TimeSeriesCollection) - in this case both axes are numerical (the dates are converted to milliseconds). But there's no facility yet for stacking the bars...it would be a good project for someone wanting to contribute code to JFreeChart.
Regards,
DG.