mirror of
https://github.com/apache/superset.git
synced 2024-09-19 12:09:42 -04:00
89c2203704
feat: migrate 4 chart plugins
32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
## @superset-ui/legacy-plugin-chart-partition
|
|
|
|
[![Version](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-partition.svg?style=flat-square)](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-partition.svg?style=flat-square)
|
|
[![David (path)](https://img.shields.io/david/apache-superset/superset-ui-plugins.svg?path=packages%2Fsuperset-ui-legacy-plugin-chart-partition&style=flat-square)](https://david-dm.org/apache-superset/superset-ui-plugins?path=packages/superset-ui-legacy-plugin-chart-partition)
|
|
|
|
This plugin provides Partition 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 PartitionChartPlugin from '@superset-ui/legacy-plugin-chart-partition';
|
|
|
|
new PartitionChartPlugin()
|
|
.configure({ key: 'partition' })
|
|
.register();
|
|
```
|
|
|
|
Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui-plugins/?selectedKind=plugin-chart-partition) for more details.
|
|
|
|
```js
|
|
<SuperChart
|
|
chartType="partition"
|
|
width={600}
|
|
height={600}
|
|
formData={...}
|
|
queryData={{
|
|
data: {...},
|
|
}}
|
|
/>
|
|
``` |