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

Bar chart, barPercentage in X axis #119

Closed
carlosarmentac opened this issue Jun 9, 2017 · 2 comments
Closed

Bar chart, barPercentage in X axis #119

carlosarmentac opened this issue Jun 9, 2017 · 2 comments

Comments

@carlosarmentac
Copy link

How can I modify the width of each bar (in a Bar Chart), I know in chartjs you can modify the barPercentage, but I cannot do it in vue-chartjs. Sorry if my question is stupid, I'am novice.

Environment

  • vue.js version: 2.1.10
  • vue-chart.js version: development
@apertureless
Copy link
Owner

Hello @xiclopex

well you actually do it the same way as in chart.js simply pass in the options.

// first argument is the data, second argument the options
this.renderChart(data, {
  scales: {
    xAxes: [ {    
       categoryPercentage: 0.9,
       barPercentage: 0.5
    }]
  }
})

@apertureless
Copy link
Owner

🔐 Closed due to inactivity.

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