Class Tee.Series
Base abstract class to define a series of data
Defined in: <..\..\src\teechart.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Tee.Series(o, o2)
|
Field Attributes | Field Name and Description |
---|---|
The parent chart this Series object belongs to.
|
|
Paints points using series fill color, or each point with a different color
from series palette or chart palette color array.
|
|
Defines the mouse cursor to show when mouse is over a series point.
|
|
Contains all series data values, labels, etc.
|
|
Visual properties to display series data.
|
|
Defines the horizontal axis associated with this series.
|
|
Displays annotations near series points.
|
|
Defines the horizontal axis associated with this series.
|
|
Determines if this series will be displayed or not.
|
Method Attributes | Method Name and Description |
---|---|
addRandom(count, range, x)
|
|
associatedToAxis(axis)
|
|
bounds(r)
|
|
calc(index, p)
|
|
calcStack(index, p, value)
|
|
cellRect(r, act, series)
|
|
clicked()
|
|
count()
|
|
dataText(index, style, title, asArray)
|
|
doHover(index)
|
|
doSort(sortBy, ascending)
|
|
getFill(index, f)
|
|
getFillStyle(r, color)
|
|
getRect()
|
|
init(o, o2)
|
|
initZ(index, total)
|
|
isNull(index)
|
|
labelOrTitle(index)
|
|
legendColor(index)
|
|
markPos(t, p)
|
|
markText(index)
|
|
mousemove(p)
|
|
mouseout()
|
|
pointOrigin(index, sumAll)
|
|
refresh(failure)
|
|
setChart(series, chart)
|
|
titleText(index)
|
|
toPercent(index)
|
|
valueOrLabel(index)
|
|
valueText(index)
|
|
Class Detail
Tee.Series(o, o2)
- Parameters:
- {Object|Tee.Chart|Number[]} o
- An array of numbers, or a chart or datasource object.
- o2
Field Detail
{Tee.Chart}
chart
The parent chart this Series object belongs to.
{Boolean}
colorEach
Paints points using series fill color, or each point with a different color
from series palette or chart palette color array.
- Default Value:
- "auto"
{String}
cursor
Defines the mouse cursor to show when mouse is over a series point.
- Default Value:
- "default"
{Object}
data
Contains all series data values, labels, etc.
{Tee.Format}
format
Visual properties to display series data.
{String}
horizAxis
Defines the horizontal axis associated with this series.
- Default Value:
- "bottom"
{String}
legendText
{Tee.Series.Marks}
marks
Displays annotations near series points.
{String}
vertAxis
Defines the horizontal axis associated with this series.
- Default Value:
- "left"
{Boolean}
visible
Determines if this series will be displayed or not.
- Default Value:
- true
Method Detail
addRandom(count, range, x)
- Parameters:
- count
- range
- x
{Boolean}
associatedToAxis(axis)
- Parameters:
- axis
- Returns:
- {Boolean} Returns if series is associated to axis, either horizontal or vertical.
bounds(r)
- Parameters:
- r
calc(index, p)
- Parameters:
- index
- p
calcColorEach()
calcStack(index, p, value)
- Parameters:
- index
- p
- value
cellRect(r, act, series)
- Parameters:
- r
- act
- series
clicked()
{Number}
count()
- Returns:
- {Number} Returns the number of series data values.
{String}
dataText(index, style, title, asArray)
- Parameters:
- {Number} index
- The point position in series data array.
- {String} style
- Defines how text is returned: "auto", "value", "percent", "percentlabel", "valuelabel", "label", "index", "labelvalue", "labelpercent"
- title
- asArray
- Returns:
- {String} Returns the text string to show for a given series point index.
doHover(index)
- Parameters:
- index
{Array}
doSort(sortBy, ascending)
- Parameters:
- sortBy
- ascending
- Returns:
- {Array} Returns an array of series data indices sorted according to sortBy parameter.
drawMarks()
{String}
getFill(index, f)
- Parameters:
- index
- f
- Returns:
- {String} Returns the color of index point in series, using series palette or chart palette.
{CanvasGradient}
getFillStyle(r, color)
- Parameters:
- r
- color
- Returns:
- {CanvasGradient} Returns a canvas gradient using color, or color if gradient is not visible.
getRect()
horizMargins()
init(o, o2)
- Parameters:
- o
- o2
initZ(index, total)
- Parameters:
- index
- total
{boolean}
isNull(index)
- Parameters:
- index
- Returns:
- {boolean} Returns true when the index'th series value is null and should not be painted.
labelOrTitle(index)
- Parameters:
- index
{Color}
legendColor(index)
- Parameters:
- index
- Returns:
- {Color} Returns the color of index'th legend symbol.
{Number}
legendCount()
- Returns:
- {Number} Returns the number of items to show at legend.
markPos(t, p)
- Parameters:
- t
- p
{String}
markText(index)
- Parameters:
- index
- Returns:
- {String} Returns the text string to show at series marks, for a given series point index.
{Number}
maxXValue()
- Returns:
- {Number} Returns the maximum value of series x values, or data length minus one, if no x values exist.
{Number}
maxYValue()
- Returns:
- {Number} Returns the maximum value of series values, or zero if no values exist.
{Number}
minXValue()
- Returns:
- {Number} Returns the minimum value of series x values, or zero if no x values exist.
{Number}
minYValue()
- Returns:
- {Number} Returns the minimum value of series data values, or zero if no values exist.
mousedown()
mousemove(p)
- Parameters:
- p
mouseout()
{Number}
pointOrigin(index, sumAll)
- Parameters:
- index
- sumAll
- Returns:
- {Number} Returns the sum of all previous visible series index'th value, for stacking.
recalcAxes()
refresh(failure)
- Parameters:
- failure
setChart(series, chart)
- Parameters:
- series
- chart
{Number}
stackMaxValue()
- Returns:
- {Number} Returns the maximum of all series values, or sum of all stacked values.
titleText(index)
- Parameters:
- index
{String}
toPercent(index)
- Parameters:
- index
- Returns:
- {String} Returns a percentual representation of the series index'th value, on total of series values.
{String}
valueOrLabel(index)
- Parameters:
- index
- Returns:
- {String} Returns the series index'th data label, or the value if no label exists at that index.
{String}
valueText(index)
- Parameters:
- index
- Returns:
- {String} Returns the text string for a given series point index value.
vertMargins()