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

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   Add a JSON-based customization block that allows to override 
linearColorScheme colors and thresholds with custom thresholds and colors.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <img width="402" height="238" alt="image" 
src="https://github.com/user-attachments/assets/515a5874-0283-4dad-a35d-9adce4b39400";
 />
   
   ### TESTING INSTRUCTIONS
   - Paste a sample customization in "Custom Color Scale": the linearScheme is 
overrided, resulting in the customized Color Scheme to apply.
   `[
     { "percent": 0, "color": "white" },
     { "percent": 0.01, "color": "#FF0000AA" },
     { "percent": 20, "color": "#FA0" },
     { "percent": 50, "color": "#FF0" },
     { "percent": 65, "color": "#9F0" },
     { "percent": 99.99, "color": "#000A" },
     { "percent": 100, "color": "" }
   ]
   `
   The inline help provides a sample configuration that can also be 
copied/pasted (with some cleaning and lines returns).
   
    - Edit sample values to adjust to the map needs: the changes appear 
immediately on map 
        - update thresholds with values in percentage; decimal values allowed 
(eg. 0.001): the color will be applied from that lower limit up to the next one
        - adjust colors, using any valid CSS color, including named colors 
(red, green, etc.), rgb and hex codes, with or without transparency. A color 
selector helps visually choosing the color value
        - add or remove thresholds to fit your needs
    - The provided configuration requires a full valid JSON, including 
brackets, commas except for the last line, quoted keys and quoted values for 
color codes. 
   
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: 
https://github.com/apache/superset/discussions/34427
   - [ ] Required feature flags:
   - [X] Changes UI: add a new control
   - [ ] 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
   - [ ] 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