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

StackedArea chart ignores X values

3 Answers 40 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Karim
Top achievements
Rank 1
Karim asked on 19 May 2009, 06:41 PM
I have a chart with X values ranging from -160 to 0. The type of the chart is StackedArea. However, when the chart is rendered, the values on the X axis range from 1 to 26. Why is this chart type ignoring the X values I'm giving it? Same is true for the StackedSplineArea chart.

Without changing anything else, if I change the chart type to Line or StackedBar, the X values correctly range from -160 to 0. It seems like this is a bug in the StackedArea type charts. Is there a workaround or fix available for this?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Dessy
Telerik team
answered on 20 May 2009, 02:54 PM
Hi Karim,

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

Kind regards,
Dessy
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Karim
Top achievements
Rank 1
answered on 20 May 2009, 05:49 PM
Why would the StackedArea be any different than the other charts? Line charts and StackedBar charts don't ignore the X values, so why does the StackedArea? If all series are defined at each X value, the StackedArea should honor the provided X values.

Maybe I'm missing something, but this seems like an issue with the StackedArea charts. Please clarify if you feel differently.
0
Vladimir Milev
Telerik team
answered on 22 May 2009, 06:46 AM
Hello Karim,

Allowing to specify custom X values for stacked area and line series may result in some really bizzare results that cannot be visualized. In order to prevent this we consciously defaulted to ignoring X Values for those types of series to ensure regular intervals between items.

If you wish to change the X-Axis range you may change your axis labels in the BeforeLayout event.

Kind regards,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Karim
Top achievements
Rank 1
Answers by
Dessy
Telerik team
Karim
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or