mirror of
https://github.com/apache/superset.git
synced 2026-05-23 16:55:19 +00:00
Convert all remaining React class components to function components using hooks (useState, useCallback, useEffect, useRef, useMemo) to satisfy the react-prefer-function-component ESLint rule. Key changes: - Converted components in dashboard, explore, SqlLab, and Chart areas - Updated associated test files with proper typing - Fixed JSX.Element return types for components used as JSX - Added explicit ControlHeader props where needed - Fixed shouldFocus callback signature in WithPopoverMenu usage Notable exceptions (not converted): - ErrorBoundary (uses componentDidCatch) - DragDroppable (react-dnd requires class instances) Co-Authored-By: Claude Opus 4.5 <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: {...},
}]}
/>