Skip to content

Commit c30baa2

Browse files
committed
Trace type adjustment
1 parent 9dd3d90 commit c30baa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/getAllAxes.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export default function getAllAxes(fullLayout) {
4444
}
4545

4646
export function traceTypeToAxisType(traceType, subplot = false) {
47+
// plotly.js actually allows traces with no type and just
48+
// defaults them to scatter, so do this here as well.
49+
if (!traceType) {
50+
traceType = 'scatter'; // eslint-disable-line
51+
}
52+
4753
let category = null;
4854
const traceToAxis = TRACE_TO_AXIS;
4955
if (subplot) {

0 commit comments

Comments
 (0)