chart: {
renderTo: 'chart-selection',
backgroundColor: null,
type: 'scatter'
},
title: {
text: txt + ' (' + title + ')'
},
plotOptions: {
tooltip: {
crosshairs: true,
headerFormat: '<b>{point.x}</b>',
pointFormat: '<b>Volumn : {point.y}</b><br/>Price : {point.price}<br/>Change : {point.change}'
}
},
xAxis: {
type: 'datetime'
},
yAxis: {
title: {
text: title
},
height: 200,
lineWidth: 2
},
series: [{
color: 'rgba(100, 100, 200, .5)',
data: datax
}]
datax = [{x:1381942800000,y:23.000,price:26.00,change:0.00},{x:1382029200000,y:45.000,price:23.000,change:0.00}];
this code not show the tooltip
tooltip: {
crosshairs: true,
headerFormat: '<b>{point.x}</b>',
pointFormat: '<b>Volumn : {point.y}</b><br/>Price : {point.price}<br/>Change : {point.change}'
}
The
tooltip
property is not meant to be directly under plotOptions, but inside the series(or scatter) sub property of the plotOptionsAny of the following changes should work
plotOptions.series.tooltip
plotOptions.scatter.tooltip
series[i].tooltip
@jsFiddle
I was in the same situation and what I missed was a config call on my index.js file which is
And finally I found this after 2 days :) ... I am really sorry to make here busy about this stupid issue .After I deleted this config call on my index.js all my charts' tooltips are fixed . I hope I can help anybody having the same problem .
You need to use tooltip in general cofnigruation so you can remove plotOptions, and leave tooltip object like this: