This is a migrated thread and some comments may be shown as answers.

StackedArea with DateTime X-Axis not working correctly.

1 Answer 30 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Angus
Top achievements
Rank 1
Angus asked on 23 Sep 2008, 12:31 AM
My RadChart has three series, and I'm dynamically populating the x and y values of the items in these series.  The X-Axis is a DateTime (converted to OLE Automation format).  If I make the series type as line, the chart displays correctly.  However, if the chart type is changed to StackedArea (which makes more sense for the type of information I want to display), the X-Axis seems to ignore the inputted values, and instead treats the data as an auto-incremented series starting at 1.

Is this a bug, or are the items pulling data from different locations based on chart type?

1 Answer, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 25 Sep 2008, 12:03 PM
Hi Angus,

Indeed, stacked series do not take into account XValue. The reason is that there is no way to determine the chart graph if there are series which do not have items for each value of X axis. So, RadChart will display next series item at the next X axis item. You can still achieve results as those with line series by making sure that there is an axis item for each series item. However, it is possible that the X axis items number becomes too large, so the labels may overlap. In this case you can set the LabelStep property of X axis, so that only certain labels are shown.

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Angus
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or