mirror of
https://github.com/apache/superset.git
synced 2026-05-29 20:29:34 +00:00
Make sort_by_metric and sort_by_series independent controls instead of the previous behavior where series sort was unconditionally appended alongside the metric sort. This allows users to choose metric-only sorting (enabling Druid TopN optimization) while optionally adding a secondary series sort for tie-breaking. Changes: - buildQuery.ts: sort_by_metric and sort_by_series are now independent - controlPanel.tsx: add sort_by_series checkbox (default: false) - buildQuery.test.ts: cover all four sort combinations - DB migration: set sort_by_series=true for existing word_cloud charts to preserve backward compatibility Fixes #39072
@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: {...},
}]}
/>