2019-01-31 14:26:09 -05:00
|
|
|
## @superset-ui/legacy-plugin-chart-rose
|
|
|
|
|
|
|
|
[![Version](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-rose.svg?style=flat-square)](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-rose.svg?style=flat-square)
|
2019-02-25 16:39:53 -05:00
|
|
|
[![David (path)](https://img.shields.io/david/apache-superset/superset-ui-plugins.svg?path=packages%2Fsuperset-ui-legacy-plugin-chart-rose&style=flat-square)](https://david-dm.org/apache-superset/superset-ui-plugins?path=packages/superset-ui-legacy-plugin-chart-rose)
|
2019-01-31 14:26:09 -05:00
|
|
|
|
|
|
|
This plugin provides Nightingale Rose Diagram 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 RoseChartPlugin from '@superset-ui/legacy-plugin-chart-rose';
|
|
|
|
|
|
|
|
new RoseChartPlugin()
|
|
|
|
.configure({ key: 'rose' })
|
|
|
|
.register();
|
|
|
|
```
|
|
|
|
|
2019-02-25 19:31:03 -05:00
|
|
|
Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui-plugins/?selectedKind=plugin-chart-rose) for more details.
|
2019-01-31 14:26:09 -05:00
|
|
|
|
|
|
|
```js
|
|
|
|
<SuperChart
|
|
|
|
chartType="rose"
|
2019-08-26 15:07:28 -04:00
|
|
|
width={600}
|
|
|
|
height={600}
|
|
|
|
formData={...}
|
|
|
|
queryData={{
|
|
|
|
data: {...},
|
2019-01-31 14:26:09 -05:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
```
|