Releases: apertureless/vue-chartjs
💎 Release new version 2.8.0
Features
Because of #158 now dynamic styles are added. In addition to this, you can also pass a class name for the outer div.
The canvas element is wrapped into a div and if you set responsive: true
the canvas will ignore the width
and height
props and grow based on the div.
CSS Classes
You can now set css-classes
which is a string with classes that get applied to the out div.
<my-line-chart :chart-data="mydata" :options="myoptions" css-classes="chart-class-1 col-md-2" />
Dynamic Styles
You can now set responsive: true
and pass in an styles object which get applied as inline styles to the outer div. This way you can change the height and width of the outer container dynamically. It is best to use computed properties
for this.
⚠ You need to set position: relative
.
<template>
<div>
<line-chart :styles="myStyles"/>
<button @click="increase()">Increase height</button>
</div>
</template>
<script>
export default {
data () {
return {
height: 300
}
},
methods: {
increase () {
this.height += 10
}
},
computed: {
myStyles () {
return {
height: `${this.height}px`,
position: 'relative'
}
}
}
}
</script>
💎 Release new version 1.2.0
This is a vue 1 release!
Updated
- Chart.js to 2.6.0
Added
- Scatter Chart
Fixed
- Get error when $destroy is started #149
💎 Release new version 2.7.2
Update
peerDependency
[email protected]
💎 Release new version 2.7.1
Fixed
- Fixed missing export of new scatter chart
💎 Release new version 2.7.0
🔥 New Features
Scatter Chart #129
The scatter chart is not really new, as it is only a derivation of the the line chart. However now it is available as a own chart type.
import {Scatter} from `vue-chartjs`
export default Scatter.extend({
...
})
⚠ Please keep in mind, that the scatter chart is not working with the reactiveProp and data mixins, as the data structure is different then in the other charts.
Add support for inline plugins #137 (kurbar)
We exposed now a method to add inline plugin to your chart instance.
mounted () {
this.addPlugin({id: 'my-plugin', ....})
}
📚 Tutorials
You can find now some tutorials and other resources in the docs, on how to use vue-chartjs
and build cool application with it. 👉 docs
Change Log
v2.7.0 (2017-07-04)
Closed issues:
- Reactive Data Tutorial #132
- Using inline plugins #130
- Scatter Chart #129
- Generating Chart after clicking submit button #128
- Ticks not working with reactive props #127
- Error in callback for watcher "chartData": "TypeError: Cannot read property 'data' of undefined" #126
- Passing the data from vue to chartjs #125
- Combination of Bar and Line Chart #123
- Reactive data example not working #122
- vue-chartjs height was 0 when i set v-show #120
- Bar chart, barPercentage in X axis #119
- update event not firing on data change #118
Merged pull requests:
- ✅ Update tests for addPlugin method #140 (apertureless)
- Fix beforeDestory when renderChart was not called #139 (ZhangYiJiang)
- Add support for inline plugins #137 (kurbar)
- Feature/scatter chart #136 (apertureless)
- 🐛 Fix #122 reactive mixin #135 (apertureless)
- 📝 Add resources & tutorials to docs #133 (apertureless)
- fix a typo in an example #131 (JobV)
- Update README #121 (stoykostanchev)
💎 Release new version 2.6.5
Updated peerDependencies
💎 Release new version 2.6.4
v2.6.4 (2017-06-04)
Closed issues:
- Transition leave-active-class not working #117
- chartOptions reactivity #116
- Cannot switch off legend #114
- run error on my mac pro #113
- Update install instructions in docs #112
- Typo in docs #111
- Charts are given a fixed width, even when they are set to be responsive #108
- Use Reactive Data with <script> version of vue-chartjs #107
Merged pull requests:
💎 Release new version 2.6.3
Updated
- vue to 2.3.3
💎 Release new version 2.6.2
Update 🔧 Dependencies
- devDependencies (babel, eslint ... )
- peerDependencies Vue.js
💎 Release new version 2.6.1
🔥 Removed / Cleanup
- Deprecated
type
param inrenderChart()
method in Bar chart.