wupeiwen / vue-g2 Goto Github PK
View Code? Open in Web Editor NEW基于 Vue 和 AntV/G2 的可视化组件库 :chart_with_upwards_trend:
Home Page: https://wupeiwen.github.io/vue-g2
基于 Vue 和 AntV/G2 的可视化组件库 :chart_with_upwards_trend:
Home Page: https://wupeiwen.github.io/vue-g2
@plylrnsdy 同学提出了代码流程的优化建议。合并PR后,安装依赖的步骤有变更,望周知!
可以通过 npm 添加依赖
npm i @antv/g2 @antv/data-set vue-g2 --save
或者通过 yarn 添加依赖
yarn add @antv/g2 @antv/data-set vue-g2
请问如何动态加载数据?
直接修改绑定的data,好像不起作用。
强制使用drawChart方法,可以重新加载数据,但chart配置有所异常
如果再载入一次好像又正常了。
RT
全部引入太大了,至少占了6M
在nuxt.js中使用,vue-g2.common文档中,webpack_require 的getDefault函数会返回@antv/G2模块的default,但@antv/G2模块中没有default。返回undefined。最终页面报错TypeError: Cannot read property 'Chart' of undefined
如何调整图表宽高大小
RT
文档里有 :height="300" :width="600"
和 style="height: 300px; width: 300px; margin: 0 auto;"
两种调整图表大小的方式,但现在似乎都无法调整图表的大小
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.