Skip to contents

The top-level configuration object passed to echarts.setOption(). Holds all chart components, series, and global settings.

Usage

EChartsOption(
  title = NULL,
  legend = NULL,
  grid = NULL,
  x_axis = NULL,
  y_axis = NULL,
  tooltip = NULL,
  visual_map = NULL,
  data_zoom = NULL,
  series = NULL,
  color = NULL,
  background_color = NULL,
  text_style = NULL,
  animation = NULL,
  animation_threshold = NULL,
  animation_duration = NULL,
  animation_easing = NULL,
  animation_delay = NULL,
  dark_mode = NULL,
  use_utc = NULL
)

Arguments

title

Optional Title or list: Title configuration.

legend

Optional Legend or list: Legend configuration.

grid

Optional Grid or list: Grid configuration.

x_axis

Optional Axis or list: X-axis configuration (xAxis).

y_axis

Optional Axis or list: Y-axis configuration (yAxis).

tooltip

Optional Tooltip: Tooltip configuration.

visual_map

Optional VisualMap or list: Visual map configuration (visualMap). Required for heatmaps to map data values to colors.

data_zoom

Optional DataZoom or list of DataZoom: Axis zoom component(s) (dataZoom). Pass a list to combine, e.g., a "slider" with an "inside" zoom.

series

Optional series object or list: Series configuration (LineSeries, BarSeries, ScatterSeries, PieSeries, BoxplotSeries, HeatmapSeries).

color

Optional Character: Color palette.

background_color

Optional Character: Chart background color.

text_style

Optional TextStyle: Global default text style.

animation

Optional Logical: Whether to enable animation.

animation_threshold

Optional Numeric [0, Inf): Data-count threshold that disables animation.

animation_duration

Optional Numeric [0, Inf): Initial animation duration in milliseconds.

animation_easing

Optional Character: Animation easing function name.

animation_delay

Optional Numeric [0, Inf): Initial animation delay in milliseconds.

dark_mode

Optional Logical or Character {"auto"}: Dark-mode setting.

use_utc

Optional Logical: Whether to use UTC for time axes.

Details

Corresponds to EChartsOption in src/export/option.ts (line 258) and ECUnitOption in src/util/types.ts (line 697).