score:1
Accepted answer
An attempt at an odd workaround is setting the tooltip formatter in the initial options, and then using setData
with updatePoints
set to false
(4th parameter). This does seem to provide the desired functionality.
For example (JSFiddle demo):
let chart1 = Highcharts.chart('chart1', {
series: [{
data:[],
tooltip: {
formatter: function() {
return this.y+'<br/> serie 1';
}
}
},{
data: [],
tooltip: {
formatter: function() {
return this.y+'<br/> serie2';
}}
}],
tooltip: {
shared:true
}
});
function firstData() {
let series1 = [8, 4, null, null, null];
let series2 = [2, 7, null, null, null];
updateChart(series1, series2);
}
function secondData() {
let series1 = [1,2,3,4,5];
let series2 = [9,8,7,6,1];
updateChart(series1, series2);
}
function updateChart(series1, series2) {
// false last parameter here fixes it
chart1.series[0].setData(series1, true, null, false);
chart1.series[1].setData(series2, true, null, false);
}
Note that it is probably wiser to wait for the official fix in version 7.1.3.
score:2
Nice workaround is to use the formatter
feature
tooltip: {
shared: true,
formatter: function() {
return this.y+'<br/> test';
}
check this demo: https://jsfiddle.net/mushigh/srq61um2/
Here is more information about formatter option
Source: stackoverflow.com
Related Query
- Highcharts not showing tooltip after update from null
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- Highcharts tooltip not showing on chrome
- HighCharts Angular - data from API not showing in chart
- highcharts tooltip not working after zoom
- Series from highcharts not showing up
- Highcharts stacked area - update tooltip only after exact area mouse over
- Highcharts userOptions does not update after changing the chart title
- Div element not hiding even after hiding the tooltip in highcharts
- % not showing in tooltip pie chart highcharts angular js
- highcharts not showing decimal points coming from xml
- Highcharts tooltip not showing on unsort data
- Python: Read data from Highcharts after setExtreme
- Highcharts Error #16: charts not showing on the same page
- Highcharts - Keep tooltip showing on click
- Always showing tooltip on all columns in Highcharts
- Highcharts how to remove headers from tooltip
- Highcharts Pie Chart Drilldown not showing on third drill
- Why are the labels for my opposite yaxis in Highcharts not showing up?
- Highcharts shared tooltip for line series and scatter plot not working
- Highcharts line chart tooltips not showing correctly?
- Highcharts spline chart points not showing unless zoomed in
- Remove UTC date from Highcharts tooltip
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- HighCharts - Show tooltip on column where value is 0 or null
- Legend and Axis titles not showing in Highcharts Graph
- Legend and Axis titles not showing in Highcharts Graph
- Click event not fire in highcharts tooltip
- Highcharts - update column graph with setData() not working
- highcharts xaxis navigator not showing
More Query from same tag
- How to add text on every section edges in funnel highcharts
- Highchart renders differently for height on first click
- Highcharts JSON multiple series
- highcharts column graph tooltip need to close when mouseout the cursor from the graph
- Is it possible to populate grouped categories dynamically in the grouped-categories plugin using an array?
- Highcharts - Incorrect tooltip position when zoomed in
- Highcharts hide connected line between individual points
- Add text over export button in Highcharts
- Legend order for proximate layout
- HighCharts stack totals on top for percent stacking
- Incorrect JSON data format
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- FusionCharts Failed to draw different chart on same data source
- Rendering Highcharts Chart in Two Container
- How to end crosshair line where x meets y on line chart in high charts
- I am trying to create pie chart using highcharts in SharePoint 2010 Visual Web Part.Not working with default document model of IE 11
- How to match columns height with spline in Highcharts
- Data format and X/Y configuration for dynamic csv display
- Creating multiple series in Highcharts within a loop
- Highcharts - Format X axis with 2 digit hours in 24 hour format
- Highcharts plotline with label in the left of the line
- How to make interactive highchart tooltips
- highcharter: how do I make a grouped plot using the hcaes function
- Highcharts problem with decimals if there are many data points
- How To Use Epoch Time With Highcharts Series Data?
- Show HighCharts tooltip when chart loads
- how to reset Highchart chart width in percentage on Button click
- Highcharts: Hide and show legend
- Highcahrts sometimes loads but not always
- Django/Chartit NameError: global name 'MonthlyWeatherByCity' is not defined