EJSC.PieSeries.onPieceNeedsColor

See Also: Using Colors

Top  Previous  Next

 

Definition

 

boolean onPieceNeedsColor( EJSC.PiePoint point, EJSC.PieSeries series, EJSC.Chart chart )

 

Description

 

If assigned, this event is triggered for each piece in a pie series immediately before it pulls a color from the default colors array.  The event provides the EJSC.PiePoint object which represents the piece which needs a color, the EJSC.PieSeries which owns the piece and the EJSC.Chart which owns the series.  Return a color string formatted as "rgb(<red value>, <green value>, <blue value>)", i.e. Orange would be "rgb(237,173,0)"