How do I get tooltips to always show in V2?
See original GitHub issueI’ve managed to get this working in V1 and have found an example of it working in V2 alpha, but I can’t seem to get it working in the latest beta.
I may eventually want to always show one particular tooltip, but hoping I can figure that out later.
animation: {
onComplete: function () {
var self = this;
var elementsArray = [];
Chart.helpers.each(self.data.datasets, function (dataset, datasetIndex) {
Chart.helpers.each(dataset.metaData, function (element, index) {
var tooltip = new Chart.Tooltip({
_chart: self.chart,
_data: self.data,
_options: self.options,
_active: element,
_view: element._view
}, self);
tooltip.update();
tooltip.draw();
}, self);
}, self);
}
}
Here’s an example of it working in V2 alpha: https://jsfiddle.net/c8Lk2381/
Thanks in advanced.
Issue Analytics
- State:
- Created 8 years ago
- Comments:21 (4 by maintainers)
Top Results From Across the Web
Chart.js v2: How to make tooltips always appear on pie chart?
Although I initially asked how to permanently show tooltips on pie chart here, I found a better solution: showing values as labels in ......
Read more >How to Always Show Tooltip on Pie Chart in Chart js - YouTube
How to Always Show Tooltip on Pie Chart in Chart jsIn this video we will cover how to always show tooltip on pie...
Read more >Tooltips - Bootstrap
Reveals an element's tooltip. Returns to the caller before the tooltip has actually been shown (i.e. before the shown.bs.tooltip event occurs). This is ......
Read more >Javascript Chart.js - Doughnut show tooltips always
... java 2 s. c om // Show tooltips always even the stats are zero Chart.pluginService.register({ beforeRender: function(chart) { if (chart.config.options.
Read more >Tooltip | Components - BootstrapVue
You can manually control the visibility of a tooltip via the syncable Boolean show prop. Setting it to true will show the tooltip,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wonder why this isn’t a default option…
@andi-b - as a temporary workaround, you can use the new
pluginService
to do this. Here’s a fiddle doing that http://jsfiddle.net/q15ta78q/ (yaay pluginService!)and then