@mcdevsl/superset-ui
Version:
34 lines (25 loc) • 1.18 kB
Markdown
## @superset-ui/plugin-chart-choropleth-map
[](https://www.npmjs.com/package/@superset-ui/plugin-chart-choropleth-map)
[](https://david-dm.org/apache-superset/superset-ui?path=packages/superset-ui-plugin-chart-choropleth-map)
This plugin provides Choropleth Map 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 ChoroplethMapChartPlugin from '@superset-ui/plugin-chart-choropleth-map';
new ChoroplethMapChartPlugin().configure({ key: 'choropleth-map' }).register();
```
Then use it via `SuperChart`. See
[storybook](https://apache-superset.github.io/superset-ui/?selectedKind=plugin-chart-choropleth-map)
for more details.
```js
<SuperChart
chartType="choropleth-map"
width={600}
height={600}
formData={...}
queriesData={[{
data: {...},
}]}
/>
```