We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942f557 commit 938c9b6Copy full SHA for 938c9b6
src/plots/line/layer.ts
@@ -166,7 +166,7 @@ export default class LineLayer<T extends LineLayerConfig = LineLayerConfig> exte
166
this.setConfig('scales', scales);
167
trySetScaleMinToZero(
168
scales[props.yField],
169
- map(props.data as any, (item) => item[props.yField])
+ map(props.data || [], (item) => item[props.yField])
170
);
171
super.scale();
172
}
0 commit comments