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

Name Type Optional Default Descripton
oChart BiAbstractChart The chart that the chart section is part of
oCategory BiChartCategory The category that the chart section is displaying

Properties

Name Type get set Descripton
category BiChartCategory checked The category that the chart section is displaying
chart BiAbstractChart checked The chart that the chart section is part of
contextMenu BiMenu checked Returns the context menu for the section. This returns null if no specific context menu is available for the section.
explode Number checked checked The amount to move the pie chart section from the center (percentage of radius)
fillAngle Number checked checked The fill angle used when painting the chart.
fillColor String checked checked The fill color for the chart
fillColor2 String checked checked The alternate fill color used when fill type is gradient
fillOpacity Number checked checked The fill opacity for the chart
fillType String checked checked The fill type used when painting the chart
graph BiGraphBase checked The graphs that the chart section is part of
markerType String checked checked The marker type for the chart
markerVisible String checked checked Whether markers are visible for the chart
series BiChartSeries checked The series that the chart section is displaying
strokeColor String checked checked The stroke color for the chart
strokeOpacity Number checked checked The stroke opacity for the chart
title String checked Returns the title of the category the section is part of
toolTip BiToolTip checked Returns the tool tip to show. If this returns null no tool tip is used for the section.

Methods

Name Description
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.
hasExplode Returns true if the explode property has been set on the section
hasFillAngle Returns true if the fillAngle property has been set on the section
hasFillColor Returns true if the fillColor property has been set on the section
hasFillColor2 Returns true if the fillColor2 property has been set on the section
hasFillOpacity Returns true if the fillOpacity property has been set on the section
hasFillType Returns true if the fillType property has been set on the section
hasMarkerType Returns true if the markerType property has been set on the section
hasMarkerVisible Returns true if the markerVisible property has been set on the section
hasStrokeColor Returns true if the strokeColor property has been set on the section
hasStrokeOpacity Returns 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

Name Type Optional Default Descripton
bHasText Boolean Boolean whether the icon should be used with text
bEnabled Boolean Whether the icon is enabled
sIconPosition String The position of the icon. Valid values are "left", "right" "top" and "bottom".
nIconTextGap Number The gap between the text and the icon.
sClassName String checked Optional class name to put on the HTML element representing the icon.

Return Type

String

hasExplode

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

Syntax

object.hasExplode
 (
 
 )
 

Parameters

Return Type

Boolean

hasFillAngle

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

Syntax

object.hasFillAngle
 (
 
 )
 

Parameters

Return Type

Boolean

hasFillColor

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

Syntax

object.hasFillColor
 (
 
 )
 

Parameters

Return Type

Boolean

hasFillColor2

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

Syntax

object.hasFillColor2
 (
 
 )
 

Parameters

Return Type

Boolean

hasFillOpacity

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

Syntax

object.hasFillOpacity
 (
 
 )
 

Parameters

Return Type

Boolean

hasFillType

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

Syntax

object.hasFillType
 (
 
 )
 

Parameters

Return Type

Boolean

hasMarkerType

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

Syntax

object.hasMarkerType
 (
 
 )
 

Parameters

Return Type

Boolean

hasMarkerVisible

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

Syntax

object.hasMarkerVisible
 (
 
 )
 

Parameters

Return Type

Boolean

hasStrokeColor

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

Syntax

object.hasStrokeColor
 (
 
 )
 

Parameters

Return Type

Boolean

hasStrokeOpacity

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

Syntax

object.hasStrokeOpacity
 (
 
 )
 

Parameters

Return Type

Boolean