ilog.views.chart.renderer
Class IlvPieChartRenderer

ilog.views.chart.IlvChartRenderer
      extended by ilog.views.chart.renderer.IlvCompositeChartRenderer
          extended by ilog.views.chart.renderer.IlvSimpleCompositeChartRenderer
              extended by ilog.views.chart.renderer.IlvPieChartRenderer

public class IlvPieChartRenderer
extends IlvSimpleCompositeChartRenderer

A renderer displaying pie and doughnut charts.

The following figure illustrates the representation modes available for a pie renderer: as a pie on the left, as a doughnut (with a hole size of 25) on the right.



CSS example:

ilvPieChartRenderer {
    class : "ilog.views.chart.renderer.IlvPieChartRenderer";
    annotation : "@#ilvDataLabelAnnotation";
    holeSize : "2";
    name : "<value>";
    strokeOn : "false";
    styles[0] : "@#ilvStyle1";
    styles[1] : "@#ilvStyle2";
    visible : "false";
    visibleInLegend : "false";
}


Property Summary
 IlvDataAnnotation annotation
          
Specifies a global annotation for all the data sets displayed by this renderer.
 java.lang.String class
          
Creates a new pie chart renderer.
 int holeSize
          
Sets the size of the hole in a doughnut chart.
 java.lang.String name
          
Sets the name of this renderer.
 boolean strokeOn
          
Specifies whether the outline of the slices is drawn.
 IlvStyle[] styles
          
Sets the styles used by the child renderers.
 boolean visible
          
Toggles the visibility of this renderer.
 boolean visibleInLegend
          
Indicates whether the renderer appears in the legend.
 

Property Detail

class

public java.lang.String class

Creates a new pie chart renderer.

CSS example:     class : "ilog.views.chart.renderer.IlvPieChartRenderer";


annotation

public IlvDataAnnotation annotation

Specifies a global annotation for all the data sets displayed by this renderer. The specified annotation will also be associated with all the data sets that are connected to this renderer.

CSS example:     annotation : "@#ilvDataLabelAnnotation";

See implementing class IlvDataLabelAnnotation for an example of implementing an annotation.


holeSize

public int holeSize

Sets the size of the hole in a doughnut chart. This size specifies the percentage of the available space that the hole will occupy. It can take values between 0 and 100.

CSS example:     holeSize : "2";


name

public java.lang.String name

Sets the name of this renderer.

CSS example:     name : "<value>";


strokeOn

public boolean strokeOn

Specifies whether the outline of the slices is drawn.

CSS example:     strokeOn : "false";


styles

public IlvStyle[] styles

Sets the styles used by the child renderers. Each child renderer is associated with a style from the specified array.

CSS example:    

styles[0] : "@#ilvStyle1";
styles[1] : "@#ilvStyle2";

See implementing class IlvStyle for an example of implementing a styles.


visible

public boolean visible

Toggles the visibility of this renderer.

CSS example:     visible : "false";


visibleInLegend

public boolean visibleInLegend

Indicates whether the renderer appears in the legend.

The default value of this property is true, which means that the renderer will automatically create and add items to the legend.

CSS example:     visibleInLegend : "false";



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.