class ChartEvents extends Object
- Annotations
- @RawJSType() @ScalaJSDefined()
- Note
JavaScript name:
chart-events
- Alphabetic
- By Inheritance
- ChartEvents
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ChartEvents()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
addSeries: UndefOr[Function]
Fires when a series is added to the chart after load time, using the
addSeries
method.Fires when a series is added to the chart after load time, using the
addSeries
method. One parameter,event
, is passed to the function. This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. Throughevent.options
you can access the series options that was passed to theaddSeries
method. Returning false prevents the series from being added. -
val
afterPrint: UndefOr[Function]
Fires after a chart is printed through the context menu item or the
Chart.print
method.Fires after a chart is printed through the context menu item or the
Chart.print
method. Requires the exporting module.- Since
1.1.0
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
beforePrint: UndefOr[Function]
Fires before a chart is printed through the context menu item or the
Chart.print
method.Fires before a chart is printed through the context menu item or the
Chart.print
method. Requires the exporting module.- Since
1.1.0
Example: -
val
click: UndefOr[Function]
Fires when clicking on the plot background.
Fires when clicking on the plot background. One parameter,
event
, is passed to the function. This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts.Information on the clicked spot can be found through
event.xAxis
andevent.yAxis
, which are arrays containing the axes of each dimension and each axis' value at the clicked spot. The primary axes areevent.xAxis[0]
andevent.yAxis[0]
. Remember the unit of a datetime axis is milliseconds since 1970-01-01 00:00:00.click: function(e) { console.log( Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', e.xAxis[0].value), e.yAxis[0].value ) }
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
drilldown: UndefOr[Function]
Fires when a drilldown point is clicked, before the new series is added.
Fires when a drilldown point is clicked, before the new series is added. This event is also utilized for async drilldown, where the seriesOptions are not added by option, but rather loaded async. Note that when clicking a category label to trigger multiple series drilldown, one
drilldown
event is triggered per point in the category.Event arguments:
<dl>
<dt>
category
</dt>- If a category label was clicked, which index.
<dt>
point
</dt>- The originating point.
<dt>
originalEvent
</dt>- The original browser event (usually click) that triggered the drilldown.
<dt>
points
</dt>- If a category label was clicked, this array holds all points corresponing to the category.
<dt>
seriesOptions
</dt>- Options for the new series
</dl>
-
val
drillup: UndefOr[Function]
Fires when drilling up from a drilldown series.
-
val
drillupall: UndefOr[Function]
In a chart with multiple drilldown series, this event fires after all the series have been drilled up.
In a chart with multiple drilldown series, this event fires after all the series have been drilled up.
- Since
4.2.4
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
val
load: UndefOr[Function]
Fires when the chart is finished loading.
Fires when the chart is finished loading. Since v4.2.2, it also waits for images to be loaded, for example from point markers. One parameter,
event
, is passed to the function. This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts.There is also a second parameter to the chart constructor where a callback function can be passed to be executed on chart.load.
Example: -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
redraw: UndefOr[Function]
Fires when the chart is redrawn, either after a call to chart.redraw() or after an axis, series or point is modified with the
redraw
option set to true.Fires when the chart is redrawn, either after a call to chart.redraw() or after an axis, series or point is modified with the
redraw
option set to true. One parameter,event
, is passed to the function. This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts.Example: -
val
render: UndefOr[Function]
Fires after initial load of the chart (directly after the
load
event), and after each redraw (directly after theredraw
event).Fires after initial load of the chart (directly after the
load
event), and after each redraw (directly after theredraw
event).- Since
5.0.7
-
val
selection: UndefOr[Function]
Fires when an area of the chart has been selected.
Fires when an area of the chart has been selected. Selection is enabled by setting the chart's zoomType. One parameter,
event
, is passed to the function. This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. The default action for the selection event is to zoom the chart to the selected area. It can be prevented by callingevent.preventDefault()
.Information on the selected area can be found through
event.xAxis
andevent.yAxis
, which are arrays containing the axes of each dimension and each axis' min and max values. The primary axes areevent.xAxis[0]
andevent.yAxis[0]
. Remember the unit of a datetime axis is milliseconds since 1970-01-01 00:00:00.selection: function(event) { // log the min and max of the primary, datetime x-axis console.log( Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', event.xAxis[0].min), Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', event.xAxis[0].max) ); // log the min and max of the y axis console.log(event.yAxis[0].min, event.yAxis[0].max); }
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )