Attributes | Name and Description |
---|---|
|
caplin.chart.highchart.SeriesUtility(Object highChartSeries)
Constructs a new |
Attributes | Name and Description |
---|---|
|
Boolean
addTicks(Array periods, Function completionCallback)
Adds periods to a HighChart series. |
|
Object|null|undefined
getPointByTimestamp(Number timestamp)
Finds a HighChart point object based on the timestamp. |
|
Boolean
setPointValue(Object periodData)
Adds a new point to a series or updates an existing one if it is already present on the series. |
►
caplin.chart.highchart.SeriesUtility(Object highChartSeries)
Constructs a new caplin.chart.highchart.SeriesUtility
.
Object | highChartSeries | A HighChart series object. |
►
Boolean
addTicks(Array periods, Function completionCallback)
Adds periods to a HighChart series.
Array | periods | An array of periods in the Caplin chart format. |
Function | completionCallback | A function that runs once the periods have been processed. |
true
if the chart needs to be redrawn after calling this method,
false
otherwise.
►
Object|null|undefined
getPointByTimestamp(Number timestamp)
Finds a HighChart point object based on the timestamp.
Note that if
dataGrouping is
enabled, or if the chart is zoomed or panned so that it's not showing the point being searched for, this won't
return the Point
object, even if it was returned in one of the previous calls to this method.
Number | timestamp | The timestamp to searh for. |
undefined
will be returned.
If however the timestamp is part of a new period, null
will be returned.
►
Boolean
setPointValue(Object periodData)
Adds a new point to a series or updates an existing one if it is already present on the series.
Object | periodData | A series period data in the Caplin chart format. |
true
if the chart needs to be redrawn after calling this method,
false
otherwise.