Completed
Last Updated: 31 Aug 2021 16:03 by ADMIN
Release R3 2021
CJ
Created on: 15 Jun 2021 07:18
Category: ChartView
Type: Bug Report
0
RadChartView: System.OverflowException when setting CategoricalDataPoint value to decimal.MaxValue/decimal.MinValue

System.OverflowException: 'Value was either too large or too small for a Decimal.

To reproduce:

var lineSeries = new LineSeries();
lineSeries.DataPoints.Add(new CategoricalDataPoint(0, "A"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(Convert.ToDouble(decimal.MaxValue), "B"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(0, "C"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(decimal.ToDouble(decimal.MaxValue), "D"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(0, "E"));

this.radChartView1.Series.Add(lineSeries);

0 comments