kgabryje opened a new pull request #15651:
URL: https://github.com/apache/superset/pull/15651


   ### SUMMARY
   This PR implements conditional formatting component, which is going to be 
added to Pivot Table v2 and Table charts.
   Features:
   - 10 comparator functions (=, !=, <, >, <=, >=, < x <, <= x <, < x <=, <= x 
<=)
   - 3 color schemes (green, yellow and red). Alpha channel is calculated 
dynamically based on a field's value compared to extreme values in data array 
used to construct the chart
   - can add multiple formatters to a single column (e.g. "if count < 10 then 
red" and "if count > 20 then green")
   - values validation for "between" comparators - left value must be smaller 
than the regiht value
   - Column, Colour scheme and Operator have preselected default values when 
creating a new formatter (default is the first available option)
   
   This PR does NOT add conditional formatting to any chart - it's a 
prerequisite for follow up PRs to superset-ui repo, which will add conditional 
formatting to Table and Pivot Table v2 charts.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
https://user-images.githubusercontent.com/15073128/125405423-03aba400-e3b8-11eb-8a6a-4d292b8f28e8.mov
   
   ### TESTING INSTRUCTIONS
   Testing instructions to be added to follow up PRs in superset-ui
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] 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
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   CC: @junlincc @rusackas @michael-s-molina 


-- 
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