Hi,
I've found that plotting data with where the Y value is above the maximum vertical axis plots somewhere to the top-left corner of component (outside of the visible component). Here's an example:
XAML:
VB:
The chart has a maximum vertical (linear) axis of 100, however the data generated in code-behind plots from 0 to 150. The resulting graph ends up quite funky (and incorrect).
I've also noted that irrespective of what I set for "RangeExtendDirection" in the vertical linear axis, the maximum range is never extended and the minimum range is always extended, ie. RangeExtendDirection is always acts as Negative irrespective of the value I set it to.
Kind regards,
Dave.
ps. Love the new performance of the ChartView component!
I've found that plotting data with where the Y value is above the maximum vertical axis plots somewhere to the top-left corner of component (outside of the visible component). Here's an example:
XAML:
<Window x:Class="RadChartViewSimpleTest" xmlns:chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart" xmlns:chartView="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Width="300" Height="300"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <DataGrid ItemsSource="{Binding}" /> <chart:RadCartesianChart Grid.Column="1"> <chart:RadCartesianChart.HorizontalAxis> <chartView:LinearAxis /> </chart:RadCartesianChart.HorizontalAxis> <chart:RadCartesianChart.VerticalAxis> <chartView:LinearAxis Maximum="100" /> </chart:RadCartesianChart.VerticalAxis> <chart:RadCartesianChart.Series> <chartView:ScatterLineSeries x:Name="ScatterLineSeries1" ItemsSource="{Binding}" /> </chart:RadCartesianChart.Series> </chart:RadCartesianChart> </Grid></Window>VB:
Imports Telerik.Windows.ControlsImports Telerik.Windows.Controls.ChartViewPublic Class RadChartViewSimpleTest Public Sub New() InitializeComponent() Dim Points As New List(Of Point) For i As Integer = 0 To 150 Step 5 Points.Add(New Point(i, i)) Next For i As Integer = 0 To 150 Step 5 Points.Add(New Point(155 + i, i)) Next Me.DataContext = Points Dim genericBinding As New GenericDataPointBinding(Of Point, Double) genericBinding.ValueSelector = Function(t As Point) t.X ScatterLineSeries1.XValueBinding = genericBinding genericBinding = New GenericDataPointBinding(Of Point, Double) genericBinding.ValueSelector = Function(t As Point) t.Y ScatterLineSeries1.YValueBinding = genericBinding End SubEnd ClassThe chart has a maximum vertical (linear) axis of 100, however the data generated in code-behind plots from 0 to 150. The resulting graph ends up quite funky (and incorrect).
I've also noted that irrespective of what I set for "RangeExtendDirection" in the vertical linear axis, the maximum range is never extended and the minimum range is always extended, ie. RangeExtendDirection is always acts as Negative irrespective of the value I set it to.
Kind regards,
Dave.
ps. Love the new performance of the ChartView component!