Jump to content
Software FX Community

Application got crashed when binding the data to Chart.


Recommended Posts


We are working on Windows application where in we need to capture the data from device and send it to chart for plotting.

X-axis values will have the DateTime values and Y-axis will have the double values.

If we pass the double values to Y-axis like 1.973962E-15, 2.508606E+15, 46.15, 4.1685E-15......, then application is getting crashed.

I am attaching the snapshot of the Exception details.




Link to comment
Share on other sites

Hi,Please provide me with a small repro case in order to verify how your information is being passed to the chart.For example, this code accepts double values with a very high precision and still working.   // This is the Form_Load   chart1.AxisY.Min = 2.93e-15;   chart1.AxisY.Max = 2.93e+15;   chart1.AxisY.LabelsFormat.Format = AxisFormat.Scientific;   chart1.AxisY.LabelsFormat.Decimals = 2;   int nSeries = 1;   int nPoints = 4;   chart1.Gallery = Gallery.Bar;   chart1.Data.Series = nSeries;   chart1.Data.Points = nPoints;   chart1.Data[0, 0] = 2.5e+302;   chart1.Data[0, 1] = 1.5e+306;   chart1.Data[0, 2] = 2.5e+303;   chart1.Data[0, 3] = 6.5e-308;   Please send me a small example.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...