What is the max value for RadChartView CategoricalDataPoint?

2 Answers 133 Views
ChartView
CJ
Top achievements
Rank 1
CJ asked on 10 Jun 2021, 02:31 PM

I add datapoints to the RadChartView using CategoricalDataPoints. The values can be quite large and then I get the following error:

Value was either too large or too small for a decimal.

 

Then I did this test:

radChartView->Series[0]->DataPoints->Add(gcnew Telerik::Charting::CategoricalDataPoint(Decimal::ToDouble(Decimal::MaxValue), 0));

I still get the exception: Value was either too large or too small for a decimal.

 

What is the max value that can be set?

2 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 15 Jun 2021, 07:41 AM

Hello, 

I was able to reproduce the error that causes System.OverflowException indicating that the value was either too large or too small for a decimal. The CategoricalDataPoint works with double values and is expected to work correctly with min/max values when converted to decimal.

I have logged this on our feedback portal by making a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item. You can follow this item in order to get notified when its status has changed. Please excuse us for the inconvenience caused. 

I have also updated your Telerik Points.

If you have other questions please let me know.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

CJ
Top achievements
Rank 1
commented on 17 Jun 2021, 04:15 PM

Thank you so much for the response. Is there any work around for this? Do you perhaps know what the max and min values are so that I can limit the input so that the user does see that exception?
0
Nadya | Tech Support Engineer
Telerik team
answered on 18 Jun 2021, 02:01 PM

Hello,

Due to the specifics of the issue, I am not able to suggest a workaround. However, I would like to note that our developers are already working on this issue and we may introduce a fix when the testing is complete. When the fix is ready the CategoricalDataPoints should be able to accept decimal.Min/Max values. Make sure you have followed this feedback item in order to get notified when its status has changed. Please excuse us for the inconvenience caused. 

I hope this information is useful. Please let me know if you have any other questions.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ChartView
Asked by
CJ
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or