separate HorizontalBar component added, to remove optional 'type' parameter at Bar, which was ignored inside reactive mixins

This commit is contained in:
Сергей Степанов
2017-03-07 14:14:46 +03:00
parent 1bb567e074
commit fcaa3dee91
6 changed files with 773 additions and 513 deletions

View File

@@ -65,7 +65,7 @@ export default Vue.extend({
let chartOptions = mergeOptions(this.defaultOptions, options)
this._chart = new Chart(
this.$refs.canvas.getContext('2d'), {
type: type || 'bar',
type: 'bar',
data: data,
options: chartOptions
}