Jump to content
Software FX Community

Got "Attempted to divide by zero" when change gallery from Scatter to Radar.

User (Legacy)

Recommended Posts

Dear Sir,

I have got a serious system crash problem from ChartFX for .net component

when I change the gallery type from scatter to radar. This problem does not

always happen but you can reproduce it with below code. Seems ChartFX .Net

has some problem to handle the data I input. Please help to fix it.

P.S. My ChartFX .Net version is 6.0.1353.24702.

O.S. is Windows XP professional.

.Net Framework is version 1.0.3705.

Visual Studio .NET 2002 - C# version 7.0.9466



//Draw scatter plot


chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 1, 10);

chart1.OpenData(SoftwareFX.ChartFX.COD.XValues, 1, 10);

chart1.Gallery = SoftwareFX.ChartFX.Gallery.Scatter;

double[] arrData = new double[10]{2,0,1,1,11,161,0,0,0,29};

chart1.AxisY.Max = 170;

chart1.AxisY.Min = 0;

chart1.AxisX.Max = 1;

chart1.AxisX.Min = 0;

chart1.AxisX.Step = 0.1;

chart1.AxisX.LabelsFormat.Decimals = 1;

for (int i = 0; i < 10; i ++)


chart1.Value[0,i] = arrData[i];

chart1.XValue[0,i] = 0.1 * i;





//Change gallery type to Radar will get system crash problem.

//Both use code and gallery dialog to change gallery type will get the same


chart1.Gallery = SoftwareFX.ChartFX.Gallery.Radar;

//The error message is list at below.

// An unhandled exception of type 'System.DivideByZeroException' occurred in


// Additional information: Attempted to divide by zero.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...