@mcdevsl/superset-ui
Version:
34 lines (25 loc) • 1.18 kB
Markdown
## @superset-ui/legacy-plugin-chart-sunburst
[](https://www.npmjs.com/package/@superset-ui/legacy-plugin-chart-sunburst)
[](https://david-dm.org/apache-superset/superset-ui-plugins?path=packages/superset-ui-legacy-plugin-chart-sunburst)
This plugin provides Sunburst for Superset.
### Usage
Configure `key`, which can be any `string`, and register the plugin. This `key` will be used to
lookup this chart throughout the app.
```js
import SunburstChartPlugin from '@superset-ui/legacy-plugin-chart-sunburst';
new SunburstChartPlugin().configure({ key: 'sunburst' }).register();
```
Then use it via `SuperChart`. See
[storybook](https://apache-superset.github.io/superset-ui-plugins/?selectedKind=plugin-chart-sunburst)
for more details.
```js
<SuperChart
chartType="sunburst"
width={600}
height={600}
formData={...}
queriesData={[{
data: {...},
}]}
/>
```