Skip to content

Commit e77bf67

Browse files
1.36.0 bump and fin trace cleanup (#452)
1 parent 126422b commit e77bf67

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
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.6.4",
1717
"plotly-icons": "latest",
18-
"plotly.js": "^1.35.0",
18+
"plotly.js": "^1.36.1",
1919
"prop-types": "^15.5.10",
2020
"raf": "^3.4.0",
2121
"react-color": "^2.13.8",

src/components/containers/TraceAccordion.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,17 @@ class TraceAccordion extends Component {
5555
return allTraces;
5656
}, {});
5757

58-
const groupedTraces = Object.keys(tracesByGroup)
59-
.filter(traceType => !['ohlc', 'candlestick'].includes(traceType))
60-
.map((traceType, index) => {
61-
return (
62-
<TraceFold
63-
key={index}
64-
traceIndexes={tracesByGroup[traceType]}
65-
name={traceType}
66-
>
67-
{this.props.children}
68-
</TraceFold>
69-
);
70-
});
58+
const groupedTraces = Object.keys(tracesByGroup).map((traceType, index) => {
59+
return (
60+
<TraceFold
61+
key={index}
62+
traceIndexes={tracesByGroup[traceType]}
63+
name={traceType}
64+
>
65+
{this.props.children}
66+
</TraceFold>
67+
);
68+
});
7169

7270
if (canGroup && data.length > 1 && groupedTraces.length > 0) {
7371
return (

src/lib/connectTraceToPlot.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ export default function connectTraceToPlot(WrappedComponent) {
6868
if (trace && fullTrace) {
6969
this.icon = renderTraceIcon(plotlyTraceToCustomTrace(trace));
7070
this.name = fullTrace.name;
71-
const DEFAULT_FIN_CHART_TRACE_NAME = ' - increasing';
72-
if (
73-
fullTrace.name &&
74-
fullTrace.name.indexOf(DEFAULT_FIN_CHART_TRACE_NAME) &&
75-
!trace.name
76-
) {
77-
this.name = fullTrace.name.replace(DEFAULT_FIN_CHART_TRACE_NAME, '');
78-
}
7971
}
8072
}
8173

0 commit comments

Comments
 (0)