π Release new version 2.5.0
β Potential Breaking Changes β
- #56 Seperate horizontal bar from bar chart component
If you're using horizontal barcharts:
The horizontalBar got seperated into a own component.
The problem was, that if you're using the reactiveMixin the type gets overwritten.
As the mixin calls renderChart()
if new datasets arrive. But there is no way to add the type
.
The BarChart had a unuqie render parameter renderChart({data}, {options}, type)
.
Before
import {Bar} from 'vue-chartjs'
export default Bar.extend({
props: ['data', 'options'],
mounted () {
this.renderChart(this.data, this.options, 'horizontalBar')
}
})
Now
import {HorizontalBar} from 'vue-chartjs'
export default HorizontalBar.extend({
props: ['data', 'options'],
mounted () {
this.renderChart(this.data, this.options)
}
})