├── .gitignore ├── package.json ├── LICENCE ├── README.md └── src └── vue-schart.vue /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log 5 | yarn-error.log 6 | .npmignore -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-schart", 3 | "description": "Vue.js wrapper for sChart.js", 4 | "version": "0.1.4", 5 | "author": "lin-xin <2981207131@qq.com>", 6 | "main": "src/vue-schart.vue", 7 | "scripts": { 8 | }, 9 | "dependencies": { 10 | "schart.js": "^1.0.2" 11 | }, 12 | "devDependencies": { 13 | "babel-core": "^6.0.0", 14 | "babel-loader": "^6.0.0", 15 | "babel-preset-latest": "^6.0.0", 16 | "cross-env": "^3.0.0", 17 | "css-loader": "^0.25.0", 18 | "file-loader": "^0.9.0", 19 | "vue-loader": "^12.1.0", 20 | "vue-template-compiler": "^2.3.3", 21 | "webpack": "^2.6.1", 22 | "webpack-dev-server": "^2.4.5" 23 | }, 24 | "repository": { 25 | "type": "git", 26 | "url": "git+https://github.com/lin-xin/vue-schart.git" 27 | }, 28 | "keywords": [ 29 | "schart.js", 30 | "charts", 31 | "vue-schart", 32 | "图表", 33 | "vue.js插件" 34 | ], 35 | "license": "MIT", 36 | "bugs": { 37 | "url": "https://github.com/lin-xin/vue-schart/issues" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 林鑫 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # vue-schart 3 | 4 | > :bar_chart: Vue.js wrapper for sChart.js 5 | 6 |
12 | 13 | Support vue.js 1.x & 2.x 14 | 15 | [interactive demo](http://blog.gdfengshuo.com/example/#/vue-schart) 16 | 17 | ## Usage 18 | Install: 19 | 20 | ``` 21 | npm install vue-schart -S 22 | ``` 23 | 24 | Use in component: 25 | 26 | ```javascript 27 | 28 |