EChart
Apache ECharts is a feature rich javascript charting library.
This implementation is a minimal wrapper for the echarts-for-react package. This means you write normal EChart config to create charts.
See the Apache ECharts docs for the chart settings API. See the ECharts theme builder to create beautiful custom themes.
View more Apache EChart examples.
Block
Block Setup
id: block_id
type: EChart
properties:
option:
xAxis:
type: category
data:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
yAxis:
type: value
series:
- type: bar
data:
- 150
- 230
- 224
- 218
- 135
- 147
- 260
Settings
EChart JSON Schema Definition
type: object
properties:
events:
properties:
click:
description: Trigger actions when the element is clicked.
type: array
type: object
properties:
additionalProperties: false
properties:
height:
default: auto
description: Specify chart height explicitly, in pixel.
type:
- number
- string
init:
description: EChart init object.
properties:
locale:
default: EN
description: Specify the locale.
enum:
- EN
- ZN
type: string
renderer:
default: canvas
description: Chart renderer.
enum:
- canvas
- svg
type: string
type: object
option:
description: EChart settings object.
type: object
style:
description: Css style object to apply to EChart div.
type: object
theme:
description: EChart theme object.
type: object
width:
default: auto
description: Specify chart width explicitly, in pixel.
type:
- number
- string
type: object