DefaultIntervalCategoryDataset with StackedBarChart3D

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

DefaultIntervalCategoryDataset with StackedBarChart3D

Post by Ranjith » Wed Oct 26, 2005 6:14 am

Hi All,

Just wondering to know, how the interval on y-axis( numberaxis) will be calculated, if we display StackedBarChart3D using DefaultIntervalCategoryDataset ?
Cheers,
Ranjith

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Oct 26, 2005 9:47 am

It will ignore the fact that the dataset is an IntervalCategoryDataset and treat it as a regular CategoryDataset.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

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

difference?

Post by Ranjith » Wed Oct 26, 2005 3:26 pm

Hi david,
May i know the difference between DefaultIntervalCategoryDataset and DefaultlCategoryDataset?
Cheers,
Ranjith

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Oct 26, 2005 4:24 pm

The difference you need to understand is between the CategoryDataset interface and the IntervalCategoryDataset interface. The latter is an extension of the former, and defines a range for the y-values (by specifying a start and an end y-value in addition to the y-value returned via the CategoryDataset interface). Some renderers (actually, just the IntervalBarRenderer at the moment) will use this range for display purposes, while others will ignore the range and just use the y-value.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked