mirror of
https://github.com/apache/superset.git
synced 2026-05-24 01:05:21 +00:00
Collapse the multi-file plugin/ subdirectory (buildQuery, controlPanel,
transformProps, index) into a single top-level src/index.tsx using
defineChart(). The chart/WordCloud.tsx component stays as a sibling.
- Move plugin/controls/ up to src/controls/ so the new index.tsx can
import the local RotationControl and ColorSchemeControl directly.
- Delete src/index.ts barrel (the new index.tsx is the entrypoint and
re-exports from ./types).
- WordCloudChartPlugin is exported both as default and named, matching
the previous public API.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@superset-ui/plugin-chart-word-cloud
This plugin provides Word Cloud 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.
import WordCloudChartPlugin from '@superset-ui/plugin-chart-word-cloud';
new WordCloudChartPlugin().configure({ key: 'word-cloud' }).register();
Then use it via SuperChart. See
storybook
for more details.
<SuperChart
chartType="word-cloud"
width={600}
height={600}
formData={...}
queriesData={[{
data: {...},
}]}
/>