rusackas commented on code in PR #19881:
URL: https://github.com/apache/superset/pull/19881#discussion_r861368317
##########
superset-frontend/plugins/legacy-plugin-chart-world-map/src/controlPanel.ts:
##########
@@ -106,7 +107,25 @@ const config: ControlPanelConfig = {
},
],
['color_picker'],
+ [
+ {
+ name: 'color_by',
+ config: {
+ type: 'RadioButtonControl',
+ label: t('Color by'),
+ default: ColorBy.metric,
+ options: [
+ [ColorBy.metric, t('metric')],
+ [ColorBy.country, t('country')],
+ ],
+ description: t(
+ 'Whether to define a color by metric or country column',
Review Comment:
```suggestion
'Choose whether a country should be shaded by the metric, or
assigned a color based on a categorical color palette',
```
--
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]