G2
G2 copied to clipboard
Uncaught TypeError: chart.interaction is not a function
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
i just run the index.html, but it has no graph. the console of chrome show: Uncaught TypeError: chartYear.interaction is not a function
What is expected?
show as this: https://f2.antv.vision/zh/examples/line/basic#pan-smooth
What is actually happening?
no graph
| Environment | Info |
|---|---|
| g2 | 3.4.2 |
| System | android;windows |
| Browser | android system webview 80;chrome 79 |
i run it in h5 way, so i did not use import, i use in html
<script src="https://gw.alipayobjects.com/os/antv/assets/f2/3.4.2/f2.js"></script> did not offer chart ineractions for package size consideration. You should use <script src="https://unpkg.com/@antv/[email protected]/dist/f2-all.min.js"></script>.
By the way, it is recommended to submit this issue to the F2 repo: https://github.com/antvis/f2.