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

Axis.IsZeroBased bug

1 Answer 68 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Aleksey Zdanovich
Top achievements
Rank 1
Aleksey Zdanovich asked on 01 Feb 2011, 08:26 AM
Hi,

I create a simple chart in xaml.

<Controls:RadChart x:Name="chartControl"  >
                    <Controls:RadChart.SamplingSettings>
                        <telerik:SamplingSettings SamplingThreshold="999" />
                    </Controls:RadChart.SamplingSettings>
</Controls:RadChart>

then configure Axis

chartControl.DefaultView.ChartArea.AxisX.AutoRange = true;
chartControl.DefaultView.ChartArea.AxisX.Title = title;
chartControl.DefaultView.ChartArea.AxisX.IsZeroBased = true;


Version 2010.3.1119.1040, all ok.

Version 2010.3.1326.1040, an exception is thrown on  the line
chartControl.DefaultView.ChartArea.AxisX.IsZeroBased = true;

Callstack:

   ? System.Convert.ToInt64(Double value)
   ? Telerik.Windows.Controls.Charting.AxisX.InitializeAxisValuesForAutoRange()
   ? Telerik.Windows.Controls.Charting.Axis.IsZeroBasedPropertyChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
   ? Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
   ? System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   ? System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   ? System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   ? System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)<br>
   ? Telerik.Windows.Controls.Charting.Axis.set_IsZeroBased(Boolean value)


What's wrong? To all appearances, double is NaN...

SL 4, IE 8, Telerik 2010.3.1326.1040

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 03 Feb 2011, 10:12 AM
Hi Aleksey Zdanovich,

Our developers are already on the task and fix for this issue will be available with one of the upcoming LIB releases.

Best wishes,
Nikolay
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
Aleksey Zdanovich
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or