Hello,
I am using the XamDataChart from the new release of WPF DV (v11.1).
I am having a hard time finding out how to set the property ItemsSource on CategoryDateTimeXAxis in the following case:
On a single chart (with CategoryDateTimeXAxis as X-Axis) I'd like to display two series whose sources are different. I am using the new properties MinimumValue and MaximumValue to specify the X-Axis range I want to display. Apparently, I also need to set the ItemsSource to something if I want to see series on the chart, but I have two questions regarding this:
First, what is the purpose of ItemsSource, how is it used?
Second, what should I set ItemsSource to in order to see my two series correctly drawn? (I tried to set it to different things like the source of one of the series or the concatenation of the serie' sources or a list made of only the minimum and maximum values, etc... but it did not work)
Any help will be really appreciated,
Thanks a lot,
Carole
HI Carole,
I have sent you information in a private support case regarding the feature request that has been logged:
Ah ok, I understand.
I'll be watching new release then, in case it comes up!
Not a problem, glad we could help!
In the case of the CategoryDateTimeXAxis, the axis is the manager of the reordering of the data, since it doesn't assume that the data is already in increasing date order. This would make it complex for the one axis to manage a potentially unlimited number of data sets that needed to be reordered and aligned.
We are considering adding a mode to the axis such that it can assume the data presented to it is already in order, which would help support the scenario you want, and make the axis generally more efficient, if that mode were employed.
-Graham
Hi Graham,
That's ok, I already used the method you told earlier. I just thought it would be nice to be able to define just one axis with min and max and share it through line series.
Thanks all for your help,
Kind regards,
Carole,
If you have two different data series for the CategoryDateTimeXAxis then, like as not, you will need two seperate CategoryDateTimeXAxes with each associated with a different source. To make the data align, you will need to manually set the min and max to be the same for each axis. Otherwise the axes will take the min and max date from the data series, so may potentially have different alignments. You can then also hide the extraneous axis by setting its strokes to transparent, and setting its axis labels to collapsed.
This is the only method currently to easily plot multiple date time data against eachother. If you can describe how you would like the axis sharing to work for this type of axis, we can accept it as a feature request. If you have any questions about how to implement using the above strategy. Let us know.
Hope this helps!