ECharts.jl
The ECharts.jl package provides a Julia wrapper around the Apache ECharts JavaScript library.
ECharts.jl provides:
- High-level functions for quickly creating visualizations such as bar charts, area charts, line charts, and others
- Support for ColorBrewer color scales via ColorBrewer.jl and other colors via NoveltyColors.jl
- Inline output via IJulia (Jupyter Notebook) and VSCode, and REPL support via Blink.jl
Motivation
The idea behind the ECharts.jl API is simplicity. While it is possible to build complex graphics, the goal is to provide common visualizations with a minimum of configuration:
- A minimum of required arguments (usually, only data is required), with sensible defaults per chart type
- Legends shown only when two or more series are plotted; tooltip-on-hover enabled automatically
- Integrated
missingvalue support - Tight integration with the ECharts JavaScript library, providing rich interactivity (sliders, hover, toolbox, themes)
Workflow
- Choose a base chart type
- (Optional) Apply one or more modifier functions (functions ending with
!) to adjust the chart - (Optional) Set individual fields on the resulting
EChartstruct for fine-grained control
Example
using ECharts
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
y = [11, 11, 15, 13, 12, 13, 10]
# Step 1: choose a base chart type
ar = area(x, y, color = lineargradient("purple", "cyan"))
# Step 2: apply modifier functions
smooth!(ar)
xaxis!(ar, name = "Day of Week")
yaxis!(ar, name = "Daily High Temperature °C")
ar