0

Is there a way to show a customized tool-tip for each legend item when you scroll over them. I need to display custom descriptions for each legend to describe the item however, adding it directly to the legend would make the title too long and the points tool-tip as well. So Instead the best approach would be to add a tool-tip to the legend that would display the description of the legend item. I can't seem to find anything in the documentation and most of the solutions I encounter don't seem to be fit for this case or Angular.

Haq.H
  • 863
  • 7
  • 20
  • 47
  • 1
    Check answer [here](https://stackoverflow.com/a/37618597/4868839) – User3250 Nov 22 '18 at 03:37
  • He's using JQuery to set the tooltip. I don't quite know how to achieve that in angular. I tried using getElementsByClassName to work over the HTMLCollection but that didn't work either. Apply matToolTip to the Span directly doesn't do anything either. – Haq.H Nov 23 '18 at 16:32
  • U don't wanna use jquery? Then u need to create a JavaScript func to achieve the same. Mattooltip sadly won't work, I've tried before.. – User3250 Nov 23 '18 at 17:55
  • I see thank you, I'll find an alternative – Haq.H Nov 23 '18 at 20:34

0 Answers0