From 13d89c61f3b961f1784164473d21b6ae33e4c5a5 Mon Sep 17 00:00:00 2001 From: Abhinandan Kushwaha Date: Fri, 20 May 2022 03:10:10 +0530 Subject: [PATCH] Update LineChartProps.md --- docs/LineChart/LineChartProps.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/LineChart/LineChartProps.md b/docs/LineChart/LineChartProps.md index b7148e6..a8109c2 100644 --- a/docs/LineChart/LineChartProps.md +++ b/docs/LineChart/LineChartProps.md @@ -336,6 +336,11 @@ The strokeDashArray property lets us render a dashed/dotted strip along t 3. pointerY +When the chart is pressed, it returns the index of the data point pressed.
+When the chart is scrolled after pressing, it returns the index of the data point currently focused.
+When the chart is released, it returns the index -1.
+ + ### onPress and strip related props Line or Area charts can be made interactive by allowing users to press on the chart and highlight that particular data point. For example-