highcharts 点击曲线上的点的事件如何触发啊?
我想在点击曲线上的点的时候执行一个js函数,该函数能获取到我点击的点的值.请高手指教啊chart:{type:'line'}xAxis:{labels:{step:1,r...
我想在点击曲线上的点的时候执行一个js函数, 该函数能获取到我点击的点的值.请高手指教啊
chart: {
type: 'line'
}
xAxis: {
labels: {step:1,rotation: -25, align: 'right', style: { font: 'normal 10px Verdana, sans-serif'}} ,
categories: ['2013-08-12 10:05', '2013-08-12 10:10', '2013-08-12 10:15', '2013-08-12 10:20', '2013-08-12 10:25', '2013-08-12 10:30',
'2013-08-12 10:35', '2013-08-12 10:40', '2013-08-12 10:45', '2013-08-12 10:50']
},
yAxis: {
title: {
text: '成功率(%)'
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: true
,
allowPointSelect:true,
formatter:
function()
{alert("xuanz");
return
this.y;}
}
},
series: [{
name: '附着成功率',
data: [15000, 15600, 25000, 256000, 26000, 27000, 28000, 29000, 30000, 45000, 56000, 35000]
,
marker:{
enabled:true
}
}, {
name: '基线',
data: [35000, 37000,45000, 46000, 47000, 48000, 49000, 50000, 61000, 43000, 41000, 56000]
}]
求指教啊, 在线等........ 展开
chart: {
type: 'line'
}
xAxis: {
labels: {step:1,rotation: -25, align: 'right', style: { font: 'normal 10px Verdana, sans-serif'}} ,
categories: ['2013-08-12 10:05', '2013-08-12 10:10', '2013-08-12 10:15', '2013-08-12 10:20', '2013-08-12 10:25', '2013-08-12 10:30',
'2013-08-12 10:35', '2013-08-12 10:40', '2013-08-12 10:45', '2013-08-12 10:50']
},
yAxis: {
title: {
text: '成功率(%)'
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: true
,
allowPointSelect:true,
formatter:
function()
{alert("xuanz");
return
this.y;}
}
},
series: [{
name: '附着成功率',
data: [15000, 15600, 25000, 256000, 26000, 27000, 28000, 29000, 30000, 45000, 56000, 35000]
,
marker:{
enabled:true
}
}, {
name: '基线',
data: [35000, 37000,45000, 46000, 47000, 48000, 49000, 50000, 61000, 43000, 41000, 56000]
}]
求指教啊, 在线等........ 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询