superset/superset-frontend/plugins/plugin-chart-handlebars
yousoph e36e0fdf25
chore: Update Explore tooltip copy (#25438)
2023-09-29 23:11:19 -06:00
..
src chore: Update Explore tooltip copy (#25438) 2023-09-29 23:11:19 -06:00
test chore(frontend): Spelling (#19676) 2023-02-02 11:23:11 -07:00
types chore: adding missing examples in the gallery for several chart types (#22597) 2023-01-05 11:43:32 +02:00
README.md feat: Adds plugin-chart-handlebars (#17903) 2022-04-26 14:34:28 +03:00
package.json docs: cleanup references to `apache-superset/superset-ui` (#23796) 2023-04-25 09:18:27 -06: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