superset/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-pivot-table/README.md
Krist Wongsuphasawat 9e47ea8a96 feat: upgrade @superset-ui to v0.12 (#183)
* build: update dependencies

* feat: replace payload with queryData

* feat: replace payload with queryData

* fix: rename hooks

* fix: types from query package

* fix: more typings

* docs: update readme

* fix: import query

* fix: change NOOP to const

* fix: update dependency versions
2021-11-26 11:45:45 +08:00

1.2 KiB

@superset-ui/legacy-plugin-chart-pivot-table

Version David (path)

This plugin provides Pivot Table 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 PivottableChartPlugin from '@superset-ui/legacy-plugin-chart-pivot-table';

new PivottableChartPlugin()
  .configure({ key: 'pivot-table' })
  .register();

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

<SuperChart
  chartType="pivot-table"
  width={600}
  height={600}
  formData={...}
  queryData={{
    data: {...},
  }}
/>