Skip to content

πŸ’Ž Release new version 2.5.0

Compare
Choose a tag to compare
@apertureless apertureless released this 08 Mar 20:27
· 635 commits to main since this release

⚠ 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)
  }
})