Class

com.highcharts.config

ChartEvents

Related Doc: package config

Permalink

class ChartEvents extends Object

Annotations
@RawJSType() @ScalaJSDefined()
Note

JavaScript name: chart-events

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ChartEvents
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChartEvents()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val addSeries: Function

    Permalink

    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. Through event.options you can access the series options that was passed to the addSeries method. Returning false prevents the series from being added.

    Since

    1.2.0

  5. val afterPrint: Function

    Permalink

    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

    4.1.0

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val beforePrint: Function

    Permalink

    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

    4.1.0

  8. val click: Function

    Permalink

    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 and event.yAxis, which are arrays containing the axes of each dimension and each axis' value at the clicked spot. The primary axes are event.xAxis[0] and event.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
    	)
    }
    

    Since

    1.2.0

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val drilldown: Function

    Permalink

    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. Event arguments:

    <dl>

    <dt>category</dt>

    If a category label was clicked, which index.

    <dt>point</dt>

    The originating point.

    <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>

    This event is also utilized for async drilldown, where the seriesOptions are not added by option, but rather loaded async.

    Example:
    1. Async drilldown

    Since

    3.0.8

  11. val drillup: Function

    Permalink

    Fires when drilling up from a drilldown series.

    Fires when drilling up from a drilldown series.

    Since

    3.0.8

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  20. val load: Function

    Permalink

    Fires when the chart is finished loading.

    Fires when the chart is finished loading. 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.

    From version 2.0.4, there is also a second parameter to Highcharts.Chart where a callback function can be passed to be executed on chart.load.

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  25. val redraw: Function

    Permalink

    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.

    Since

    1.2.0

  26. val selection: Function

    Permalink

    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 calling event.preventDefault().

    Information on the selected area can be found through event.xAxis and event.yAxis, which are arrays containing the axes of each dimension and each axis' min and max values. The primary axes are event.xAxis[0] and event.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);
    }
    

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped