Trait

com.highstock.api

Chart

Related Doc: package api

Permalink

trait Chart extends Object

Annotations
@RawJSType() @native()
Note

JavaScript name: Chart

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 addCredits(options: Object = ???): Unit

    Permalink

    Set a new credits label for the chart.

    Set a new credits label for the chart.

    options

    A configuration object for the credits as defined at credits.

    Since

    5.0.0

  5. def addSeries(options: Object = ???, redraw: Boolean = ???, animation: Any = ???): CleanJsObject[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 initialized, add the series as a configuration option instead. In a StockChart with the navigator enabled, the base series can't be added dynamically. With multiple axes, the offset is dynamically adjusted

    options

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

    animation

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

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val container: 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.

  9. val credits: Any

    Permalink

    The chart's credits label.

    The chart's credits label. The label has an update method that allows setting new options as per the credits option set.

    Since

    5.0.0

  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.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def exportChart(options: Object = ???, chartOptions: Object = ???): 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.

    Example:
    1. Export chart

  14. def exportChartLocal(options: Object = ???, chartOptions: Object = ???): Unit

    Permalink

    Export the chart to a PNG or SVG without sending it to a server.

    Export the chart to a PNG or SVG without sending it to a server. Requires modules/exporting.js and modules/offline-exporting.js.

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def get(id: String = ???): |[|[CleanJsObject[Axis], CleanJsObject[Series]], CleanJsObject[Point]]

    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. Returns undefined if no item is found.

    id

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getSVG(additionalOptions: Object = ???): 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.

  19. def getSelectedPoints(): Array[CleanJsObject[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.

  20. def getSelectedSeries(): Array[CleanJsObject[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.

  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.

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

    Permalink

    The options structure for the chart.

  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 right calls this method.

  31. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. def redraw(animation: Any = ???): 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.

  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: Array[CleanJsObject[Series]]

    Permalink

    An array of all the chart's series.

  35. def setSize(width: Double = ???, height: Double = ???, animation: Any = ???): Unit

    Permalink

    Resize the chart to a given width and height.

    Resize the chart to a given width and height. In order to set the width only, the height argument can be skipped. To set the height only, pass undefined for the width.

    width

    The new pixel width of the chart. Since v4.2.6, the argument can be undefined in order to preserve the current value (when setting height only), or null to adapt to the width of the containing element.

  36. def setTitle(title: Object = ???, subtitle: Any = ???, redraw: Boolean = ???): 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.

  37. def showLoading(str: String = ???): 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.

  38. val subtitle: Any

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

    Permalink
    Definition Classes
    AnyRef
  40. val title: Any

    Permalink

    The chart title.

    The chart title. The title has an update method that points back to Chart.setTitle.

    Since

    5.0.0

  41. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  43. def update(options: Object = ???, redraw: Boolean = ???): Unit

    Permalink

    A generic function to update any element of the chart.

    A generic function to update any element of the chart. Elements can be enabled and disabled, moved, re-styled, re-formatted etc.

    A special case is configuration objects that take arrays, for example xAxis, yAxis or series. For these collections, an id option is used to map the new option set to an existing object. If an existing object of the same id is not found, the corresponding item is updated. So for example, running chart.update with a series item without an id, will cause the existing chart's series with the same index in the series array to be updated.

    See also the responsive option set. Switching between responsive.rules basically runs chart.update under the hood.

    options

    A configuration object for the new chart options as defined in the options section of the API.

    Since

    5.0.0

  44. def valueOf(): Any

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. val xAxis: Array[CleanJsObject[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].

  49. val yAxis: Array[CleanJsObject[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].

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped