superset/superset-frontend/plugins/legacy-preset-chart-nvd3
dependabot[bot] 0124a5c055
build(deps): bump moment from 2.29.4 to 2.30.1 in /superset-frontend (#26938)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-31 22:01:36 -07:00
..
src chore: make TS enums strictly PascalCase (#26875) 2024-01-31 17:40:44 -08:00
test refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00
CHANGELOG.md chore: Reformat changelogs (#26815) 2024-01-26 21:48:17 +01:00
README.md refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00
package.json build(deps): bump moment from 2.29.4 to 2.30.1 in /superset-frontend (#26938) 2024-01-31 22:01:36 -07:00
tsconfig.json refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00

README.md

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

Version David (path)

This plugin provides Big Number for Superset.

Usage

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

import { NVD3ChartPreset } from '@superset-ui/legacy-preset-chart-nvd3';

new NVD3ChartPreset().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 {
  AreaChartPlugin,
  LineChartPlugin,
} from '@superset-ui/legacy-preset-chart-nvd3';

new AreaChartPlugin().configure({ key: 'area' }).register();
new LineChartPlugin().configure({ key: 'line' }).register();

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

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