RoBYCoNTe opened a new pull request, #22356: URL: https://github.com/apache/superset/pull/22356
### SUMMARY Country map seems to be not very clear when you have to see and check why specific color has been chosen for an area of the map. I think legend option is mandatory to improve readability of charts. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF Before was not possible to configure legend, now you can use specific parameters to obtain it: <img width="1360" alt="image" src="https://user-images.githubusercontent.com/2301162/206148326-194a838d-91a5-4a92-9a4e-c1bec0223098.png"> I've added few new config props: - **LEGEND**: allow to set position of the legend (_None, Top, TopLeft, TopRight, Bottom, BottomLeft, BottomRight_) - **ORIENTATION**: vertical or horizontal (like a color gradient) - **FONT SIZE**: used to render each step of the legend. ### TESTING INSTRUCTIONS <!--- Required! What steps can be taken to manually verify the changes? --> Run the application and create a new chart of type _Country Map_, you will see new parameters that can be used to customize visualization of the chart. ### 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]
