0.0.8 • Published 4 years ago
@nurture-farm-plugins/preset-chart-custom-deckgl v0.0.8
@nurture-farm-plugins/preset-chart-custom-deckgl
This plugin provides Custom deck.gl for Superset.
Usage
Import the preset and register. This will register custom chart plugins under deck.gl.
import { DeckGLChartPreset } from '@nurture-farm-plugins/preset-chart-custom-deckgl';
new DeckGLChartPreset().register();or register charts one by one. Configure key, which can be any string, and register the plugin.
This key will be used to lookup this chart throughout the app.
import { CustomScatterChartPlugin } from '@nurture-farm-plugins/preset-chart-custom-deckgl';
new CustomScatterChartPlugin().configure({ key: 'deck_custom_scatter' }).register();Then use it via SuperChart. See
storybook for more details.
<SuperChart
chartType="deck_custom_scatter"
width={600}
height={600}
formData={...}
queriesData={[{
data: {...},
}]}
/>