Skip to content

Commit 75925f0

Browse files
authored
Merge pull request #14 from wahaha2012/feature-horizontal-bar
add horizontal bar parameter
2 parents 2df29e1 + ddb47ff commit 75925f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BaseCharts/Bar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ export default Vue.extend({
4949
},
5050

5151
methods: {
52-
renderChart (data, options) {
52+
renderChart (data, options, type) {
5353
let chartOptions = mergeOptions(this.defaultOptions, options)
5454

5555
this._chart = new Chart(
5656
this.$refs.canvas.getContext('2d'), {
57-
type: 'bar',
57+
type: type || 'bar',
5858
data: data,
5959
options: chartOptions
6060
}

0 commit comments

Comments
 (0)