WIP.
The initial purpose of this repo is to support Echarts radar in Superset. You can also use it as a reference on how to support other visualizations of Echarts.
Snapshot in Superset:
See also:
Current master: http://echarts-basic.iamhd.top
Note: You have to customize your own netlify to use this.
Package | Version | Note |
---|---|---|
@dmicros/superset-ui-preset-chart-echarts-basic | README |
See README to use
Please read the contributing guidelines which include development environment setup and other things you should know about coding in this repo.
Note: This repo is created with template at https://github.com/apache-superset/superset-ui-plugins-template .
The following is a typical plugin class:
export default class EchartsBasicRadarPlugin extends ChartPlugin {
constructor() {
super({
controlPanel,
loadChart: () => import('../EchartsBase'),
metadata,
transformProps,
});
}
}
Let's break it down:
- metadata - define the name and thumbnail displayed when user select a chart type to create
- controlPanel - define control panel shown on left side when user edit a chart
- loadChart - load react componet of a chart
- transformProps - transform form data and query data into chart props, which includes visual settings and data in proper format
Apache-2.0