Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

barchart 如何横向显示条形图 #37

Closed
beibeijerry opened this issue Feb 15, 2017 · 1 comment
Closed

barchart 如何横向显示条形图 #37

beibeijerry opened this issue Feb 15, 2017 · 1 comment

Comments

@beibeijerry
Copy link

Expected Behavior

Actual Behavior

Environment

  • OS: Write here
  • NPM Version: Write here
@apertureless
Copy link
Owner

apertureless commented Feb 15, 2017

// MonthlyIncome.js
import { Bar} from 'vue-chartjs'

export default Bar.extend({
  props: ["data", "options"],
  mounted () {
    this.renderChart(this.data, this.options, 'horizontalBar')
  }
})

You can pass the renderChart function of the bar chart a third parameter. Its the type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants