@mcdevsl/superset-ui
Version:
34 lines (25 loc) • 1.1 kB
Markdown
## @superset-ui/plugin-chart-table
[](https://www.npmjs.com/package/@superset-ui/plugin-chart-table)
[](https://david-dm.org/apache-superset/superset-ui-plugins?path=plugins/superset-ui-plugin-chart-table)
This plugin provides Table chart 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.
```js
import TableChartPlugin from '@superset-ui/plugin-chart-table';
new TableChartPlugin().configure({ key: 'table' }).register();
```
Then use it via `SuperChart`. See
[storybook](https://apache-superset.github.io/superset-ui-plugins/?selectedKind=plugin-chart-table)
for more details.
```js
<SuperChart
chartType="table"
width={600}
height={600}
formData={...}
queriesData={[{
data: {...},
}]}
/>
```