Skip to content

Commit acd90b7

Browse files
committed
Fix area type recognition
1 parent 602c362 commit acd90b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/customTraceType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function plotlyTraceToCustomTrace(trace) {
1616

1717
if (
1818
(type === 'scatter' || type === 'scattergl') &&
19-
((trace.stackgroup !== null && trace.stackgroup !== undefined) || // eslint-disable-line no-undefined
19+
(![null, undefined, ''].includes(trace.stackgroup) || // eslint-disable-line no-undefined
2020
['tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext'].includes(trace.fill))
2121
) {
2222
return 'area';

0 commit comments

Comments
 (0)