i am giving multiple line in tooltip of the chart widget but i am not getting it on new lne i have tried /n as well
You should be able to add line breaks with the <br>
html tag
it doesn’t work , i am using tooltip text in chart widget, which takes only string , it will treat html tags as string itself
I believe the tooltip sanitizes input text, so you can’t add formatting.
I think the “position” of the chart library used in the Slate chart widget is that tooltips should be very short to avoid obscuring the chart itself. My preferred pattern in the past, when faced with this interaction pattern, is to show a simple identifier on the tooltip itself and then use the hover properties emitted by the chart widget state to have a sidebar on the chart that displays more information about the hover target.
In general, I think I’d recommend reconsidering your interaction model here as to me at least, it’s a bit of an antipattern to try and put useful or necessary information under a hover interaction; think of how frustrating it is when using an app and trying to read or copy from a hover-triggered element, then nudging your mouse and loosing it, etc. So if you can switch to a mode where the user gets a hint on hover, but clicks to select a target and then gets a panel view with all the details, I find that much more robust.