From 2a2f395e941b61a2e3d9e973689caeed81a3a6ef Mon Sep 17 00:00:00 2001 From: Ali Bahjati Date: Wed, 29 May 2019 04:37:40 +0430 Subject: [PATCH] Add "Auto" option to Mapbox visualization point radius (#7579) * Add Auto option to point radius to make it work as expected since the example using this didn't work because of this (and also as the tooltip says the auto option should be available) * Remove trailing space --- superset/assets/src/explore/controls.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/assets/src/explore/controls.jsx b/superset/assets/src/explore/controls.jsx index 3c239abefb5..feba2652562 100644 --- a/superset/assets/src/explore/controls.jsx +++ b/superset/assets/src/explore/controls.jsx @@ -1849,7 +1849,7 @@ export const controls = { 'Either a numerical column or `Auto`, which scales the point based ' + 'on the largest cluster'), mapStateToProps: state => ({ - choices: columnChoices(state.datasource), + choices: formatSelectOptions(['Auto']).concat(columnChoices(state.datasource)), }), },