Trait

com.highcharts.api

Chart

Related Doc: package api

Permalink

trait Chart extends Object

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Chart
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. def addAxis(options: UndefOr[Object] = js.undefined, isX: UndefOr[Boolean] = js.undefined, redraw: UndefOr[Boolean] = js.undefined, animation: UndefOr[Any] = js.undefined): Unit

    Permalink

    Add an axis to the chart after render time.

    Add an axis to the chart after render time. Note that this method should never be used when adding data synchronously at chart render time, as it adds expense to the calculations and rendering. When adding data at the same time as the chart is initiated, add the axis as a configuration option instead.

    options

    The Axis options, as documented under xAxis and yAxis.

    Since

    3.0

  5. def addSeries(options: UndefOr[Object] = js.undefined, redraw: UndefOr[Boolean] = js.undefined, animation: UndefOr[Any] = js.undefined): Series

    Permalink

    Add a series to the chart after render time.

    Add a series to the chart after render time. Note that this method should never be used when adding data synchronously at chart render time, as it adds expense to the calculations and rendering. When adding data at the same time as the chart is initiated, add the series as a configuration option instead.

    options

    The series options, as documented under plotOptions.series and under the plotOptions for each series type.

    Since

    1.2.0

  6. def addSeriesAsDrilldown(point: UndefOr[Object] = js.undefined, seriesOptions: UndefOr[Object] = js.undefined): Unit

    Permalink

    Add a series to the chart as drilldown from a specific point in the parent series.

    Add a series to the chart as drilldown from a specific point in the parent series. This method is used for async drilldown, when clicking a point in a series should result in loading and displaying a more high-resolution series. When not async, the setup is simpler using the drilldown.series options structure.

    point

    The existing Point object from which the drilldown will start.

    Example:
    1. Async drilldown

    Since

    3.0.8

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val container: UndefOr[Object]

    Permalink

    A reference to the containing HTML element, dynamically inserted into the element given in chart.renderTo.

    A reference to the containing HTML element, dynamically inserted into the element given in chart.renderTo.

    Since

    1.2.5

  10. def destroy(): Unit

    Permalink

    Removes the chart and purges memory.

    Removes the chart and purges memory. This method should be called before writing a new chart into the same container. It is called internally on window unload to prevent leaks.

    Since

    1.2.2

  11. def drillUp(): Unit

    Permalink

    When the chart is drilled down to a child series, calling chart.drillUp() will drill up to the parent series.

    When the chart is drilled down to a child series, calling chart.drillUp() will drill up to the parent 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 exportChart(options: UndefOr[Object] = js.undefined, chartOptions: UndefOr[Object] = js.undefined): Unit

    Permalink

    Exporting module required.

    Exporting module required. Submit an SVG version of the chart to a server along with some parameters for conversion.

    options

    Exporting options. Out of the exporting options, the following options can be given as parameters to the exportChart method. All options default to the values given in the exporting config options. filename: the filename for the export without extension, url: the URL for the server module to do the conversion, width: the width of the PNG or JPEG image generated on the server, type: the MIME type of the converted image, sourceWidth: the width of the source (in-page) chart, sourceHeight: the height of the source chart.

    Since

    2.0

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def get(id: UndefOr[String] = js.undefined): Any

    Permalink

    Get an axis, series or point by its id as given in the configuration options.

    Get an axis, series or point by its id as given in the configuration options.

    id

    The id of the axis, series or point to get.

    Since

    1.2.0

  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getSVG(additionalOptions: UndefOr[Object] = js.undefined): String

    Permalink

    Exporting module required.

    Exporting module required. Get an SVG string representing the chart.

    additionalOptions

    Chart options to add to the exported chart in addition to the options given for the original chart. For example if series.lineWidth should be greater in the exported chart than in the original, or the chart should have a different background color, this is added here.

    Since

    2.0

  19. def getSelectedPoints(): Array[Point]

    Permalink

    Returns an array of all currently selected points in the chart.

    Returns an array of all currently selected points in the chart. Points can be selected either programmatically by the point.select() method or by clicking.

    Since

    1.2.0

  20. def getSelectedSeries(): Array[Series]

    Permalink

    Returns an array of all currently selected series in the chart.

    Returns an array of all currently selected series in the chart. Series can be selected either programmatically by the series.select() method or by checking the checkbox next to the legend item if series.showCheckBox is true.

    Since

    1.2.0

  21. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hideLoading(): Unit

    Permalink

    Hide the loading screen.

    Hide the loading screen. Options for the loading screen are defined at options.loading.

    Since

    1.2.0

  24. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. val options: UndefOr[Object]

    Permalink

    The options structure for the chart.

    The options structure for the chart.

    Since

    1.2.0

  30. def print(): Unit

    Permalink

    Exporting module required.

    Exporting module required. Clears away other elements in the page and prints the chart as it is displayed. By default, when the exporting module is enabled, a button at the upper left calls this method.

    Since

    2.0

  31. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. def redraw(animation: UndefOr[Any] = js.undefined): Unit

    Permalink

    Redraw the chart after changes have been done to the data or axis extremes.

    Redraw the chart after changes have been done to the data or axis extremes. All methods for updating axes, series or points have a parameter for redrawing the chart. This is true by default. But in many cases you want to do more than one operation on the chart before redrawing, for example add a number of points. In those cases it is a waste of resources to redraw the chart for each new point added. So you add the points and call chart.redraw() after.

    animation

    Defaults to true. When true, the update will be animated with default animation options. The animation can also be a configuration object with properties duration and easing.

    Since

    1.2.0

  33. def reflow(): Unit

    Permalink

    Reflows the chart to its container.

    Reflows the chart to its container. By default, the chart reflows automatically to its container following a window.resize event, as per the chart.reflow option. However, there are no reliable events for div resize, so if the container is resized without a window resize event, this must be called explicitly.

  34. val series: UndefOr[Array[Series]]

    Permalink

    An array of all the chart's series.

    An array of all the chart's series.

    Since

    1.2.0

  35. def setSize(width: UndefOr[Double] = js.undefined, height: UndefOr[Double] = js.undefined, animation: UndefOr[Any] = js.undefined): Unit

    Permalink

    Resize the chart to a given width and height.

    Resize the chart to a given width and height.

    width

    The new pixel width of the chart.

    height

    The new pixel height of the chart.

    animation

    Defaults to true. When true, the resize will be animated with default animation options. The animation can also be a configuration object with properties duration and easing.

  36. def setTitle(title: UndefOr[Object] = js.undefined, subtitle: UndefOr[Any] = js.undefined, redraw: UndefOr[Boolean] = js.undefined): Unit

    Permalink

    Set a new title or subtitle for the chart

    Set a new title or subtitle for the chart

    title

    A configuration object for the new title as defined at #title.

    Since

    2.1.0

  37. def showLoading(str: UndefOr[String] = js.undefined): Unit

    Permalink

    Dim the chart's plot area and show a loading label text.

    Dim the chart's plot area and show a loading label text. Options for the loading screen are defined at options.loading. A custom text can be given as a parameter for loading.

    Since

    2.0.5

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. val xAxis: UndefOr[Array[Axis]]

    Permalink

    An array of the chart's x axes.

    An array of the chart's x axes. If only one x axis, it is referenced by chart.xAxis[0].

    Since

    1.2.0

  46. val yAxis: UndefOr[Array[Axis]]

    Permalink

    An array of the chart's y axes.

    An array of the chart's y axes. If only one y axis, it is referenced by chart.yAxis[0].

    Since

    1.2.0

Deprecated Value Members

  1. def updatePosition(): Unit

    Permalink

    This method is deprecated as of 2.0.1.

    This method is deprecated as of 2.0.1. Updating the chart position after a move operation is no longer necessary.

    Annotations
    @deprecated
    Deprecated
    Since

    1.2.5

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped