Basic example
Syntax overview
Single-word text values don’t need quotes. Multi-word values with spaces must be enclosed in quotes.
Orientation
Charts can be horizontal or vertical (default):Title
Add a title to your chart:X-axis
The x-axis can be categorical or numeric: Categorical:Y-axis
The y-axis represents numerical range values: With range:Both axes are optional. If not provided, ranges will be auto-generated from data.
Line chart
Add a line to your chart:Bar chart
Add bars to your chart:Simple example
The minimal chart needs only the chart name and one data set:Multiple data series
Combine multiple lines and bars in one chart:Configuration
Chart dimensions and settings
Chart dimensions and settings
Axis configuration
Axis configuration
Theme variables
Available theme variables
Available theme variables
Customize chart colors using theme variables:
Custom colors
Set colors for lines and bars usingplotColorPalette: