This class defines a series of the chart. A series contains a
collection of points. Series can be one of types defined by SeriesType.
Each series must have unique name. If an attempt is made to add two
series with same then only the first added series will be in effect.
If the series type is not specified, it defaults to chart type and the
default chart type is SeriesType.LINE. A series has unique xAxis and
yAxis object associated with it. There is no need to set xAxis and yAxis
unless the chart has more than one one axis of any type and the series
must belong to any of the secondary axis.
It is also possible to specify configuration for individual series and
not just series type.
|
__init__(self,
name,
seriesType_or_config=None,
config=None)
Creates a series with given name, type and configuration |
source code
|
|
|
|
|
|
|
setName(self,
name)
Sets name of this series |
source code
|
|
|
|
|
setType(self,
typ)
Sets type of this series |
source code
|
|
|
|
|
setStack(self,
stack)
By using this stack property, it is possible to group series in a
stacked chart. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
removeAllPoints(self)
Removes all points in this series |
source code
|
|
|
addPoint(self,
shift,
points)
Adds one or more points into this series, specified as an argument to
this method |
source code
|
|
|
|
|
|
|
|
|
updatePointXValuesIfNotPresent(self)
Each of the subclass needs to implement this method to ensure that
each point has appropriate X value even if it is not specified. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|