mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 18:00:20 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8138969058 | ||
|
|
e128ee27c7 | ||
|
|
ad7cabe809 | ||
|
|
d1bd9ef5ee | ||
|
|
90d9d87523 | ||
|
|
998b190007 | ||
|
|
44eb15a89a | ||
|
|
4c84718f7c |
15
CHANGELOG.md
Normal file
15
CHANGELOG.md
Normal 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)*
|
||||
@@ -1,5 +1,7 @@
|
||||
# Vue-ChartJs
|
||||
|
||||
[] (https://badge.fury.io/js/vue-chartjs) 
|
||||
|
||||
> VueJS wrapper for ChartJs
|
||||
|
||||
## Install
|
||||
|
||||
6
dist/vue-chartjs.js
vendored
6
dist/vue-chartjs.js
vendored
File diff suppressed because one or more lines are too long
2
dist/vue-chartjs.js.map
vendored
2
dist/vue-chartjs.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -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": {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user