I have some problems with a .net chart series. I add points to the series like this
point = new DataPoint();
point.AxisLabel = result.Code;
point.YValues = new double[] { pointValue };
For the value 4.0343262175104857E+28, chart.SaveImage() crashes.
Value was either too large or too small for a Decimal.
at System.Decimal..ctor(Double value) at System.Web.UI.DataVisualization.Charting.Axis.GetRequiredLabelSize(ChartGraphics chartGraph, Single maxLabelSize, Single& resultSize) at System.Web.UI.DataVisualization.Charting.Axis.Resize(ChartGraphics chartGraph, ElementPosition chartAreaPosition, RectangleF plotArea, Single axesNumber, Boolean autoPlotPosition) at System.Web.UI.DataVisualization.Charting.ChartArea.Resize(ChartGraphics chartGraph) at System.Web.UI.DataVisualization.Charting.ChartPicture.Resize(ChartGraphics chartGraph, Boolean calcAreaPositionOnly) at System.Web.UI.DataVisualization.Charting.ChartPicture.Paint(Graphics graph, Boolean paintTopLevelElementOnly) at System.Web.UI.DataVisualization.Charting.ChartImage.GetImage(Single resolution) at System.Web.UI.DataVisualization.Charting.Chart.SaveImage(Stream imageStream)
The value is smaller than decimal.MaxValue though. It works if I use int.MaxValue.