draco1023 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

AForge.Controls.Chart error in SeriesType.Dots draw branch #248

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Line 218 in Chart.cs *should* read:

if ( ( rangeX.IsInside( (float) data[i, 0] ) ) 
&& ( rangeY.IsInside( (float) data[i, 1] ) ) 
//&&
// ( rangeX.IsInside( (float) data[i - 1, 0] ) ) 
//&& ( rangeY.IsInside( (float) data[i - 1, 1] ) ) 
)

Note the commented out parts (containing the "i-1" index). The loop goes over 
i=0 (which is correct for the Dots case).

Btw, you can easily see whether the Chart is working or not by running your 
Approximation sample.

Original issue reported on code.google.com by 2453...@googlemail.com on 26 Aug 2011 at 8:00

GoogleCodeExporter commented 9 years ago
See:
http://code.google.com/p/aforge/issues/detail?id=245

Original comment by andrew.k...@gmail.com on 26 Aug 2011 at 8:07