This property enables / disables automatic sizing and positioning of the legend box. When this property is set to true, the charting engine will automatically set the size of the legend box to half the height/width of the chart and position the legend box in the center of the chart frame. |
||
Data Type: |
Boolean |
|
Range: |
true / false |
|
true= |
Charting engine automatically calculates position and size of legends |
|
false= |
Do not automatically calculate position and size of legends |
|
Default: |
false |
|
Syntax: |
setLegendAutomatic ( true | false ); |
|
boolean = getLegendAutomatic (); |
||
Example: |
perspective1.setViewableGroups(3); |
|
|
||
perspective1.setLegendAutomatic(false); |
||
|
||
Also See: |
LegendDisplay, LegendMarkerPosition, LegendReverse, LegendTextAutofit, setLegendRect() |
This property enables/disables drawing of the legend box. It also affects all legend box objects (legend text, legend marker, and legend line). When the legend box is not drawn, neither are its components. Legends are not displayed for histogram charts or any chart that is colored by group (ColorMode=2). |
||
Data Type: |
Boolean |
|
Range: |
true / false |
|
true= |
Show the legends |
|
false= |
Do not show the legends |
|
Default: |
true |
|
Syntax: |
setLegendDisplay ( true | false ); |
|
boolean = getLegendDisplay(); |
||
Example: |
perspective1.setDepthRadius(0); |
|
|
||
setLegendDisplay (false); |
||
|
||
Also See: |
LegendAutomatic, LegendMarkerPosition, LegendReverse, LegendTextAutofit, UseSeriesShapes, setLegendRect() |
This property sets the location and format of the chart legends. |
||
Data Type: |
Integer |
|
Range: |
0...4 |
|
0= |
Legend box to the left of legend text |
|
1= |
Legend text to the left of legend box |
|
2= |
Legend text below legend box |
|
3= |
Legend text above legend box |
|
4= |
Legend text inside legend box |
|
Default: |
0 (Legend box to the left of legend text) |
|
Syntax: |
setLegendMarkerPosition ( value ); |
|
value = getLegendMarkerPosition(); |
||
Example: |
perspective1.setViewableGroups(3); |
|
|
||
perspective1.setLegendMarkerPosition(1); |
||
|
||
perspective1.setLegendMarkerPosition(2); |
||
|
||
perspective1.setLegendMarkerPosition(3); |
||
|
||
perspective1.setLegendMarkerPosition(4); |
||
|
||
Also See: |
LegendAutomatic, LegendDisplay, LegendReverse, LegendTextAutofit, UseSeriesShapes, setLegendRect() |
This property sets the number of legend markers to drawn in a single row in the legend area. |
|
Data Type: |
Integer |
Range: |
0...number of series in graph (0 = draw the same number of markers in a row as the number of series in the graph). Any other value will draw that number of series in a row. |
Default: |
0 (draw the same number of markers in a row as the number of series in the graph) |
Syntax: |
setLegendMarkersPerRow ( value ); |
value = getLegendMarkersPerRow(); |
|
This property enables (true) / disables (false) drawing of legends in reverse order. |
||
Data Type: |
Boolean |
|
Range: |
true / false |
|
true= |
Draw legends in reverse order |
|
false= |
Draw legends in normal order |
|
Default: |
false |
|
Syntax: |
setLegendReverse ( true | false ); |
|
boolean = getLegendReverse(); |
||
Example: |
perspective1.setLegendMarkerPosition(4); |
|
|
||
perspective1.setLegendReverse(false); |
||
|
||
Also See: |
LegendAutomatic, LegendDisplay, LegendMarkerPosition, LegendTextAutofit, UseSeriesShapes, setLegendRect() |
This property enables (true) / disables (false) automatic fitting of the legend text. |
||
Data Type: |
Boolean |
|
Range: |
true / false |
|
true= |
Automatically fit legend text |
|
false= |
Do not automatically fit legend text |
|
Default: |
true |
|
Syntax: |
setLegendTextAutofit ( true | false); |
|
boolean = getLegendTextAutofit(); |
||
Also See: |
LegendAutomatic, LegendDisplay, LegendMarkerPosition, LegendReverse, setLegendRect(), setFontSizeVC() |