ant-design / ant-design-charts

A React Chart Library
https://ant-design-charts.antgroup.com/
MIT License
1.93k stars 361 forks source link

Maximum call stack size exceeded #63

Closed yangchangshun closed 4 years ago

yangchangshun commented 4 years ago

🧐 使用Line时,数据量太大(5w条)导致:Maximum call stack size exceeded

报错如下 scale.js:64 Uncaught RangeError: Maximum call stack size exceeded at trySetScaleMinToZero (scale.js:64) at LineLayer.umi../node_modules/@antv/g2plot/esm/plots/line/layer.js.LineLayer.scale (layer.js:113) at LineLayer.umi../node_modules/@antv/g2plot/esm/base/view-layer.js.ViewLayer.init (view-layer.js:154) at LineLayer.umi../node_modules/@antv/g2plot/esm/base/layer.js.Layer.render (layer.js:61) at LineLayer.umi../node_modules/@antv/g2plot/esm/base/view-layer.js.ViewLayer.render (view-layer.js:210) at plot.js:191 at each (each.js:10) at Line.umi../node_modules/@antv/g2plot/esm/base/plot.js.BasePlot.eachLayer (plot.js:194) at Line.umi../node_modules/@antv/g2plot/esm/base/plot.js.BasePlot.render (plot.js:191) at useChart.js:14 at commitHookEffectList (react-dom.development.js:21997) at commitPassiveHookEffects (react-dom.development.js:22031) at HTMLUnknownElement.callCallback (react-dom.development.js:336) at Object.invokeGuardedCallbackDev (react-dom.development.js:385) at invokeGuardedCallback (react-dom.development.js:440) at flushPassiveEffectsImpl (react-dom.development.js:25350) at unstable_runWithPriority (scheduler.development.js:818) at runWithPriority$2 (react-dom.development.js:12130) at flushPassiveEffects (react-dom.development.js:25319) at react-dom.development.js:25198 at workLoop (scheduler.development.js:762) at flushWork (scheduler.development.js:717) at MessagePort.performWorkUntilDeadline (scheduler.development.js:219)

lxfu1 commented 4 years ago

更新到 1.0 版本, 参考: https://charts.ant.design/guide/faq