Files
superset2/superset-frontend/plugins/plugin-chart-echarts
Evan 0ff66f84da fix(big-number): use const arrow fn in test to avoid TS2393 global scope conflict
The helper function was declared with the function keyword, which in
TypeScript script mode (no imports/exports) participates in the global
namespace. The root tsconfig includes ./plugins/**/* with no test
exclusion, so after plugins:build generates lib/ artifacts this caused
TS2393 (duplicate function implementation) during npm run type.

Switching to a const arrow function avoids global declaration merging
while keeping identical test behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 21:13:06 -07:00
..

@superset-ui/plugin-chart-echarts

Version Libraries.io

This plugin provides Echarts viz plugins for Superset:

  • Timeseries Chart (combined line, area bar with support for predictive analytics)
  • Pie Chart

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 {
  EchartsTimeseriesChartPlugin,
  EchartsPieChartPlugin,
} from '@superset-ui/plugin-chart-echarts';

new EchartsTimeseriesChartPlugin().configure({ key: 'echarts-ts' }).register();
new EchartsPieChartPlugin().configure({ key: 'pie' }).register();

Then use it via SuperChart. See storybook for more details.

<SuperChart
  chartType="echarts-ts"
  width={600}
  height={600}
  formData={...}
  queriesData={[{
    data: {...},
  }]}
/>