선택된 포인트 목록을 조회합니다.
포인트 선택은plotOptions.series.allowPointSelect를true로 설정하면 사용할 수 있습니다. 차트가 그려지기 전(draw()호출 전)에 호출하면-1을 반환합니다.
{ibchart}.getSelectedPoints();
none
array 선택된 포인트 배열 (각 포인트의 category, x, y, name, series 등 사용 가능), 실패 시 -1
myChart.setOptions({
plotOptions: {
series: { allowPointSelect: true }
}
}, {append: true, redraw: true});
var points = myChart.getSelectedPoints();
for (var i = 0; i < points.length; i++) {
console.log(points[i].category + " : " + points[i].y);
}
| version | desc |
|---|---|
| 7.3.1.32 |