Chapter 7.
Properties


Autoshading

 

In 3D charts and charts where 2.5D depth is applied with DepthRadius, this property enables/disables automatic shading of risers in the chart. If a 3D-graph type is selected, it also enables and disables shading of the 3D cube that surrounds the chart. If this property is set to true, light source settings are used to automatically shade the faces of a 3D graph, simulating a cast light beam. If this property is set to false, all sides of 3D risers or the 3D cube is the same color. It is not possible to color each face separately.

Data Type:

boolean

Range:

true / false

 

true=

Enable autoshading

 

false=

Disable autoshading

Default:

true

Syntax:

setAutoshading ( true | false );

 

boolean = getAutoshading();

Example:

perspective1.setAutoshading(true);

 

 

perspective1.setAutoshading(false);

 

 

perspective1.setGraphType(0);
perspective1.setAutoshading(true);

 

 

perspective1.setAutoshading(false);

 

Note:

When a 3D chart is used and Autoshading is disabled (false), the CubeLightSourceX, CubeLightSourceY, and CubeLightSourceZ properties are also disabled.

Also See:

CubeLightSourceX, CubeLightSourceY, CubeLightSourceZ

AxisTextAutofitMax

 

When axis text is automatically fitted (e.g., O1LabelAutofit or Y1LabelAutofit is true) and AxisTextAutofitMode is set to zero, this property defines the maximum size of autofitted axis text in virtual coordinates.

Data Type:

Integer

Range:

Any integer value. It should be greater than AxisTextAutofitMin.

Default:

2000

Syntax:

setAxisTextAutofitMax ( value );

 

value = getAxisTextAutofitMax();

Example:

perspective1.setViewableSeries(3);
perspective1.setAxisTextAutofitMin(200);
perspective1.setAxisTextAutofitMax(2500);
perspective1.setY1LabelAutofit(true);
perspective1.setDataScrollerPresenceGroups(0);
perspective1.setViewableGroups(3);
perspective1.setDepthRadius(0);

 

 

perspective1.setAxisTextAutofitMax(25000);

 

Also See:

AxisTextAutofitMin, AxisTextAutofitMode

AxisTextAutofitMin

 

When axis text is automatically fitted (e.g., O1LabelAutofit or Y1LabelAutofit is true) and AxisTextAutofitMode is set to zero, this property defines the minimum size of autofitted axis text in virtual coordinates.

Data Type:

Integer

Range:

Any integer value. It should be less than AxisTextAutofitMax.

Default:

500

Syntax:

setAxisTextAutofitMin ( value );

 

value = getAxisTextAutofitMin();

Also See:

AxisTextAutofitMax, AxisTextAutofitMode

AxisTextAutofitMode

 

This property selects the mode in which AxisTextAutofitMin, AxisTextAutofitMax, and AxisTextAutofitPercent properties are used.

Data Type:

Integer

Range:

0...2

 

0=

Normal autofit behavior, within limits of AxisTextAutofitMin and AxisTextAutofitMax

 

1=

All Axis text matches the Axis with the smallest font size as determined by Autofit

 

2=

All Axis text is maintained within "X percent" of the Axis with the smallest font size as determined by Autofit

Default:

0 (Normal autofit behavior)

Syntax:

setAxisTextAutofitMode ( value );

 

value = getAxisTextAutofitMode();

Example:

perspective1.setViewableSeries(3);
perspective1.setAxisTextAutofitMin(200);
perspective1.setAxisTextAutofitMax(25000);
perspective1.setY1LabelAutofit(true);
perspective1.setDataScrollerPresenceGroups(0);
perspective1.setViewableGroups(3);
perspective1.setDepthRadius(0);
perspective1.setAxisTextAutofitMode(0);

 

 

perspective1.setAxisTextAutofitMode(1);

 

 

perspective1.setAxisTextAutofitMode(2);

 

Also See:

AxisTextAutofitMin, AxisTextAutofitMax, AxisTextAutofitPercent

AxisTextAutofitPercent

 

When AxisTextAutofitMode(2) is used, this property selects the percent at which Axis text is maintained within the smallest font size as determined by Autofit. The default value of ten percent is almost identical to AxisTextAutofitMode(1).

Data Type:

Integer

Range:

0...100%

Default:

10%

Syntax:

setAxisTextAutofitPercent ( value );

 

value = getAxisTextAutofitPercent ();

Example:

perspective1.setViewableSeries(3);
perspective1.setAxisTextAutofitMin(200);
perspective1.setAxisTextAutofitMax(25000);
perspective1.setY1LabelAutofit(true);
perspective1.setDataScrollerPresenceGroups(0);
perspective1.setAxisTextAutofitPercent(25);
perspective1.setAxisTextAutofitMode(2);
perspective1.setViewableGroups(3);
perspective1.setDepthRadius(0);

 

 

perspective1.setAxisTextAutofitPercent(75);

 

Also See:

AxisTextAutofitMin, AxisTextAutofitMax, AxisTextAutofitMode