Skip to content

Commit bdf53a7

Browse files
updates for plotly 1.42.0
1 parent f4b7b99 commit bdf53a7

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"fast-isnumeric": "^1.1.1",
1616
"immutability-helper": "^2.7.1",
1717
"plotly-icons": "1.2.2",
18-
"plotly.js": "1.41.3",
18+
"plotly.js": "1.42.0",
1919
"prop-types": "^15.5.10",
2020
"raf": "^3.4.0",
2121
"react-color": "^2.13.8",

src/components/fields/derived.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,6 @@ export const ContourNumeric = connectToContainer(UnconnectedNumeric, {
118118
},
119119
});
120120

121-
export const BinningNumeric = connectToContainer(UnconnectedNumeric, {
122-
modifyPlotProps: (props, context, plotProps) => {
123-
const {fullContainer} = plotProps;
124-
if (plotProps.isVisible && fullContainer && fullContainer[`autobin${props.axis}`]) {
125-
plotProps.isVisible = false;
126-
}
127-
},
128-
});
129-
130121
export const BinningDropdown = connectToContainer(UnconnectedDropdown, {
131122
modifyPlotProps: (props, context, plotProps) => {
132123
const {localize: _} = context;

src/default_panels/StyleTracesPanel.js

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
GroupCreator,
3434
} from '../components';
3535
import {
36-
BinningNumeric,
3736
BinningDropdown,
3837
NumericReciprocal,
3938
ShowInLegend,
@@ -176,23 +175,14 @@ const StyleTracesPanel = (props, {localize: _}) => (
176175
/>
177176
</PlotlySection>
178177
<PlotlySection name={_('Binning')}>
179-
<Radio
180-
label={_('X Binning')}
181-
attr="autobinx"
182-
options={[{label: _('Auto'), value: true}, {label: _('Custom'), value: false}]}
183-
/>
184-
<BinningNumeric label={_('X Bin Start')} attr="xbins.start" axis="x" />
185-
<BinningNumeric label={_('X Bin End')} attr="xbins.end" axis="x" />
186-
<BinningNumeric label={_('X Bin Size')} attr="xbins.size" axis="x" />
178+
<Numeric label={_('X Bin Start')} attr="xbins.start" axis="x" />
179+
<Numeric label={_('X Bin End')} attr="xbins.end" axis="x" />
180+
<Numeric label={_('X Bin Size')} attr="xbins.size" axis="x" />
187181
<Numeric label={_('Max X Bins')} attr="nbinsx" />
188-
<Radio
189-
label={_('Y Binning')}
190-
attr="autobiny"
191-
options={[{label: _('Auto'), value: true}, {label: _('Custom'), value: false}]}
192-
/>
193-
<BinningNumeric label={_('Y Bin Start')} attr="ybins.start" axis="y" />
194-
<BinningNumeric label={_('Y Bin End')} attr="ybins.end" axis="y" />
195-
<BinningNumeric label={_('Y Bin Size')} attr="ybins.size" axis="y" />
182+
183+
<Numeric label={_('Y Bin Start')} attr="ybins.start" axis="y" />
184+
<Numeric label={_('Y Bin End')} attr="ybins.end" axis="y" />
185+
<Numeric label={_('Y Bin Size')} attr="ybins.size" axis="y" />
196186
<Numeric label={_('Max Y Bins')} attr="nbinsy" />
197187
</PlotlySection>
198188
<PlotlySection label={_('Bar Position')}>

0 commit comments

Comments
 (0)