jk-superset-echarts-plugin

JK Superset Chart - Echarts


Keywords
JK, superset, echarts
License
MIT
Install
npm install jk-superset-echarts-plugin@2.7.2

Documentation

jk-superset-echarts-plugin

JK code size version license

JK Superset Chart - Echarts.

Usage

Configure key, which can be any string, and register the plugin. This key will be used to lookup this chart throughout the app.

import {
  JkEchartsBarChartPlugin,
  JkEchartsDiyChartPlugin,
  JkEchartsGanttChartPlugin,
  JkEchartsHydrographChartPlugin,
  JkEchartsLineChartPlugin,
  JkEchartsLineBarChartPlugin,
  JkEchartsPieChartPlugin,
  JkEchartsSankeyChartPlugin,
  JkEchartsScatterChartPlugin,
  JkNumberChartPlugin,
} from 'jk-superset-echarts-plugin';

new JkEchartsBarChartPlugin().configure({ key: 'jk_echarts_bar' }).register();
new JkEchartsDiyChartPlugin().configure({ key: 'jk_echarts_diy' }).register();
new JkEchartsGanttChartPlugin().configure({ key: 'jk_echarts_gantt' }).register();
new JkEchartsHydrographChartPlugin().configure({ key: 'jk_echarts_hydrograph' }).register();
new JkEchartsLineChartPlugin().configure({ key: 'jk_echarts_line' }).register();
new JkEchartsLineBarChartPlugin().configure({ key: 'jk_echarts_line_bar' }).register();
new JkEchartsPieChartPlugin().configure({ key: 'jk_echarts_pie' }).register();
new JkEchartsSankeyChartPlugin().configure({ key: 'jk_echarts_sankey' }).register();
new JkEchartsScatterChartPlugin().configure({ key: 'jk_echarts_scatter' }).register();
new JkNumberChartPlugin().configure({ key: 'jk_number' }).register();

License

MIT

Copyright (c) 2021-present zhuhuajian