SBIN2010 opened a new pull request, #43346:
URL: https://github.com/apache/superset/pull/43346

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   
   A new visualization type, the Butterfly Chart (based on ECharts), has been 
added.
   
   The butterfly chart compares two metrics across categories: horizontal bars 
extend to the left and right from a central axis. It is useful for comparing 
two indicators across the same categories (e.g., men vs. women, planned vs. 
actual, or two time periods).
   
   What has been added:
   
   `EchartsButterflyChartPlugin` (viz_type: `butterfly`) in 
`plugin-chart-echarts`
   Registration in `MainPreset` and `VizType`
   Query: one dimension (groupby), two metrics (`left_metric`, `right_metric`), 
sorting via `orderby` (defaulting to sorting by category)
   Settings: colors and labels for left/right series, legend, axis formatting, 
value display on bars, category label rotation
   Unit tests for `buildQuery`, `transformProps`, and `controlPanel`
   
   Technical details:
   
   The left metric is displayed with negative values, and the right with 
positive values ​​(both using `Math.abs`)
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   <img width="2196" height="1326" alt="Снимок экрана от 2026-08-20 01-10-33" 
src="https://github.com/user-attachments/assets/56a97281-76b2-4a14-ac7b-c9d4030d21ed";
 />
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   run test 
   npm run test superset-frontend/plugins/plugin-chart-echarts/test/Butterfly
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [x] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to