Skip to contents

A chart theme that controls default colors, text styles, and component appearance. Corresponds to the object passed as the second argument to echarts.init(dom, theme) or registered via echarts.registerTheme().

Usage

Theme(
  color = NULL,
  background_color = NULL,
  text_style = NULL,
  title = NULL,
  legend = NULL,
  tooltip = NULL,
  line = NULL,
  bar = NULL,
  pie = NULL,
  scatter = NULL,
  category_axis = NULL,
  value_axis = NULL,
  log_axis = NULL,
  time_axis = NULL
)

Arguments

color

Optional Character: Color palette.

background_color

Optional Character: Chart background color.

text_style

Optional TextStyle: Global default text style.

title

Optional Named list: Title overrides.

legend

Optional Named list: Legend overrides.

tooltip

Optional Named list: Tooltip overrides.

line

Optional Named list: Line-series defaults.

bar

Optional Named list: Bar-series defaults.

pie

Optional Named list: Pie-series defaults.

scatter

Optional Named list: Scatter-series defaults.

category_axis

Optional Named list: Category-axis defaults.

value_axis

Optional Named list: Value-axis defaults.

log_axis

Optional Named list: Log-axis defaults.

time_axis

Optional Named list: Time-axis defaults.

Details

TS source: src/model/globalDefault.ts, src/theme/dark.ts.