This question is locked. New answers and comments are not allowed.
Hi,
Thanks for making the Win8 XAML controls, the charts have been very handy so far.
I've attempted to make a Scatter plot, and I'd like the user to be able to click the data points, or hover over them with a mouse to get extra information. I've tried doing this by editing the PointTemplate, but no user input seems to reach the Templates. I was wondering if it were possible to enable this, or how you would go about doing user interaction with Scatter plot data points, thanks!
Here is the code I have:
Thanks,
Tommy
Thanks for making the Win8 XAML controls, the charts have been very handy so far.
I've attempted to make a Scatter plot, and I'd like the user to be able to click the data points, or hover over them with a mouse to get extra information. I've tried doing this by editing the PointTemplate, but no user input seems to reach the Templates. I was wondering if it were possible to enable this, or how you would go about doing user interaction with Scatter plot data points, thanks!
Here is the code I have:
<
telerik:RadCartesianChart
x:Name
=
"FirstChart"
PaletteName
=
"DefaultDark"
Height
=
"300"
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:LinearAxis
x:Name
=
"FirstChartXAxis"
MajorStep
=
"100"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
MajorStep
=
"1"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"XY"
/>
</
telerik:RadCartesianChart.Grid
>
<
telerik:ScatterPointSeries
ItemsSource
=
"{Binding}"
>
<
telerik:ScatterPointSeries.XValueBinding
>
<
telerik:PropertyNameDataPointBinding
PropertyName
=
"Reviews"
/>
</
telerik:ScatterPointSeries.XValueBinding
>
<
telerik:ScatterPointSeries.YValueBinding
>
<
telerik:PropertyNameDataPointBinding
PropertyName
=
"rating"
/>
</
telerik:ScatterPointSeries.YValueBinding
>
<
telerik:ScatterPointSeries.PointTemplate
>
<
DataTemplate
>
<
Button
>
test
</
Button
>
<!--<
Border
Width
=
"8"
Height
=
"8"
Background
=
"#FFCD1717"
BorderThickness
=
"1"
BorderBrush
=
"Black"
ToolTipService.ToolTip
=
"test"
ToolTipService.Placement
=
"Top"
>
</
Border
>-->
</
DataTemplate
>
</
telerik:ScatterPointSeries.PointTemplate
>
</
telerik:ScatterPointSeries
>
</
telerik:RadCartesianChart
>
Thanks,
Tommy