Skip to content

v3.8.0: Odd behavior for tooltip on horizontal bar with overlaying bars #10508

Answered by CFDev22
CFDev22 asked this question in Q&A
Discussion options

You must be logged in to vote

I fixed it. Didn't know what I was doing, but played around with it, and now it works as expected.

I added interaction to the options. Here's all the relevant code.

<div style="width: 540px; height: 150px">
	<canvas id="custSat" style="width: 540px; height: 150px; border: 1px solid gold;"></canvas>
</div>
var povCustSat = document.getElementById('custSat'),
povCS = new Chart(povCustSat,{
	type: 'bar',
	data: {
		labels: [''],
		datasets: [{
			label: 'Actual',
			data: [98.7],
			categoryPercentage: 0.3,
			backgroundColor: '#98b9d2',
			borderColor: '#5393b9',
			borderWidth: 1,
			order: 0, 
			grouped: false
		},{
			label: 'Goal',
			data: [95.0], 
			categoryPercentage: 0.5,
			back…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@CFDev22
Comment options

@kurkle
Comment options

@CFDev22
Comment options

@kurkle
Comment options

@Udemology
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by CFDev22
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants