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
185
Problem, Multi series on same chart with different X axis items over a date range.
posted

Hi there,

I'm having some trouble adding multiple series to a single chart (line series).  Firstly here's an example of the two series data.

Series 1.

Time Value
10:00 35
10:30 45
12:15 60
14:45 30

Series 2.

Time Value
10:00 12
10:45 60
11:25 35
13:12 78
16:34 45
17:00 55

Now, my problem is I need to plot both these series on the same chart using LineSeries and making it look like they share the same XAxis (whether behind the scenes they do or not I don't mind).

What I've found doing this is see as the two series have different number of items they must use seperate xAxis, which becomes a problem as I need to only show 1.  So the chart should show an XAxis of between 10:00 am and 17:00 pm, with all the items plotted in between over two series.

Can someone please help me with this?

Parents
  • 185
    posted

    Actually after some thought about this last night and doing some more investigation I've answered this now.  Basically I'm going to create a new X-axis for each series but bind the Max/Min values for the axis which locks the timeframe together. 

    Being new to this control just takes a little bit to get my head around.

Reply Children
No Data