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

Is it possible to create an callback on the onAnimationComplete option #240

Closed
Sireini opened this issue Nov 1, 2017 · 1 comment
Closed

Comments

@Sireini
Copy link

Sireini commented Nov 1, 2017

What I try to do is to create an callback on the onAnimationComplete option to set percentage in the bar chart. So how does that look:

options: {
	responsive: false,
	maintainAspectRatio: false,
	legend: { display: false },
	scaleShowVerticalLines: false,
	scales: {
		yAxes: [{
			display: false,
			    ticks: {
				display: false
			    }
		}],
		xAxes: [{
			barPercentage: .5
		}]
	},
	onAnimationComplete: function(){
		console.log('test');
	},
}

But this property is not getting picked up is there a simple way to create this callback or to simply show the percentage of the bar inside the bar like this: FIDDLE

I'll hope somebody could help me out on this.

Environment

  • vue.js version: "vue": "^2.1.10",
  • vue-chart.js version: "vue-chartjs": "^3.0.0",
  • npm version: 3.1010
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