Apache Superset 6.1.0: Stratum Bar Multi-Tier Distribution Plugin
Custom visualization plugin for Apache Superset 6.1.0 engineered in React and TypeScript for healthcare and enterprise BI dashboards. Renders stratified horizontal and vertical bar distributions with target reference thresholds, cohort variance indicators, and interactive `setDataMask` cross-filter broadcasting.
Stratified Clinical & Executive Distributions
In hospital performance analytics (such as Emergency Department triage color breakdowns or DRG surgical complexity strata), standard bar charts fail to communicate both absolute volumes and relative cohort share simultaneously alongside regional SLA thresholds.
Plugin Architecture & Feature Matrix
| Capability | Standard ECharts Bar | Stratum Bar Plugin (v6.1.0) | Healthcare BI Value |
|---|---|---|---|
| Dual Metric Encoding | Single value or tooltip only | Simultaneous absolute + % stratum label | Instant triage mix comprehension |
| SLA Reference Thresholds | Static single line | Per-stratum dynamic target markers | Highlights regional KPI compliance |
| Cross-Filter Granularity | Category axis only | Category + Stratum series tuple | Slices sibling widgets by exact cohort |
| Theme Integration | Fixed palette | Superset categorical + semantic tokens | Consistent clinical severity coloring |
*Table 1: Stratum Bar Plugin Capabilities vs Native Bar Chart*
// Cross-filter payload emission for stratified bar selection
export function buildStratumMask(category: string, stratum: string, colCat: string, colStrat: string) {
return {
extraFormData: {
filters: [
{ col: colCat, op: "IN", val: [category] },
{ col: colStrat, op: "IN", val: [stratum] },
],
},
filterState: { value: [category, stratum] },
};
}Key Features
- Adaptive Label Collision Engine: Automatically hides or repositions stratum badges when bar segments fall below minimum pixel width. - One-Click Cohort Drill-Down: Broadcasts composite filters across all charts in the Superset dashboard.
