Figure
Base class: Object
Figure builder that collects data, configuration and options.
Constructors
Figure() -> Figure
Creates an empty Figure.
Figure(const Figure figure) -> Figure
Copies a Figure.
Parameters
- figure: The figure to copy
Members
| Name | Description |
|---|---|
| bar | Adds a bar series defined by options only. Auto sampling uses sum when x values are ordered. |
| data_zoom | Sets the dataZoom option list. |
| dataset | Sets the dataset option. |
| grid | Ensures grid exists with default options. |
| heatmap | Adds a heatmap series defined by options only. Heatmap series are not auto-sampled. |
| legend | Ensures legend exists with default options. |
| line | Adds a line series from x/y pairs. Auto sampling uses minmax above 50000 points. |
| option | Sets a single top-level option. |
| options | Merges a map of top-level options. |
| sampling | Sets figure-level sampling mode. Auto uses minmax for line series and sum for ordered bar series; scatter and heatmap are not auto-sampled. |
| save | Writes the figure as a .figure file. |
| scatter | Adds a scatter series from x/y pairs. Scatter series are not auto-sampled. |
| title | Sets the figure title. |
| tooltip | Sets the tooltip option map. |
| visual_map | Sets the visualMap option map. |
| x_axis | Ensures xAxis exists with default options. |
| y_axis | Sets the yAxis option map. |