trait Series extends Object
- Annotations
- @RawJSType() @native()
- Alphabetic
- By Inheritance
- Series
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
addPoint(options: BaseSeriesData[_], redraw: Boolean = js.native, shift: Boolean = js.native, animation: |[Boolean, Object] = js.native): Unit
Add a point to the series after render time.
Add a point to the series after render time. The point can be added at the end, or by giving it an X value, to the start or in the middle of the series.
- animation
Defaults to true. When true, the graph will be animated with default animation options. The animation can also be a configuration object with properties
durationandeasing.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
chart: Chart
Read only.
Read only. The chart that the series belongs to.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hide(): Unit
Hides the series if visible.
Hides the series if visible. If the
chart.ignoreHiddenSeriesoption is true, the chart is redrawn without this series.Example: -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
val
name: String
The series' name as given in the options.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
options: config.series.Series
Read only.
Read only. The series' options.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
remove(redraw: Boolean = js.native): Unit
Remove the series from the chart.
Remove the series from the chart.
- redraw
Defaults to
true. Whether to redraw the chart after the series is removed. If doing more operations on the chart, it is a good idea to set redraw to false and callchart.redraw()after.
Example: -
def
select(selected: Boolean = js.native): Unit
Select or unselect the series.
Select or unselect the series. This means its
selectedproperty is set,the checkbox in the legend is toggled and when selected, the series is returned in thechart.getSelectedSeries()method.Example: -
def
selected: Boolean
Read only.
Read only. The series' selected state as set by
series.select(). -
def
setData(data: |[|[Array[Double], Array[Array[Double]]], Array[Object]], redraw: Boolean = js.native, animation: |[Boolean, Object] = js.native, updatePoints: Boolean = js.native): Unit
Apply a new set of data to the series and optionally redraw it.
Apply a new set of data to the series and optionally redraw it. Note the difference in behaviour when setting the same amount of points, or a different amount of points, as handled by the
updatePointsparameter. -
def
setVisible(visible: Boolean, redraw: Boolean = js.native): Unit
A utility function to show or hide the series with an optional redraw.
A utility function to show or hide the series with an optional redraw.
- visible
Whether to show or hide the series. If undefined, the visibility is toggled.
- redraw
Defaults to
true. Whether to redraw the chart after the series is altered.If doing more operations on the chart, it is a good idea to set redraw to false and callchart.redraw()after.
-
def
show(): Unit
Shows the series if hidden.
Shows the series if hidden.
Example: -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
type: String
Read only.
Read only. The series' type, like "line", "area" etc.
-
def
update(options: config.series.Series, redraw: Boolean = js.native): Unit
Update the series with a new set of options.
Update the series with a new set of options. For a clean and precise handling of new options, all methods and elements from the series is removed, and it is initiated from scratch. Therefore, this method is more performance expensive than some other utility methods like
setDataorsetVisible.- options
New options that will be merged into the series' existing options.
Example: -
def
valueOf(): Any
- Definition Classes
- Object
-
val
visible: Boolean
Read only.
Read only. The series' visibility state as set by
series.show(),series.hide(), or the initial configuration. -
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
- @native() @throws( ... )
-
val
xAxis: XAxis
Read only.
Read only. The unique xAxis object associated with the series.
-
val
yAxis: YAxis
Read only.
Read only. The unique yAxis object associated with the series.