superset/superset-frontend/plugins/plugin-chart-handlebars
Diego Medina 5d107b86ab
fix: explore warnings cleanup (#20864)
2022-07-26 13:28:50 +08:00
..
src fix: explore warnings cleanup (#20864) 2022-07-26 13:28:50 +08:00
test chore: Adds theme object to chart properties (#19951) 2022-05-04 09:55:22 -03:00
types feat(handlebars plugin): adding handlebars helpers for common math operations (#20648) 2022-07-08 08:10:29 -06:00
README.md feat: Adds plugin-chart-handlebars (#17903) 2022-04-26 14:34:28 +03:00
package.json chore: bumps the handlebars plugin package version to match the family. (#20813) 2022-07-22 15:18:45 +08:00
tsconfig.json feat: Adds plugin-chart-handlebars (#17903) 2022-04-26 14:34:28 +03:00

README.md

@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