From 401f76953d7cce0c4081b40590612d914f178a40 Mon Sep 17 00:00:00 2001 From: MD1990 Date: Tue, 3 Sep 2019 19:00:46 +0530 Subject: [PATCH] add index of the point clicked Please look into this and approve as I was not able to proceed or I will have to change the plugin thanks --- src/line-chart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/line-chart.js b/src/line-chart.js index 7795bf3e..4a7a50ce 100644 --- a/src/line-chart.js +++ b/src/line-chart.js @@ -41,8 +41,9 @@ class LineChart extends AbstractChart { } onDataPointClick({ + index: i, value: x, - dataset, + dataset, getColor: opacity => this.getColor(dataset, opacity) }) }