Global Configuration Options
Global options control the overall appearance and behavior of an ECharts instance. These are top-level properties in theEChartsOption object.
Basic Structure
EChartsOption Interface
The complete option interface is defined in~/workspace/source/src/export/option.ts:258-293:
Core Components
Title
Display chart title and subtitle:Legend
Show legend for series identification (supports plain and scrollable types from~/workspace/source/src/export/option.ts:150-151):
Tooltip
Interactive tooltip on hover:Toolbox
Interactive toolbox with features (from~/workspace/source/src/export/option.ts:131-144):
Coordinate Systems
Grid (Cartesian)
Rectangular coordinate system for line, bar, scatter charts:Polar
Polar coordinate system:Radar
Radar coordinate system:Geo
Geographic coordinate system:Axis Components
X/Y Axis (Cartesian)
Radius/Angle Axis (Polar)
Single Axis
For single-dimensional data:Parallel Axis
For parallel coordinates:Data Components
Dataset
Manage data separately from series:DataZoom
Zoom and navigate data (from~/workspace/source/src/export/option.ts:146-147):
VisualMap
Map data to visual channels (from~/workspace/source/src/export/option.ts:148-149):
Interactive Components
AxisPointer
Axis indicator:Brush
Area selection tool:Global Settings
From~/workspace/source/src/util/types.ts:688-715:
Timeline
For showing multiple options over time:Graphic
Custom graphic elements:Aria (Accessibility)
Accessibility support:Related Documentation
- Series Options - Configure chart series
- TypeScript Types - Type definitions for TypeScript
Source Code Reference
- Main option types:
~/workspace/source/src/export/option.ts - Component imports:
~/workspace/source/src/export/option.ts:20-70