antvis/G2








The issue has been closed
chart.scale()里面的参数max为NaN的时候导致浏览器崩溃 #3413
Break-2020 posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://g2.antv.vision/zh/examples/bar/basic#basic
Steps to reproduce
chart.scale('population', { nice: true , max:NaN}); 只要max是NaN,就会引发崩溃,这种情况应该只让这个图表绘制不出报错什么的就可以了吧。
Environment | Info |
---|---|
g2 | 4.1.16 |
System | 90.0.4430.93(正式版本) (64 位) |
Browser | Chrome |
<!-- generated by antv-issue-helper. DO NOT REMOVE -->