mirror of
https://github.com/apache/superset.git
synced 2024-09-19 20:19:37 -04:00
72c2b7afc0
* feat(plugin-chart-choropleth-map): scaffold and load map (#527) * feat: add package * feat: storybook working * feat: load usa and world map * refactor: clean up * fix: remove test data * refactor: utilize dynamic import * build: remove unused dependencies * fix: address pr comments * fix: comment * feat(plugin-chart-choropleth-map): add more country maps (#529) * feat(plugin-chart-choropleth-map): add zooming (#528) * feat: add zooming * feat: can zoom in and out * feat: add zoom controls * refactor: extract controls * fix: address comments * feat(plugin-chart-choropleth-map): add encoding (#541) * feat: add encoder * feat: add encoding * docs: add categorical * fix: any * docs: update storybook * feat(plugin-chart-choropleth-map): add tooltip (#548) * feat: support tooltip * feat: support tooltip fields * fix: default projection * build: bump dependency * build: update dependency * build: mark private |
||
---|---|---|
.. | ||
src | ||
test | ||
types | ||
package.json | ||
README.md |
@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.
import ChoroplethMapChartPlugin from '@superset-ui/plugin-chart-choropleth-map';
new ChoroplethMapChartPlugin()
.configure({ key: 'choropleth-map' })
.register();
Then use it via SuperChart
. See storybook for more details.
<SuperChart
chartType="choropleth-map"
width={600}
height={600}
formData={...}
queryData={{
data: {...},
}}
/>