Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Combine tooltip descriptions (2.0-Beta)

Open Samuel1989 opened this issue 11 years ago • 8 comments

Morning,

Previously the tooltips were all combined into one mouse over (e.g. I could hover over a single line on the chart and it would display all of the lines values in a mouse over), it now seems this has been changed to show a single lines mouse over by default.

Is there an option to turn multi line tooltips back on?

Also do you guys use IRC or a mailing group? Or is Github issues the best place to ask questions?

Thank you, Sam

Samuel1989 avatar Nov 26 '15 11:11 Samuel1989

I actually managed to figure this out by looking at the source. I used the following option if anyone else is interested.

var options = {
  tooltips = {
    mode = 'label'
  }
}

Samuel1989 avatar Nov 26 '15 11:11 Samuel1989

Although the above gives me a combined overlay... The naming convention for each of the lines appears to be wrong...

e.g. with two lines called A and B with values of 100 and 200, I am seeing the following:

A: 100
A: 200

Any thoughts?

Samuel1989 avatar Nov 26 '15 11:11 Samuel1989

@Samuel1989 which version are you using? Beta0?

etimberg avatar Nov 26 '15 13:11 etimberg

@etimberg I believe so yes, 2.0.0-Beta (although in the Chart.js file it says 2.0.0-alpha, but I downloaded it from the 2.0.0-Beta Release).

Sam

Samuel1989 avatar Nov 26 '15 14:11 Samuel1989

@Samuel1989 sorry for the slow reply. I think this has already been fixed. Could you try the latest built file in the v2.0-dev branch?

etimberg avatar Nov 30 '15 02:11 etimberg

@etimberg No worries, I will give the latest version a go.

Thanks for the reply.

Sam

Samuel1989 avatar Nov 30 '15 09:11 Samuel1989

Just to confirm this has been fixed in the latest development branch.

Thanks again.

Samuel1989 avatar Nov 30 '15 10:11 Samuel1989

Awesome, great to hear!

etimberg avatar Nov 30 '15 15:11 etimberg