我正在尝试以编程方式打开和关闭 pointLabels。我认为它会像这样工作:
var data_ = [[1,1],[2,5],[4,9]];
var graph = $.jqplot(id_graph, [data_], {
series:[{pointLabels: { show:true } }]
}
);
graph.series[0].pointLabels.show=false;
graph.replot();
Run Code Online (Sandbox Code Playgroud)
但是,这仍然显示点标签。
谢谢你的帮助!
jqplot ×1