mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 18:00:20 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c24dc84e2f | ||
|
|
d3f7058685 | ||
|
|
6bdda62c62 | ||
|
|
491b2514cd | ||
|
|
819b96b06a | ||
|
|
ada0fab17c | ||
|
|
1a22bae5ba | ||
|
|
d849706b9a | ||
|
|
ad0e0de561 | ||
|
|
3da3fccc11 | ||
|
|
562539a3a5 | ||
|
|
6d8513ff75 | ||
|
|
412f1f7b81 | ||
|
|
1c76fdeff9 | ||
|
|
e8379c71ec |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -2,12 +2,31 @@
|
||||
|
||||
## [Unreleased](https://github.com/apertureless/vue-chartjs/tree/HEAD)
|
||||
|
||||
[Full Changelog](https://github.com/apertureless/vue-chartjs/compare/v2.3.6...HEAD)
|
||||
[Full Changelog](https://github.com/apertureless/vue-chartjs/compare/v2.3.8...HEAD)
|
||||
|
||||
**Closed issues:**
|
||||
|
||||
- Add src folder to package.json "files" and make main "src/index.js" [\#49](https://github.com/apertureless/vue-chartjs/issues/49)
|
||||
- Unable to refresh [\#41](https://github.com/apertureless/vue-chartjs/issues/41)
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- 🐛 Fix \#49 [\#50](https://github.com/apertureless/vue-chartjs/pull/50) ([apertureless](https://github.com/apertureless))
|
||||
|
||||
## [v2.3.8](https://github.com/apertureless/vue-chartjs/tree/v2.3.8) (2017-03-01)
|
||||
[Full Changelog](https://github.com/apertureless/vue-chartjs/compare/v2.3.6...v2.3.8)
|
||||
|
||||
**Closed issues:**
|
||||
|
||||
- Mixins don't seem to trigger a refresh of the chart [\#44](https://github.com/apertureless/vue-chartjs/issues/44)
|
||||
- Colors of dynamically added bars in bar graph are the default color instead of specified color [\#42](https://github.com/apertureless/vue-chartjs/issues/42)
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Feature/documentation [\#47](https://github.com/apertureless/vue-chartjs/pull/47) ([apertureless](https://github.com/apertureless))
|
||||
- ⬆️ Update dependencies [\#46](https://github.com/apertureless/vue-chartjs/pull/46) ([apertureless](https://github.com/apertureless))
|
||||
- 📝 Update github issue template [\#45](https://github.com/apertureless/vue-chartjs/pull/45) ([apertureless](https://github.com/apertureless))
|
||||
|
||||
## [v2.3.6](https://github.com/apertureless/vue-chartjs/tree/v2.3.6) (2017-02-22)
|
||||
[Full Changelog](https://github.com/apertureless/vue-chartjs/compare/v2.3.5...v2.3.6)
|
||||
|
||||
|
||||
23
README.md
23
README.md
@@ -176,6 +176,29 @@ export default Line.extend({
|
||||
})
|
||||
```
|
||||
|
||||
## Webpack & Bundling tools
|
||||
There are now two version the main entry point is `src/index.js` which is the ES6 source, unbundled.
|
||||
If you're using webpack it is recommended to use this one. Because the bundled umd version has vue.js and chart.js bundled into it.
|
||||
|
||||
However if you have problems o you can import the dist file
|
||||
|
||||
```
|
||||
import VueCharts from 'vue-chartjs/dist/vue-chartjs'
|
||||
// or
|
||||
import { Line } from 'vue-chartjs/dist/vue-chartjs'
|
||||
```
|
||||
|
||||
Or you can set an alias.
|
||||
|
||||
### Browserify
|
||||
|
||||
In order for a browserify user to transpile the code, they would need to install `babelify` and `babel-preset-es2015` and add a .babelrc file in the root of their project with the following code:
|
||||
|
||||
```
|
||||
{
|
||||
"presets": ["es2015"]
|
||||
}
|
||||
```
|
||||
## Available Charts
|
||||
|
||||
### Bar Chart
|
||||
|
||||
@@ -278,3 +278,27 @@ Sometimes you need more control over chart.js. Thats why you can access the char
|
||||
### Bubble
|
||||
|
||||

|
||||
|
||||
## Webpack & Bundling tools
|
||||
There are now two version the main entry point is `src/index.js` which is the ES6 source, unbundled.
|
||||
If you're using webpack it is recommended to use this one. Because the bundled umd version has vue.js and chart.js bundled into it.
|
||||
|
||||
However if you have problems o you can import the dist file
|
||||
|
||||
```
|
||||
import VueCharts from 'vue-chartjs/dist/vue-chartjs'
|
||||
// or
|
||||
import { Line } from 'vue-chartjs/dist/vue-chartjs'
|
||||
```
|
||||
|
||||
Or you can set an alias.
|
||||
|
||||
### Browserify
|
||||
|
||||
In order for a browserify user to transpile the code, they would need to install `babelify` and `babel-preset-es2015` and add a .babelrc file in the root of their project with the following code:
|
||||
|
||||
```
|
||||
{
|
||||
"presets": ["es2015"]
|
||||
}
|
||||
```
|
||||
|
||||
45
package.json
45
package.json
@@ -1,12 +1,34 @@
|
||||
{
|
||||
"name": "vue-chartjs",
|
||||
"version": "2.3.8",
|
||||
"version": "2.4.0",
|
||||
"description": "vue.js wrapper for chart.js",
|
||||
"author": "Jakub Juszczak <jakub@nextindex.de>",
|
||||
"author": "Jakub Juszczak <jakub@posteo.de>",
|
||||
"homepage": "http://vue-chartjs.org",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Thorsten Lünborg",
|
||||
"web": "https://github.com/LinusBorg"
|
||||
},
|
||||
{
|
||||
"name": "Juan Carlos Alonso",
|
||||
"web": "https://github.com/jcalonso"
|
||||
}
|
||||
],
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "Jakub Juszczak",
|
||||
"email": "jakub@posteo.de",
|
||||
"web": "http://www.jakubjuszczak.de"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com:apertureless/vue-chartjs.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/apertureless/vue-chartjs/issues"
|
||||
},
|
||||
"keywords": [
|
||||
"ChartJs",
|
||||
"Vue",
|
||||
@@ -14,8 +36,10 @@
|
||||
"Wrapper",
|
||||
"Charts"
|
||||
],
|
||||
"main": "dist/vue-chartjs.js",
|
||||
"main": "src/index.js",
|
||||
"unpkg": "dist/vue-chartjs.js",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
@@ -28,11 +52,11 @@
|
||||
"release": "webpack --progress --hide-modules --config ./build/webpack.release.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"chart.js": "^2.5.0",
|
||||
"vue": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"babel-core": "^6.23.1",
|
||||
"babel-loader": "^6.3.2",
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
@@ -90,5 +114,18 @@
|
||||
"webpack-dev-middleware": "^1.4.0",
|
||||
"webpack-hot-middleware": "^2.6.0",
|
||||
"webpack-merge": "^1.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"es2015"
|
||||
]
|
||||
},
|
||||
"browserify": {
|
||||
"transform": [
|
||||
"babelify"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user