Superset Chart - Pivot Table provides comprehensive pivot table chart plugin for Apache Superset with interactive data visualization and summarization capabilities.
—
Main plugin class for registering the pivot table chart type with Superset, including chart metadata, behaviors, and configuration options.
The main plugin class that extends ChartPlugin to register the pivot table chart type.
/**
* Main plugin class for registering pivot table chart with Superset
* Extends ChartPlugin with pivot table specific configuration
*/
export default class PivotTableChartPlugin extends ChartPlugin<
PivotTableQueryFormData,
ChartProps<QueryFormData>
> {
constructor();
}Usage Example:
import { PivotTableChartPlugin } from "@superset-ui/plugin-chart-pivot-table";
// Create and register the plugin
const plugin = new PivotTableChartPlugin();
plugin.configure({ key: 'pivot-table-v2' }).register();
// Plugin is now registered with Superset registryThe plugin includes comprehensive chart metadata that defines its capabilities and appearance in Superset.
interface ChartMetadata {
behaviors: [Behavior.INTERACTIVE_CHART, Behavior.DRILL_TO_DETAIL];
category: string; // 'Table'
description: string;
exampleGallery: { url: string }[];
name: string; // 'Pivot Table'
tags: string[]; // ['Additive', 'Report', 'Tabular', 'Popular']
thumbnail: string;
}The plugin is configured with essential components for chart functionality.
interface PluginConfiguration {
buildQuery: (formData: PivotTableQueryFormData) => QueryContext;
controlPanel: ControlPanelConfig;
loadChart: () => Promise<ChartComponent>;
metadata: ChartMetadata;
transformProps: (chartProps: ChartProps<QueryFormData>) => PivotTableProps;
}Defines the interactive capabilities supported by the pivot table chart.
enum Behavior {
INTERACTIVE_CHART = 'INTERACTIVE_CHART',
DRILL_TO_DETAIL = 'DRILL_TO_DETAIL'
}Behavior Details:
INTERACTIVE_CHART: Enables cross-filtering and interactive selectionDRILL_TO_DETAIL: Supports drilling down to underlying data recordsInstall with Tessl CLI
npx tessl i tessl/npm-superset-ui--plugin-chart-pivot-table