superset/superset-frontend/plugins/legacy-preset-chart-deckgl
Daniel Vaz Gaspar c12deed12e
chore: deprecate multiple old APIs (#28492)
2024-05-14 22:00:45 +01:00
..
src chore: deprecate multiple old APIs (#28492) 2024-05-14 22:00:45 +01:00
test/utils chore: Refactor deck.gl plugins to Typescript (#24933) 2023-08-28 13:56:06 +02:00
types feat: Add Deck.gl Contour Layer (#24154) 2023-10-10 11:20:37 +02:00
README.md docs: replace broken david badges with libraries.io (#27903) 2024-04-04 23:00:23 -06:00
package.json build(deps): update underscore requirement from ^1.12.1 to ^1.13.6 in /superset-frontend/plugins/legacy-preset-chart-deckgl (#28069) 2024-04-19 21:56:16 -06:00
tsconfig.json refactor(monorepo): relocate deckgl to Superset (#17596) 2021-12-09 08:45:18 +08:00

README.md

@superset-ui/legacy-preset-chart-deckgl

Version Libraries.io

This plugin provides deck.gl for Superset.

Usage

Import the preset and register. This will register all the chart plugins under deck.gl.

import { DeckGLChartPreset } from '@superset-ui/legacy-preset-chart-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 { ArcChartPlugin } from '@superset-ui/legacy-preset-chart-deckgl';

new ArcChartPlugin().configure({ key: 'deck_arc' }).register();

Then use it via SuperChart. See storybook for more details.

<SuperChart
  chartType="deck_arc"
  width={600}
  height={600}
  formData={...}
  queriesData={[{
    data: {...},
  }]}
/>