I need to trigger the Timeline chart tooltip on selection instead of hover. This doesn't seem to work.
I get my tooltips if I have this in the chart options: tooltip: { isHtml: true, trigger: 'focus' }
But if I change it to this: tooltip: { isHtml: true, trigger: 'selection' }, the tooltips don't show up when I click the timeline bars.
Is this supposed to be possible with the Timeline chart? I can't find anything in the docs to say that it isn't supported, although I might have missed something...
The only supported
trigger
which will open a tooltip in a Timeline-chart isfocus
Possible workaround:
It still uses the default-behaviour(tooltip on focus). But the built-in tooltip is hidden(via CSS)
In the select-handler it fetches the built-in tooltip out of the document(it's hidden, but it's still there) and creates a clone which will be injected into the document.