Facyla commented on code in PR #36732:
URL: https://github.com/apache/superset/pull/36732#discussion_r2737171613


##########
superset-frontend/plugins/legacy-plugin-chart-country-map/src/controlPanel.ts:
##########
@@ -69,6 +69,48 @@ const config: ControlPanelConfig = {
           },
         ],
         ['linear_color_scheme'],
+        [
+          {
+            name: 'customColorScale',
+            config: {
+              type: 'TextAreaControl',
+              label: t('Custom Color Scale (by %)'),
+              description: t(
+                'Custom JSON configuration that overrides the linear color 
scheme color codes and thresholds.<br />Thresholds are defined in percentage, 
and color codes accept any valid CSS value.<br />Config must be a valid JSON 
excerpt.<br />Copy-paste and adapt following sample configuration to define 
your own thresholds and colors :<br />\n' +
+                  '[<br />\n' +
+                  '  { "percent": 0, "color": "white" },<br />\n' +
+                  '  { "percent": 0.01, "color": "#A00000" },<br />\n' +
+                  '  { "percent": 20, "color": "#E52B50" },<br />\n' +
+                  '  { "percent": 35, "color": "#FFA500" },<br />\n' +
+                  '  { "percent": 50, "color": "#FFFF99" },<br />\n' +
+                  '  { "percent": 65, "color": "#9ACD32" },<br />\n' +
+                  '  { "percent": 80, "color": "#3CB371" },<br />\n' +
+                  '  { "percent": 99.99, "color": "#228B22" },<br />\n' +
+                  '  { "percent": 100, "color": "black" }<br />\n' +
+                  ']',
+              ),

Review Comment:
   Fixed in later versions (after handling all pre-commit issues)



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