I have a spline chart in Highcharts. It has data for 24 hours i.e 24 points. Now during those 24 hours, there are certain incidents that take place which i need to show as points on the spline chart. And there needs to be a tooltip for those points. How do i overlap these points on the spline graph including their tooltip? And these overlapped points need to be mapped to their corresponding time also on the x-axis. Any ideas if this can be done?
This is an example for what i want to do in a JSfiddle:- http://jsfiddle.net/ttyc5dod/
$(function () {
$('#container').highcharts({
title: {
text: 'Test Graph',
x: -20 //center
},
xAxis: {
categories: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]
},
yAxis: {
title: {
text: 'Availability(%)'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: '°C'
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
name: 'Data',
data: [7.0, 6.9, 9.5, 10, 11.2, 12.5, 15.2, 16.5, 13.3, 18.3, 13.9, 9.6, 12, 13, 12, 11.2, 9, 8, 5, 12, 14, 12, 12, 12.5, 10]
}]
});
});
For example, in the following example, between the time 23:00 and 24:00 hours, let's suppose an incident(issue) takes place which has to be shown on this graph. Is there any way to plot a point on this graph between 23:00 and 24:00 which shows the incident and also should have the tooltip telling the details about the incident.enter code here
Any help will be appreciated.