This is a migrated thread and some comments may be shown as answers.

Chart improperly displaying > 200 points

2 Answers 85 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joel
Top achievements
Rank 1
Joel asked on 19 Mar 2012, 07:38 PM

I have a chart which I use to display a single line which is broken up by null values and the drop gap behavior.  It works fine up to 200 points, but when I add 201 points, it displays a single continuous line across the full length of the chart.

Here is my chart:

<telerik:RadChart x:Name="videoChart" BorderThickness="0" Background="Transparent" MaxHeight="20" VerticalAlignment="Center">
            <telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartArea>
                        <telerik:ChartArea Padding="0">
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX IsDateTime="True" AutoRange="False" Visibility="Collapsed"/>
                            </telerik:ChartArea.AxisX>
                            <telerik:ChartArea.AxisY>
                                <telerik:AxisY AutoRange="False" MinValue=".99999" MaxValue="1.00001" Visibility="Collapsed" StripLinesVisibility="Collapsed"/>
                            </telerik:ChartArea.AxisY>
                        </telerik:ChartArea>
                    </telerik:ChartDefaultView.ChartArea>
                    <telerik:ChartDefaultView.ChartLegend>
                        <telerik:ChartLegend Visibility="Collapsed"/>
                    </telerik:ChartDefaultView.ChartLegend>
                    <telerik:ChartDefaultView.ChartTitle>
                        <telerik:ChartTitle Visibility="Collapsed"/>
                    </telerik:ChartDefaultView.ChartTitle>
                </telerik:ChartDefaultView>
            </telerik:RadChart.DefaultView>
 
            <telerik:RadChart.SeriesMappings>
                <telerikCharting:SeriesMapping>
                    <telerikCharting:SeriesMapping.SeriesDefinition>
                        <telerikCharting:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False" EmptyPointBehavior="Gap">
                            <telerikCharting:LineSeriesDefinition.Appearance>
                                <telerikCharting:SeriesAppearanceSettings StrokeThickness="10" Stroke="Green"/>
                            </telerikCharting:LineSeriesDefinition.Appearance>
                        </telerikCharting:LineSeriesDefinition>
                    </telerikCharting:SeriesMapping.SeriesDefinition>
                    <telerikCharting:ItemMapping FieldName="Value" DataPointMember="YValue"/>
                    <telerikCharting:ItemMapping FieldName="Date" DataPointMember="XValue"/>
                </telerikCharting:SeriesMapping>
            </telerik:RadChart.SeriesMappings>
        </telerik:RadChart>

The data I'm putting into the chart doesn't seem to matter.  As soon as I hit 201, I get a solid, unbroken bar.

Is there some kind of virtualization/averaging/etc going on?  Can I turn that off?

The ChartView does not have a gap behavior yet, so I cannot use the ChartView. 

2 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 20 Mar 2012, 05:10 PM
Hello Joel,

200 is the default sampling threshold used by RadChart (http://www.telerik.com/help/silverlight/radchart-features-sampling.html) -- you can disable data sampling by setting RadChart.SamplingSettings.SamplingThresold property to 0.


Greetings,
Bart.
0
Joel
Top achievements
Rank 1
answered on 20 Mar 2012, 06:16 PM
Thanks Bart, that was it.  For reference, here's what I had to add to the above chart:
<telerik:RadChart.SamplingSettings>
    <telerik:SamplingSettings SamplingThreshold="0"/>
</telerik:RadChart.SamplingSettings>

Tags
Chart
Asked by
Joel
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Joel
Top achievements
Rank 1
Share this question
or