StackedBarChart

Discussion about JFreeChart related to stockmarket charts.
Locked
ckp
Posts: 21
Joined: Thu Feb 08, 2007 2:28 pm

StackedBarChart

Post by ckp » Mon Feb 26, 2007 12:48 pm

Hi,

Query 1:

Is there any way I can make the constituent units of induvidual bar visible within a signle category? I am creating sample data as following:

Code: Select all

  private CategoryTableXYDataset createXYForStackedBar(){
  CategoryTableXYDataset xyDataSet = new CategoryTableXYDataset();
  xyDataSet.setIntervalPositionFactor(0.5);
  xyDataSet.setIntervalWidth(7);
  
   xyDataSet.add((new Day(7, MonthConstants.FEBRUARY, 2007)).getDayOfMonth(), 50, "Normal", false);//month, percentage, seriesName
  xyDataSet.add((new Day(7, MonthConstants.FEBRUARY, 2007)).getDayOfMonth(), 80, "Normal", false);//month, percentage, seriesName
.....
Here first two values fall under the same category but should be identified from the chart using a surrounding border etc.

Query 2:
Is it possible to create a CategoryTableXYDataset and still have TimeSeries on x-axis?

Query 3:
Is it possible to have sub-categories in case of Stacked Bar chart.

Note :I am creating the chart using factory method.
code] JFreeChart chart = ChartFactory.createHistogram(..... [/code]

Thanks,
ckp

Locked