Skip to content

Commit

Permalink
Merge pull request #14 from wahaha2012/feature-horizontal-bar
Browse files Browse the repository at this point in the history
add horizontal bar parameter
  • Loading branch information
apertureless authored Oct 23, 2016
2 parents 2df29e1 + ddb47ff commit 75925f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BaseCharts/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ export default Vue.extend({
},

methods: {
renderChart (data, options) {
renderChart (data, options, type) {
let chartOptions = mergeOptions(this.defaultOptions, options)

this._chart = new Chart(
this.$refs.canvas.getContext('2d'), {
type: 'bar',
type: type || 'bar',
data: data,
options: chartOptions
}
Expand Down

0 comments on commit 75925f0

Please sign in to comment.