BiAbstractChartSectionBase

Used as base class for marker, column rect and pie chart section. These are used to create the visual presentation for the data points of a chart.

This class extends BiComponent and therefore all methods and fields available for BiComponent are also available for BiAbstractChartSectionBase .

Constructor

new BiAbstractChartSectionBase ( oChart,oCategory )

Parameters

NameTypeOptionalDefaultDescripton
oChartBiAbstractChartThe chart that the chart section is part of
oCategoryBiChartCategoryThe category that the chart section is displaying

Properties

NameTypegetsetDescripton
categoryBiChartCategorycheckedThe category that the chart section is displaying
chartBiAbstractChartcheckedThe chart that the chart section is part of
contextMenuBiMenucheckedReturns the context menu for the section. This returns null if no specific context menu is available for the section.
explodeNumbercheckedcheckedThe amount to move the pie chart section from the center (percentage of radius)
fillAngleNumbercheckedcheckedThe fill angle used when painting the chart.
fillColorStringcheckedcheckedThe fill color for the chart
fillColor2StringcheckedcheckedThe alternate fill color used when fill type is gradient
fillOpacityNumbercheckedcheckedThe fill opacity for the chart
fillTypeStringcheckedcheckedThe fill type used when painting the chart
graphBiGraphBasecheckedThe graphs that the chart section is part of
markerTypeStringcheckedcheckedThe marker type for the chart
markerVisibleStringcheckedcheckedWhether markers are visible for the chart
seriesBiChartSeriescheckedThe series that the chart section is displaying
strokeColorStringcheckedcheckedThe stroke color for the chart
strokeOpacityNumbercheckedcheckedThe stroke opacity for the chart
titleStringcheckedReturns the title of the category the section is part of
toolTipBiToolTipcheckedReturns the tool tip to show. If this returns null no tool tip is used for the section.

Methods

NameDescription
getIconHtmlReturns the HTML code needed to display an icon representing the chart. Implementing this function allows the component to act as an icon for a label.
hasExplodeReturns true if the explode property has been set on the section
hasFillAngleReturns true if the fillAngle property has been set on the section
hasFillColorReturns true if the fillColor property has been set on the section
hasFillColor2Returns true if the fillColor2 property has been set on the section
hasFillOpacityReturns true if the fillOpacity property has been set on the section
hasFillTypeReturns true if the fillType property has been set on the section
hasMarkerTypeReturns true if the markerType property has been set on the section
hasMarkerVisibleReturns true if the markerVisible property has been set on the section
hasStrokeColorReturns true if the strokeColor property has been set on the section
hasStrokeOpacityReturns true if the strokeOpacity property has been set on the section

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

It is preferred to set the properties on the graph presentation manager instead of directly setting it on the section. Setting the property on the presentation manager makes it persist when changing the type of the chart and other changes that require the sections to be recreated.

Method Details

getIconHtml

Returns the HTML code needed to display an icon representing the chart. Implementing this function allows the component to act as an icon for a label.

Syntax

object.getIconHtml ( bHasText,bEnabled,sIconPosition,nIconTextGap [ ,sClassName ] )

Parameters

NameTypeOptionalDefaultDescripton
bHasTextBooleanBoolean whether the icon should be used with text
bEnabledBooleanWhether the icon is enabled
sIconPositionStringThe position of the icon. Valid values are "left", "right" "top" and "bottom".
nIconTextGapNumberThe gap between the text and the icon.
sClassNameOptionalcheckedclass name to put on the HTML element representing

Return Type

String

hasExplode

Returns true if the explode property has been set on the section

Syntax

object.hasExplode ( )

Parameters

No arguments.

Return Type

Boolean

hasFillAngle

Returns true if the fillAngle property has been set on the section

Syntax

object.hasFillAngle ( )

Parameters

No arguments.

Return Type

Boolean

hasFillColor

Returns true if the fillColor property has been set on the section

Syntax

object.hasFillColor ( )

Parameters

No arguments.

Return Type

Boolean

hasFillColor2

Returns true if the fillColor2 property has been set on the section

Syntax

object.hasFillColor2 ( )

Parameters

No arguments.

Return Type

Boolean

hasFillOpacity

Returns true if the fillOpacity property has been set on the section

Syntax

object.hasFillOpacity ( )

Parameters

No arguments.

Return Type

Boolean

hasFillType

Returns true if the fillType property has been set on the section

Syntax

object.hasFillType ( )

Parameters

No arguments.

Return Type

Boolean

hasMarkerType

Returns true if the markerType property has been set on the section

Syntax

object.hasMarkerType ( )

Parameters

No arguments.

Return Type

Boolean

hasMarkerVisible

Returns true if the markerVisible property has been set on the section

Syntax

object.hasMarkerVisible ( )

Parameters

No arguments.

Return Type

Boolean

hasStrokeColor

Returns true if the strokeColor property has been set on the section

Syntax

object.hasStrokeColor ( )

Parameters

No arguments.

Return Type

Boolean

hasStrokeOpacity

Returns true if the strokeOpacity property has been set on the section

Syntax

object.hasStrokeOpacity ( )

Parameters

No arguments.

Return Type

Boolean