diff --git a/package.json b/package.json index 78e05bfc0..16d97a56d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-chart-editor", "description": "plotly.js chart editor react component UI", - "version": "0.32.1", + "version": "0.33.0", "author": "Plotly, Inc.", "bugs": { "url": "https://github.com/plotly/react-chart-editor/issues" @@ -15,7 +15,7 @@ "fast-isnumeric": "^1.1.1", "immutability-helper": "^2.7.1", "plotly-icons": "1.2.2", - "plotly.js": "1.41.3", + "plotly.js": "1.42.0", "prop-types": "^15.5.10", "raf": "^3.4.0", "react-color": "^2.13.8", diff --git a/src/components/containers/TraceMarkerSection.js b/src/components/containers/TraceMarkerSection.js index 88d5de2cf..c817a8f4d 100644 --- a/src/components/containers/TraceMarkerSection.js +++ b/src/components/containers/TraceMarkerSection.js @@ -18,7 +18,7 @@ class TraceMarkerSection extends Component { if (['bar', 'histogram'].includes(traceType)) { this.name = _('Bars'); } else if (traceType === 'pie') { - this.name = _('Segments'); + this.name = _('Pie Segments'); } else { this.name = _('Points'); } diff --git a/src/components/fields/derived.js b/src/components/fields/derived.js index 6d0d63ead..fb6848e58 100644 --- a/src/components/fields/derived.js +++ b/src/components/fields/derived.js @@ -118,15 +118,6 @@ export const ContourNumeric = connectToContainer(UnconnectedNumeric, { }, }); -export const BinningNumeric = connectToContainer(UnconnectedNumeric, { - modifyPlotProps: (props, context, plotProps) => { - const {fullContainer} = plotProps; - if (plotProps.isVisible && fullContainer && fullContainer[`autobin${props.axis}`]) { - plotProps.isVisible = false; - } - }, -}); - export const BinningDropdown = connectToContainer(UnconnectedDropdown, { modifyPlotProps: (props, context, plotProps) => { const {localize: _} = context; diff --git a/src/default_panels/StyleLayoutPanel.js b/src/default_panels/StyleLayoutPanel.js index fcc71cb20..040816ceb 100644 --- a/src/default_panels/StyleLayoutPanel.js +++ b/src/default_panels/StyleLayoutPanel.js @@ -13,6 +13,7 @@ import { VisibilitySelect, HovermodeDropdown, Flaglist, + Radio, } from '../components'; import {HoverColor} from '../components/fields/derived'; @@ -46,6 +47,17 @@ const StyleLayoutPanel = (props, {localize: _}) => ( + + + + + + + ( /> + + + + + + ( /> - - - - + + + - - - - + + + + @@ -602,6 +610,11 @@ const StyleTracesPanel = (props, {localize: _}) => ( +