I am using just a LineSeries and setting it's ItemSource to uint array and when I use the TrackBall I just get the Y-value and not the Category one.
My guess is I need to use a different series type such as ScatterSpline, but I couldn't figure out how to specify data for that sort of series. My array updates 30 times a sec so I'm constantly nulling out the series ItemSource and setting it back to the uint array
Also, is it possible to change the "Category" label in the TrackInfo box to something else such as "Channel?"
Thanks!
My ChartView in XAML
<
telerik:RadCartesianChart
Grid.Row
=
"0"
Name
=
"radCartesianChart1"
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:CategoricalAxis
MajorTickInterval
=
"255"
LabelInterval
=
"1"
ShowLabels
=
"True"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartPanAndZoomBehavior
ZoomMode
=
"Both"
PanMode
=
"Both"
>
</
telerik:ChartPanAndZoomBehavior
>
<
telerik:ChartTrackBallBehavior
ShowIntersectionPoints
=
"True"
ShowTrackInfo
=
"True"
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:RadCartesianChart.Series
>
<
telerik:LineSeries
Stroke
=
"Orange"
StrokeThickness
=
"2"
/>
</
telerik:RadCartesianChart.Series
>
</
telerik:RadCartesianChart
>
My CodeBehind where I set the ItemSource when my array upda
void
setData(
uint
[] data)
{
//may use with ScatterSplineSeries??
//List<PlotInfo> dataList = new List<PlotInfo>();
//for (int i = 0; i < _EDSData.Length; i++)
// dataList.Add(new PlotInfo() { XVal = i, YVal = _EDSData[i] });
radCartesianChart1.Series[0].ItemsSource =
null
;
radCartesianChart1.Series[0].ItemsSource = _EDSData;
}
Thanks!