feat(Chart): Add Column-Based Coloring Feature with Optional Header & Total Row
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
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