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

Pie Chart with Big Interval numbers

1 Answer 38 Views
Chart
This is a migrated thread and some comments may be shown as answers.
A Mahdavi
Top achievements
Rank 1
A Mahdavi asked on 19 Sep 2010, 08:08 AM
Hi,
I have some data with a big interval, for example maximum of my data is 15,962,940,000.00 and my minimum data is 185,400.00, and my other data is between this 2 data.
When I use pie chart for showing that I am getting  Value was either too large or too small for an Int32. error.
this is a part of my stack trace :
at System.Convert.ToInt32(Double value)
   at Telerik.Windows.Controls.Charting.AxisRange.get_ActualIntervalCount()
   at Telerik.Windows.Controls.Charting.AxisX.BuildAxisData()
   at Telerik.Windows.Controls.Charting.Axis.UpdateAxis()
   at Telerik.Windows.Controls.Charting.Axis.ChartAreaDataChanged(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Telerik.Windows.Controls.Charting.ChartArea.OnDataChanged()
   at Telerik.Windows.Controls.Charting.ChartArea.UpdateChart()
   at Telerik.Windows.Controls.Charting.ChartArea.OnDataSeriesCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Controls.Charting.RadHierarchicalObservableCollection`1.InsertItem(Int32 index, T item)


can you help me to solve this error.

best regards
A.Mahdavi

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 20 Sep 2010, 02:33 PM
Hello A Mahdavi,

Indeed we must admit there was a problem with handling big numbers in the latest official version of the control.

However, our developers have already managed to address the issue so you can download the weekly internal build from your Client.Net account to get the fixed version (the fix will also be included in the official service pack release scheduled for later this week).

Hope this helps.


Regards,
Freddie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
A Mahdavi
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or