superset icon indicating copy to clipboard operation
superset copied to clipboard

feat(Chart): Add Column-Based Coloring Feature with Optional Header & Total Row

Open ERGO1995 opened this issue 9 months ago • 3 comments

SUMMARY

Implemented a new Column Coloring feature that allows users to apply fixed background colors to selected metric columns in the Pivot Table. Integrated a color picker for enhanced usability. Added an optional "Apply color to headers & total rows" checkbox to extend the column coloring to headers and total cells. Ensured seamless integration with existing Conditional Formatting, preserving its functionality.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Capture d’écran 2025-02-28 à 15 21 42

Capture d’écran 2025-02-28 à 15 21 54

Capture d’écran 2025-02-28 à 15 22 14

Capture d’écran 2025-02-28 à 15 22 23

TESTING INSTRUCTIONS

In the Customization tab, locate the Column Coloring section. Click "Add new color formatter". Select a Metric column from the dropdown. Pick a color using the color picker or manually enter a HEX color code. Click Apply. Expected Result: The selected metric column should be highlighted with the chosen background color.

Enable the "Apply color to headers & total rows" checkbox. Expected Result: The column headers and total row for the selected metric should match the column’s background color. Disable the checkbox. Expected Result: The header and total row should return to the default styling.

ADDITIONAL INFORMATION

  • [ ] Has associated issue:
  • [ ] Required feature flags:
  • [x] Changes UI
  • [ ] Includes DB Migration (follow approval process in SIP-59)
    • [ ] 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

ERGO1995 avatar Feb 28 '25 14:02 ERGO1995