Compare commits

...

8 Commits
1.0.2 ... 1.0.3

Author SHA1 Message Date
Jakub Juszczak
8138969058 💎 Release new version 1.0.3
Signed-off-by: Jakub Juszczak <netghost03@gmail.com>
2016-08-20 12:18:48 +02:00
Jakub Juszczak
e128ee27c7 Add changelog
Signed-off-by: Jakub Juszczak <netghost03@gmail.com>
2016-08-19 23:57:04 +02:00
Jakub
ad7cabe809 Merge pull request #3 from LinusBorg/properly_destroy_chartsjs_objects
Properly destroy chartjs objects
2016-08-19 23:27:03 +02:00
Jakub Juszczak
d1bd9ef5ee Merge branch 'master' into develop
* master:
  Update README.md
2016-08-19 23:20:55 +02:00
Thorsten
90d9d87523 correct hook name. 2016-08-19 21:35:10 +02:00
Thorsten
998b190007 save chart instance on vm instance and add destroy() hooks to properly destroy chart when component is destroyed. 2016-08-19 21:30:39 +02:00
Jakub
44eb15a89a Update README.md
Add dependency badge
2016-08-01 20:04:03 +02:00
Jakub Juszczak
4c84718f7c Add npm badge
Signed-off-by: Jakub Juszczak <netghost03@gmail.com>
2016-07-27 22:07:55 +02:00
11 changed files with 52 additions and 17 deletions

15
CHANGELOG.md Normal file
View File

@@ -0,0 +1,15 @@
# Change Log
## [Unreleased](https://github.com/apertureless/vue-chartjs/tree/HEAD)
[Full Changelog](https://github.com/apertureless/vue-chartjs/compare/1.0.2...HEAD)
**Implemented enhancements:**
- Publish on NPM [\#2](https://github.com/apertureless/vue-chartjs/issues/2)
- Properly destroy chartjs objects [\#3](https://github.com/apertureless/vue-chartjs/pull/3) ([LinusBorg](https://github.com/LinusBorg))
## [1.0.2](https://github.com/apertureless/vue-chartjs/tree/1.0.2) (2016-07-27)
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

View File

@@ -1,5 +1,7 @@
# Vue-ChartJs
[![npm version](https://badge.fury.io/js/vue-chartjs.svg)] (https://badge.fury.io/js/vue-chartjs) ![npm dependencies](https://david-dm.org/apertureless/vue-chartjs.svg)
> VueJS wrapper for ChartJs
## Install

6
dist/vue-chartjs.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "vue-chartjs",
"version": "1.0.2",
"version": "1.0.3",
"description": "Vue wrapper for chart.js",
"author": "Jakub Juszczak <jakub@nextindex.de>",
"repository": {

View File

@@ -45,14 +45,17 @@ export default Vue.extend({
methods: {
render (data, options = this.options) {
const chart = new Chart(
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
type: 'bar',
data: data,
options: options
}
)
chart.generateLegend()
this._chart.generateLegend()
}
},
beforeDestroy () {
this._chart.destroy()
}
})

View File

@@ -28,14 +28,17 @@ export default Vue.extend({
methods: {
render (data, options = this.options) {
const chart = new Chart(
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
type: 'doughnut',
data: data,
options: options
}
)
chart.generateLegend()
this._chart.generateLegend()
}
},
beforeDestroy () {
this._chart.destroy()
}
})

View File

@@ -43,14 +43,17 @@ export default Vue.extend({
methods: {
render (data, options = this.options) {
const chart = new Chart(
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
type: 'line',
data: data,
options: options
}
)
chart.generateLegend()
this._chart.generateLegend()
}
},
beforeDestroy () {
this._chart.destroy()
}
})

View File

@@ -28,14 +28,17 @@ export default Vue.extend({
methods: {
render (data, options = this.options) {
const chart = new Chart(
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
type: 'pie',
data: data,
options: options
}
)
chart.generateLegend()
this._chart.generateLegend()
}
},
beforeDestroy () {
this._chart.destroy()
}
})

View File

@@ -28,14 +28,17 @@ export default Vue.extend({
methods: {
render (data, options = this.options) {
const chart = new Chart(
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
type: 'polarArea',
data: data,
options: options
}
)
chart.generateLegend()
this._chart.generateLegend()
}
},
beforeDestroy () {
this._chart.destroy()
}
})

View File

@@ -28,14 +28,17 @@ export default Vue.extend({
methods: {
render (data, options = this.options) {
const chart = new Chart(
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
type: 'radar',
data: data,
options: options
}
)
chart.generateLegend()
this._chart.generateLegend()
}
},
beforeDestroy () {
this._chart.destroy()
}
})