Chart-for-Apache-Weex
Chart-for-Apache-Weex copied to clipboard
Chart for Apache Weex is a third party plugin, and is not developed nor maintained by Apache Weex.
饼图
weex-chart之前已经集成了,但是采用g2的语法写不出完整饼图,代码: ``` import {api, toast, util, app, dialog, user} from '../util/module.js'; let GM = require('../components/chart')('g2'); const globalEvent = weex.requireModule('globalEvent'); const navigator = weex.requireModule('navigator'); export default { components: { common_title: require('../components/common_title.vue'),...
This package of weex is not support anymore! Please choose other package.
我使用`weex create xxx`创建的项目,在使用`weex plugin add weex-chart`安装插件时,提示以下信息,请问该如何手动添加这个插件 ``` emptywalker$ weex plugin add weex-chart Installing "[email protected]" for ios Failed to install 'weex-chart':Error at new Api (/Users/emptywalker/.xtoolkit/node_modules/weexpack/lib/src/platforms/ios_pack/Api.js:85:15) at Object.getPlatformApi (/Users/emptywalker/.xtoolkit/node_modules/weexpack/lib/src/platforms/platforms.js:76:23) at handleInstall (/Users/emptywalker/.xtoolkit/node_modules/weexpack/lib/src/plugman/install.js:614:27)...
weex-chart插件安装之后node_modules消失原因: 经反复测试发现: weexpack plugin add weex-chart 刚执行完成,node_modules中本来是有weex-chart目录的。 但是很遗憾,当作任何npm操作,如: weexpack run android npm install 等等。。。。 node_modules下的weex-chart目录将立刻被删除 经查日志发现,原因如下: weex-chart目录下package.json中name为 **"name": "weex-plugin-weex-chart"** **weex-plugin-weex-chart**与目录名**weex-chart**不一致 根据NPM标准,两者不一致为无效包,所以NPM自己清理掉weex-chart 之后所有的连锁反应都来自此,望早日修复,谢谢 目前我的解决方法是,手动从plugins中拷贝到node_modules,然后package.json的name改为**weex-chart**, 可用
weex-toolkit v1.1.0-beta.7下 执行命令: weexpack platform add android 发现生成的platforms\android\下没有weexplugin目录 直接导致weekpack plugin add weex-chart失败 =========================== Failed to install 'weex-chart':Error: ENOENT: no such file or directory, open 'E:\weex\drgs\platforms\android\weexplugin\build.gradle' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync...
Demo无法运行
Demo无法运行 在执行到第5步骤的时候,报错 我把plugins/weex-chart/examples 拷贝到src下,然后run ios,错误如下 ``` ERROR in ./~/.0.3.4@weex-loader/lib/script.js!./~/.6.3.2@babel-loader/lib?presets[]=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-preset-es2015&presets=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-preset-es2015&plugins[]=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-plugin-transform-runtime&plugins=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-plugin-transform-runtime&comments=false!./~/.0.3.4@weex-loader/lib/extract.js?index=0&type=scripts!./src/demo.we Module not found: Error: Cannot resolve module 'weex-chart' in /Users/zhoufan/Documents/project/g2Demo/src @ ./~/.0.3.4@weex-loader/lib/script.js!./~/.6.3.2@babel-loader/lib?presets[]=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-preset-es2015&presets=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-preset-es2015&plugins[]=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-plugin-transform-runtime&plugins=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-plugin-transform-runtime&comments=false!./~/.0.3.4@weex-loader/lib/extract.js?index=0&type=scripts!./src/demo.we 3:9-30 ERROR in ./~/.0.3.4@weex-loader/lib/script.js!./~/.6.3.2@babel-loader/lib?presets[]=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-preset-es2015&presets=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-preset-es2015&plugins[]=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-plugin-transform-runtime&plugins=/Users/zhoufan/Documents/project/g2Demo/~/.0.3.4@weex-loader/~/babel-plugin-transform-runtime&comments=false!./~/.0.3.4@weex-loader/lib/extract.js?index=0&type=scripts!./src/demo2.we Module not found: Error: Cannot...
急~~~ 在线等
我用weex2按照官网market说的步骤报错
TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
I run `weex plugin add weex-gcanvas`and modified it because of version conflict [issue](https://github.com/weex-plugins/weex-plugin-gcanvas/issues/37) . 1. I globally registered `gcanvas` in my `entry.js`, otherwise , it's reminded that it's not registered....
在一个we用使用多个chart无法正常显示