Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Showing multiple lineseries in the same X-axis?
posted

Hello,

I'm struggling with showing multiple lineseries in the same x-axis. Is this possible?

Can someone point me to an example?

 

P

Parents Reply
  • 30692
    Offline posted in reply to Denis

    If you are using CategoryXAxis, see this post: http://es.infragistics.com/community/forums/p/38082/220246.aspx

    It is for our older chart control but provides context about why the chart expects aligned data. You can provide a seperate data source for each series individually if you desire, but the chart expects to see the same categories in the same order and will not attempt to align and reorder the categories for you. It would not even be inexpensive for the chart to check if alignment was required, let alone hash join the data for you.

    There are various strategies you can use to align the data if it is not aligned prior to display. See the above for one way. Doing this thing in code may be innapropriate though, as if you are pulling your data from some sort of RDBMS it likely has the indices to perform this alignment for your much more efficiently, with, say, an outer join.

    If you would liike for some sort of alignment adapter to be built into the chart library, that you could optionally feed your data through, please make a feature request to this effect.

    If you would like your data displayed in a true "date time" fashion where if there is 1 day between two data points, and 2 years between the next two then the spaces between are different, then you could use the CategoryDateTimeXAxis rather than the CategoryXAxis.

    Since the CategoryDateTimeXAxis just fits things on a linear scale you wouldn't need to account for any missing data values in the other series, but you would need a seperate CategoryDateTimeXAxis for each series and to syncrhonize their MinimumValue and MaximumValue, please see:

    http://es.infragistics.com/community/forums/t/72339.aspx

Children