Skip to content

Commit

Permalink
- Summary:Fix a bug that Radar chart has an extra circle (#57779) caused
Browse files Browse the repository at this point in the history
in commit f6b84be
- Description: Radar class should no longer has the scaleCount field
variable as it's encapsulated in the RadarScaleHelper.
  • Loading branch information
raphael.feng committed Mar 20, 2013
1 parent fc062f1 commit 13a2d78
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -84,7 +84,6 @@ public class Radar extends BaseRenderer

static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.examples/render" ); //$NON-NLS-1$

private int scaleCount = 6;
private double percentReduce = 0.2;

private double dSafeSpacing = 10;
Expand Down Expand Up @@ -422,7 +421,7 @@ private void renderAxes( IDeviceRenderer idr, PolarCoordinate pc,
ore.setBackground( lia.getColor( ) );
ore.setOutline( lia );
Bounds bo = goFactory.createBounds( 0, 0, 0, 0 );
for ( int sc = 1; sc <= scaleCount; sc++ )
for ( int sc = 1; sc <= scaleHelper.getScaleCount( ); sc++ )
{
double spiderMag = magnitude * sc / scaleHelper.getScaleCount( );
ore.setBounds( pc.computeBounds( bo, spiderMag ) );
Expand Down

0 comments on commit 13a2d78

Please sign in to comment.