From bdf53a76752dab6187dfab9df5ac542a248cc396 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Tue, 30 Oct 2018 09:53:22 -0400 Subject: [PATCH 1/5] updates for plotly 1.42.0 --- package.json | 2 +- src/components/fields/derived.js | 9 --------- src/default_panels/StyleTracesPanel.js | 24 +++++++----------------- 3 files changed, 8 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 78e05bfc0..29cf48406 100644 --- a/package.json +++ b/package.json @@ -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/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/StyleTracesPanel.js b/src/default_panels/StyleTracesPanel.js index fa1784836..7a121ac03 100644 --- a/src/default_panels/StyleTracesPanel.js +++ b/src/default_panels/StyleTracesPanel.js @@ -33,7 +33,6 @@ import { GroupCreator, } from '../components'; import { - BinningNumeric, BinningDropdown, NumericReciprocal, ShowInLegend, @@ -176,23 +175,14 @@ const StyleTracesPanel = (props, {localize: _}) => ( /> - - - - + + + - - - - + + + + From 45314eec42d8e5c37cedcb44285e54bb16e06093 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Tue, 30 Oct 2018 10:26:20 -0400 Subject: [PATCH 2/5] pie titles --- .../containers/TraceMarkerSection.js | 2 +- src/default_panels/StyleTracesPanel.js | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) 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/default_panels/StyleTracesPanel.js b/src/default_panels/StyleTracesPanel.js index 7a121ac03..8291f73e9 100644 --- a/src/default_panels/StyleTracesPanel.js +++ b/src/default_panels/StyleTracesPanel.js @@ -84,6 +84,24 @@ const StyleTracesPanel = (props, {localize: _}) => ( /> + + + + + + Date: Tue, 30 Oct 2018 10:35:53 -0400 Subject: [PATCH 3/5] modebar controls --- src/default_panels/StyleLayoutPanel.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: _}) => ( + + + + + + + Date: Tue, 30 Oct 2018 10:42:41 -0400 Subject: [PATCH 4/5] split hoverlabels for financial traces --- src/default_panels/StyleTracesPanel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/default_panels/StyleTracesPanel.js b/src/default_panels/StyleTracesPanel.js index 8291f73e9..c42329f05 100644 --- a/src/default_panels/StyleTracesPanel.js +++ b/src/default_panels/StyleTracesPanel.js @@ -610,6 +610,11 @@ const StyleTracesPanel = (props, {localize: _}) => ( + Date: Tue, 30 Oct 2018 10:51:41 -0400 Subject: [PATCH 5/5] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29cf48406..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"