superset/superset-frontend/plugins/plugin-chart-handlebars
Jamie King fb919c718d
docs: replace broken david badges with libraries.io (#27903)
2024-04-04 23:00:23 -06:00
..
src chore: make TS enums strictly PascalCase (#26875) 2024-01-31 17:40:44 -08: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 docs: replace broken david badges with libraries.io (#27903) 2024-04-04 23:00:23 -06:00
package.json build(deps-dev): update @types/lodash requirement from ^4.14.202 to ^4.17.0 in /superset-frontend/plugins/plugin-chart-handlebars (#27800) 2024-04-03 14:56:44 -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 Libraries.io

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