BiChartSeries

This describes a series of values that is used with the BiGraph control. Each series has a unique id and every value of the series belongs to a certain BiChartCategory.

This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiChartSeries .

Constructor

new BiChartSeries ( oGraph,sId [ ,sTitle [ ,oValues ] ] )

Parameters

NameTypeOptionalDefaultDescripton
oGraphBiGraphThe graph that the series belongs to
sIdStringThe id of the series
sTitleStringcheckedThe title of the series
oValuesNumber[]checked[] The values in the series given in the same order as the categories

Properties

NameTypegetsetDescripton
absSumNumbercheckedThe sum of the absolute values in the series
idStringcheckedThe id of the series
indexNumbercheckedThe index of the series
maximumValueNumbercheckedThe maximum of the values in the series
minimumValueNumbercheckedThe maximum of the values in the series
sumNumbercheckedThe sum of the values in the series
titleStringcheckedcheckedThe title of the series
valuesNumber[]checkedcheckedThe values in the series. This is the same order as the order of the categories. If a value for a certain category is missing the value for that is null in the array.

Methods

NameDescription
fromXmlElementModifies the existing chart series by taking the properties from an XML element
getValueByCategoryReturns the value for the given category
getValueByCategoryIdReturns the value for the given category id
getValueByIndexReturns the value for the given index
setValueByCategorySets the value for the given category
setValueByCategoryIdSets the value for the given category id
setValueByIndexSets the value for the given index
toXmlElementSerializes the series to an XML element (sub tree)

Events

None.

Static Methods

NameDescription
fromXmlElementCreates a new series object from an XML element

Static Fields

None.

Remarks

Changing the series does not update the chart. The graph components needs to be updated manually.

Method Details

fromXmlElement

Modifies the existing chart series by taking the properties from an XML element

Syntax

object.fromXmlElement ( oNode )

Parameters

NameTypeOptionalDefaultDescripton
oNodeElementThe element describing the chart series

Return Type

void

getValueByCategory

Returns the value for the given category

Syntax

object.getValueByCategory ( oCategory )

Parameters

NameTypeOptionalDefaultDescripton
oCategoryBiChartCategoryThe category to get the value for

Return Type

Number

getValueByCategoryId

Returns the value for the given category id

Syntax

object.getValueByCategoryId ( sCatId )

Parameters

NameTypeOptionalDefaultDescripton
sCatIdStringThe category id to get the value for

Return Type

Number

getValueByIndex

Returns the value for the given index

Syntax

object.getValueByIndex ( i )

Parameters

NameTypeOptionalDefaultDescripton
iNumberThe index to get the value for

Return Type

Number

setValueByCategory

Sets the value for the given category

Syntax

object.setValueByCategory ( oCategory,nValue )

Parameters

NameTypeOptionalDefaultDescripton
oCategoryBiChartCategoryThe category to set the value for
nValueNumberThe value to set

Return Type

void

setValueByCategoryId

Sets the value for the given category id

Syntax

object.setValueByCategoryId ( sCatId,nValue )

Parameters

NameTypeOptionalDefaultDescripton
sCatIdStringThe category id to set the value for
nValueNumberThe value to set

Return Type

void

setValueByIndex

Sets the value for the given index

Syntax

object.setValueByIndex ( i,nValue )

Parameters

NameTypeOptionalDefaultDescripton
iNumberThe category id to set the value for
nValueNumberThe value to set

Return Type

void

toXmlElement

Serializes the series to an XML element (sub tree)

Syntax

object.toXmlElement ( oDoc )

Parameters

NameTypeOptionalDefaultDescripton
oDocBiXmlDocumentThe XML document to create the element in

Return Type

Element

Static Method Details

fromXmlElement

Creates a new series object from an XML element

Syntax

BiChartSeries . fromXmlElement ( oGraph,oNode )

Parameters

NameTypeOptionalDefaultDescripton
oGraphBiGraphThe graph that the series belongs to
oNodeElementThe element describing the series

Return Type

BiChartSeries