score:-1
score:-1
you can use the chart.mytooltip.destroy()
method to remove the tooltip manually. for example:
var mychart = new highcharts.chart({ /* ... */ });
mychart.mytooltip.destroy();
this will remove the current instance, and it will reappear the next time you hover on a point (or whatever action the user would take to show the tooltip).
score:0
this is jenky but served my purposes
$(document).ready(function(){
$('.highcharts-container text:last').hide()
})
score:0
try this if you need at run time.
chart.tooltip.hide();
it worked for me http://forum.highcharts.com/highcharts-usage/tooltip-how-to-show-hide-tooltips-onblur-t5926/
score:0
you can use the update function
var mychart = $('#container').highcharts();
for disable tooltip:
mychart.update({tooltip: {enabled: false}});
for enable tooltip:
mychart.update({tooltip: {enabled: true}});
check this jsfiddle:
score:1
you need to set that marker/point default state.
something like this:
chart.series[0].data[index_of_tooltip_point].setstate("");
score:1
try and use below code:
$(function () {
var chart = new highcharts.chart({
chart: {
renderto: 'container'
},
plotoptions: {
series: {
events: {
click: function(e) {
enabledtooltip();
}
}
}
},
tooltip: {
crosshairs: [{
dashstyle: "solid"
}, false],
enabled: false
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
var enabledtooltip = function(){
alert(567);
var options = chart.options;
options.tooltip.enabled = true;
chart = new highcharts.chart(options);
};
});
hope this works for you
score:1
i use chart.pointer.reset()
for removing marker and tooltip during legenditemclick
and it works like a charm
score:2
i looked through a lot of forums and nowhere i found very easy way to show/hide a tooltip like tooltip.enable = true/false. the good way i came to is to set tooltip setting through formatter in the initialization of chart.
var barsshowen - is a global variable that has a necessary state - true/false - show tooltip or not.
this example will work in my project www.tanks-vs.com after the beginning of dec 2014. you could see.
tooltip: {
shared: true,
usehtml: true,
formatter: function() {
if (barsshowen) {
var s = '<span><b>' + this.x + '</b></span><table>';
$.each(this.points, function () {
s += '<tr><td align = "left" style = "color:' + this.series.color + ';">' + this.series.name + ': ' +'</td>' +
'<td><b>'+ this.y +'</b></td></tr>' ;
});
return s+'</table>';
} else {
return false;
}
}
score:2
you have to provide formatter function. the trick is to return false when you do not want to show anything
here is a little test
html page -
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
<button id='toggletooltip'>toggle tooltip</button>
js code -
$(function () {
$('#container').highcharts({
title: {
text: 'tooltip enabled is set to false'
},
xaxis: {
categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}, {
data: [194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4]
}]
});
$('#toggletooltip').click(function () {
var tooltipoptions = $('#container').highcharts().tooltip.options;
if ($(this).hasclass('enabled')) {
tooltipoptions.formatter = null;
$(this).removeclass('enabled');
} else {
tooltipoptions.formatter = function () {
return false;
}
$(this).addclass('enabled');
}
});
});
see live here
score:4
as long as you have a reference to the highcharts chart object, you can hide the tooltip like so:
// create chart
var mychart = new highcharts.chart({ /* snip */ });
// hide tooltip
mychart.tooltip.hide();
score:6
please have a look at http://jsfiddle.net/st84h/
you can hide tool tip by
tooltip: {
enabled: false
}
Source: stackoverflow.com
Related Query
- How to programatically hide a tooltip in highcharts?
- Highcharts - How to hide series name and Y value in tooltip
- How to hide a highcharts pie slice programatically
- How to hide one series data info in tooltip using highcharts
- How to edit tooltip in Highcharts C# code
- how to use highcharts tooltip formatter in python code
- How to hide series name from tooltip in Highcharts scatter plots for linear regression
- How to hide Series Name in HighCharts Tooltip when using pointFormatter
- How can I hide tooltip in highcharts
- How can I hide series from a HighCharts legend?
- How to hide labels in the highcharts in the pie
- How can I hide a series from initially being displayed in Highcharts
- How can i hide all the Series in highcharts at a time
- Highcharts - How to display legend symbol inside the tooltip
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- Highcharts how to remove headers from tooltip
- Highcharts - How to remove connecting line between fixed tooltip and point
- Highcharts - How to remove tooltip arrows
- Never want to hide tooltip on highcharts
- How to enable or disable a Highcharts tooltip when a button is clicked?
- How to modify Highcharts x-axis tooltip text
- How to hide color axis in heatmaps using highcharts
- How to hide Axes Crosshairs by onclick event in Highcharts
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- how to pass values to tooltip which not in x and y axis in highcharts
- How to get next point in Highcharts tooltip
- Is it possible to set Highcharts to hide tooltip when the mouse pointer is 30px away
- How can I hide and show a category in highcharts
- How to get the highlighted point from shared tooltip formatter, Highcharts
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
More Query from same tag
- Highcharts - How to display legend symbol inside the tooltip
- how to add xAxis.tick dynamically
- Highcharts tooltip showing selected points
- Webpack Highcharts Plugin IIFE
- How to create a threshold in highcharts ng
- Form data series for highcharts columns
- Highcharts wrong size on window maximize
- How to Integrate Flot with AngularJS?
- Highcharts Tooltip - Access "z" value in series data array
- JSON Data for Highcharts in Symfony2 with ObHighchartsBundle
- Getting Error Property 'nodeFormatter' does not exist on type 'SeriesOrganizationDataLabelsOptionsObject[]'
- Highcharts spiderweb showing wrong categories at first position
- How to implement z index in java script high chart
- Highcharts: how to show more info in tooltip?
- Incorrect JSON data format
- Highcharts xrange refuses to exhibit drilldown behavior
- How to set up drilldown feature for multiple boxplot series in highcharter?
- Restoring GridstackJS Panels with Content (e.g. Highcharts)
- How to hide columns with no data in HighCharts
- Highcharts-legend-item.last() disappears when changing tab
- Zoom in Highmaps based on Lat/Long
- Loading Highcharts in an iframe
- How to hide legends in highcharts in mobile view alone
- Adding images to top of each column for each group on a chart
- How to push Json data to line chart function
- Angularjs - highchairs in directive
- Highcharts NG show only one point at a time. Animations
- Strange character in the Highstock source code
- Highcharts Stock Chart, Series Padding?
- Javascript Error: Highchart Legend Tooltip Error on Doubling Up Charts