Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Chart:RadCartesianChart Grid.Row="1" x:Name="telChart">
- <Chart:RadCartesianChart.HorizontalAxis>
- <Chart:CategoricalAxis PlotMode="OnTicksPadded"/>
- </Chart:RadCartesianChart.HorizontalAxis>
- <Chart:RadCartesianChart.VerticalAxis>
- <Chart:LinearAxis/>
- </Chart:RadCartesianChart.VerticalAxis>
- <Chart:LineSeries ItemsSource="{Binding}">
- <Chart:LineSeries.CategoryBinding>
- <Chart:PropertyNameDataPointBinding PropertyName="Category"/>
- </Chart:LineSeries.CategoryBinding>
- <Chart:LineSeries.ValueBinding>
- <Chart:PropertyNameDataPointBinding PropertyName="Value"/>
- </Chart:LineSeries.ValueBinding>
- <Chart:ChartTrackBallBehavior.TrackInfoTemplate>
- <DataTemplate>
- <StackPanel>
- <TextBlock Text="{Binding DataPoint.DataItem.Info}" Margin="5" Foreground="DarkSalmon"/>
- </StackPanel>
- </DataTemplate>
- </Chart:ChartTrackBallBehavior.TrackInfoTemplate>
- <Chart:ChartTrackBallBehavior.IntersectionTemplate>
- <DataTemplate>
- <Ellipse Width="10" Height="10" Fill="Tomato"/>
- </DataTemplate>
- </Chart:ChartTrackBallBehavior.IntersectionTemplate>
- </Chart:LineSeries>
- <Chart:RadCartesianChart.Behaviors>
- <Chart:ChartTrackBallBehavior InfoMode="Multiple" ShowIntersectionPoints="True">
- <Chart:ChartTrackBallBehavior.LineStyle>
- <Style TargetType="Polyline">
- <Setter Property="Stroke" Value="Tomato"/>
- <Setter Property="StrokeThickness" Value="2"/>
- <Setter Property="StrokeDashArray" Value="1,2"/>
- </Style>
- </Chart:ChartTrackBallBehavior.LineStyle>
- <Chart:ChartTrackBallBehavior.InfoStyle>
- <Style TargetType="telerikChartPrimitives:TrackBallInfoControl">
- <Setter Property="Background" Value="White"/>
- </Style>
- </Chart:ChartTrackBallBehavior.InfoStyle>
- </Chart:ChartTrackBallBehavior>
- </Chart:RadCartesianChart.Behaviors>
- </Chart:RadCartesianChart>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement