From d202202b91443711dd8bcf5ac1feebaebe68ba29 Mon Sep 17 00:00:00 2001 From: dmt0 Date: Mon, 27 Aug 2018 18:57:10 -0400 Subject: [PATCH] mapbox layout + fixes --- src/components/fields/LocationSelector.js | 7 +++++-- src/components/fields/derived.js | 2 +- src/default_panels/GraphSubplotsPanel.js | 23 +++++++++++++++++++++++ src/default_panels/StyleTracesPanel.js | 4 ++++ 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/components/fields/LocationSelector.js b/src/components/fields/LocationSelector.js index aad9a2caf..c4fcbb8dd 100644 --- a/src/components/fields/LocationSelector.js +++ b/src/components/fields/LocationSelector.js @@ -91,7 +91,7 @@ class UnconnectedLocationSelector extends Component { container: {type: type}, } = this.context; - return type === 'scattergeo' || type === 'scattermapbox' ? ( + return type === 'scattergeo' ? ( ) : ( - '' + + + + ); } } diff --git a/src/components/fields/derived.js b/src/components/fields/derived.js index baeb5ae1e..9424f8ed3 100644 --- a/src/components/fields/derived.js +++ b/src/components/fields/derived.js @@ -532,7 +532,7 @@ export const HoverInfo = connectToContainer(UnconnectedFlaglist, { options = [{label: _('Longitude'), value: 'lon'}, {label: _('Latitude'), value: 'lat'}]; } } else if (container.type === 'scattermapbox') { - options = [{label: _('Longitude'), value: 'loc'}, {label: _('Latitude'), value: 'lat'}]; + options = [{label: _('Longitude'), value: 'lon'}, {label: _('Latitude'), value: 'lat'}]; } else if (container.type === 'scatterternary') { options = [ {label: _('A'), value: 'a'}, diff --git a/src/default_panels/GraphSubplotsPanel.js b/src/default_panels/GraphSubplotsPanel.js index 75263f951..6a6987a4c 100644 --- a/src/default_panels/GraphSubplotsPanel.js +++ b/src/default_panels/GraphSubplotsPanel.js @@ -59,6 +59,29 @@ const GraphSubplotsPanel = (props, {localize: _}) => ( + + + + + + + + + + + ( 'scatter3d', 'scattergl', 'scattergeo', + 'scattermapbox', + 'box', + 'violin', ]} > @@ -310,6 +313,7 @@ const StyleTracesPanel = (props, {localize: _}) => ( 'scatterternary', 'bar', 'scattergeo', + 'scattermapbox', ]} >