This question is locked. New answers and comments are not allowed.
Hi Telerik Support!
i am using a RadCartesianChart to display a huge amout of datapoints in a DateTimeContinousAxis.
The width of the chart is calculated by the amout of the datapoints.
Therefore i am running into the problem with blurried lines because of huge spacing and slowdown of the control/engine.
I've read this thread about this matter:
http://www.telerik.com/community/forums/metro/chart-xaml/blurry-lines-when-lot-of-datapoints.aspx
Unfortunately the thread doesnt help me because i dont want the zooming behavior. Just a clean print of the lines between the datapoints.
Here some example code:
XAML
Here the chart in a grid to stretch it to full screen height.
The code is populating the chart with a huge amout of datapoints to demonstrate the blurry effect.
CODE:
i am using a RadCartesianChart to display a huge amout of datapoints in a DateTimeContinousAxis.
The width of the chart is calculated by the amout of the datapoints.
Therefore i am running into the problem with blurried lines because of huge spacing and slowdown of the control/engine.
I've read this thread about this matter:
http://www.telerik.com/community/forums/metro/chart-xaml/blurry-lines-when-lot-of-datapoints.aspx
Unfortunately the thread doesnt help me because i dont want the zooming behavior. Just a clean print of the lines between the datapoints.
Here some example code:
XAML
<Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <telerikChart:RadCartesianChart x:Name="chart" Grid.Column="0"> <telerikChart:RadCartesianChart.HorizontalAxis> <telerikChart:DateTimeContinuousAxis MajorStepUnit="Day" MajorStep="1" MajorTickOffset="0" PlotMode="OnTicks" LabelFormat="{}{0:ddd, MMM d, yyyy}"/> </telerikChart:RadCartesianChart.HorizontalAxis> <telerikChart:RadCartesianChart.VerticalAxis> <telerikChart:LinearAxis/> </telerikChart:RadCartesianChart.VerticalAxis> <telerikChart:LineSeries> <telerikChart:LineSeries.ValueBinding> <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/> </telerikChart:LineSeries.ValueBinding> <telerikChart:LineSeries.CategoryBinding> <telerikChart:PropertyNameDataPointBinding PropertyName="Date"/> </telerikChart:LineSeries.CategoryBinding> </telerikChart:LineSeries> </telerikChart:RadCartesianChart></Grid>Here the chart in a grid to stretch it to full screen height.
The code is populating the chart with a huge amout of datapoints to demonstrate the blurry effect.
CODE:
List<Data> collection = new List<Data>(); Random r = new Random(); DateTime date = DateTime.Now; for (int i = 1; i <= 50; i++) { date = DateTime.Now.Date.AddDays(i); for (int k = 120; k <= 480; k += 120) { collection.Add(new Data { Date = date.AddMinutes(k), Value = r.Next(1, 20) }); } collection.Add(new Data { Date = date.Date.AddHours(23).AddMinutes(59), Value = r.Next(1, 20) }); } this.chart.Series[0].ItemsSource = collection; this.chart.MinWidth = collection.Count * 50;