Chart class abstract

Copyright (c) 2017 ~ present NAVER Corp. billboard.js project is licensed under the MIT license

Annotations
  • @anonymous
  • @JS()

Constructors

Chart()

Properties

$ ↔ dynamic
getter/setter pair
axis ↔ dynamic
getter/setter pair
data ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
legend ↔ dynamic
getter/setter pair
plugins List
Plugin instance array
getter/setter pair
regions ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tooltip ↔ dynamic
getter/setter pair
xgrids GridOperations
getter/setter pair
ygrids GridOperations
getter/setter pair
zoom ↔ dynamic
getter/setter pair

Methods

categories([List<String> categories]) List<String>
Get and set the categories
category(num index, [String category]) String
Gets and sets the value a category
color(String targetId) String
Get the color for the specified targetId
config(String optionName, [dynamic value, bool redraw]) → dynamic
Get or set single config option value.
defocus([dynamic targetIds]) → void
This API fades out specified targets and reverts the others. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be faded out.
destroy() → void
Reset the chart object and remove element and events completely.
export([String mimeType, String callback(String dataUrl)]) String
Export chart as an image.
flow(dynamic args) → void
Flow data to the chart. By this API, you can append new data points to the chart. The args object can consist with following members:
flush([bool soft]) → void
Force to redraw.
focus([dynamic targetIds]) → void
This API highlights specified targets and fade out the others. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be highlighted.
groups(List<List<String>> groups) → void
Update groups for the targets.
hide([dynamic targetIds, dynamic options]) → void
This API hides specified targets. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be hidden. If withLegend is set true, legend will be hidden together with the specified data.
load(dynamic args) → void
Load data to the chart. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be toggles.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resize([dynamic size]) → void
Resize the chart. If no size is specified it will resize to fit.
revert([dynamic targetIds]) → void
This API reverts specified targets. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be reverted.
select([List<String> ids, List<num> indices, bool resetOthers]) → void
Change data point state to selected. By this API, you can select data points. To use this API, data.selection.enabled needs to be set true.
selected([String targetId]) Data
Get selected data points. By this API, you can get selected data points information. To use this API, data.selection.enabled needs to be set true.
show([dynamic targetIds, dynamic options]) → void
This API shows specified targets. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be shown. If withLegend is set true, legend will be shown together with the specified data.
toggle([dynamic targetIds, dynamic options]) → void
This API toggles (shows or hides) specified targets. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be toggles. If withLegend is set true, legend will be toggled together with the specified data.
toString() String
A string representation of this object.
inherited
unload([TargetIds targetIds, dynamic done()]) → dynamic
Unload data to the chart. You can specify multiple targets by giving an array that includes id as String.
unselect([List<String> ids, List<num> indices]) → void
Change data point state to unselected. By this API, you can unselect data points. To use this API, data.selection.enabled needs to be set true.
unzoom() → void
Unzoom to the original domain.
x([List x]) List
Get and set x values for the chart.
xs([dynamic xs]) → dynamic
Get and set x values for the chart.

Operators

operator ==(Object other) bool
The equality operator.
inherited