Package muntjac :: Package addon :: Package invient :: Module invient_charts_config :: Class DataLabel
[hide private]
[frames] | no frames]

Class DataLabel

source code

object --+
         |
        DataLabel
Known Subclasses:

This class contains various attributes to format data labels. The data labels are displayed along with points and axis.


Authors:
Invient, Richard Lincoln
Instance Methods [hide private]
 
__init__(self, enabled=True)
If the argument is true then the datalabels will be displayed otherwise not.
source code
 
getAlign(self)
@return
source code
 
setAlign(self, align)
@param align
source code
 
getEnabled(self)
@return
source code
 
setEnabled(self, enabled)
If the argument is true then the datalabels will be displayed otherwise not.
source code
 
getFormatterJsFunc(self)
@return
source code
 
setFormatterJsFunc(self, formatterJsFunc)
Sets the argument string JavaScript function.
source code
 
getRotation(self)
@return
source code
 
setRotation(self, rotation)
Sets text rotation in degrees
source code
 
getStyle(self)
@return
source code
 
setStyle(self, style)
Sets css style for the data label
source code
 
getX(self)
@return
source code
 
setX(self, x)
Sets the x position offset of the label relative to the point.
source code
 
getY(self)
@return
source code
 
setY(self, y)
Sets the y position offset of the label relative to the point.
source code
 
getColor(self)
@return
source code
 
setColor(self, color)
Sets color for the data labels.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, enabled=True)
(Constructor)

source code 

If the argument is true then the datalabels will be displayed otherwise not.

@param enabled

Overrides: object.__init__

setEnabled(self, enabled)

source code 

If the argument is true then the datalabels will be displayed otherwise not.

@param enabled

setFormatterJsFunc(self, formatterJsFunc)

source code 

Sets the argument string JavaScript function. This function will be called to format the data label. Refer to highchart documentation for more details on this http://www.highcharts.com/ref/#plotOptions-series-dataLabels

@param formatterJsFunc

setRotation(self, rotation)

source code 

Sets text rotation in degrees

@param rotation

setStyle(self, style)

source code 

Sets css style for the data label

@param style

setX(self, x)

source code 

Sets the x position offset of the label relative to the point. Defaults to 0.

@param x

setY(self, y)

source code 

Sets the y position offset of the label relative to the point. Defaults to -6.

@param y

setColor(self, color)

source code 

Sets color for the data labels. e.g. if the color is blue then in case of line series, for each point, the data label will be displayed in blue color.

@param color

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)