答案 0 :(得分:4)
您正在寻找的是highlight
,API.txt中记录了这一点:
highlight(series, datapoint) Highlight a specific datapoint in the data series. You can either specify the actual objects, e.g. if you got them from a "plotclick" event, or you can specify the indices, e.g. highlight(1, 3) to highlight the fourth point in the second series (remember, zero-based indexing).
所以你的代码看起来像这样:
//before this, $.plot has been called and assigned to "plot"
$('#mylink').mouseover(function(){
plot.highlight(1,3);
}).mouseout(function(){
plot.unhighlight(1,3);
});