superset/superset-frontend/plugins/plugin-chart-handlebars
2023-01-25 18:01:06 +01:00
..
src feat: Move cross filters to Dashboard (#22785) 2023-01-25 18:01:06 +01:00
test refactor: remove useless groupby from QueryObject (#21643) 2022-09-30 11:53:54 +08:00
types chore: adding missing examples in the gallery for several chart types (#22597) 2023-01-05 11:43:32 +02:00
package.json chore(superset-ui): bump superset-ui-chart-controls and plugin-chart-handlebars back to version 0.18.25 (#22694) 2023-01-12 10:04:26 +02:00
README.md feat: Adds plugin-chart-handlebars (#17903) 2022-04-26 14:34:28 +03:00
tsconfig.json feat: Adds plugin-chart-handlebars (#17903) 2022-04-26 14:34:28 +03:00

@superset-ui/plugin-chart-handlebars

Version

This plugin renders the data using a handlebars template.

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 HandlebarsChartPlugin from '@superset-ui/plugin-chart-handlebars';

new HandlebarsChartPlugin().configure({ key: 'handlebars' }).register();

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

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

File structure generated

├── package.json
├── README.md
├── tsconfig.json
├── src
│   ├── Handlebars.tsx
│   ├── images
│   │   └── thumbnail.png
│   ├── index.ts
│   ├── plugin
│   │   ├── buildQuery.ts
│   │   ├── controlPanel.ts
│   │   ├── index.ts
│   │   └── transformProps.ts
│   └── types.ts
├── test
│   └── index.test.ts
└── types
    └── external.d.ts