StackedArea with DateTime X-Axis not working correctly.

Thread is closed for posting
2 posts, 1 answers
  1. Angus
    Angus avatar
    5 posts
    Member since:
    Sep 2008

    Posted 22 Sep 2008 Link to this post

    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?
  2. Answer
    Ves avatar
    2926 posts

    Posted 25 Sep 2008 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top