From 41c59198745f36d5bcaa0e65c81b2469303c6672 Mon Sep 17 00:00:00 2001 From: Abhinandan Kushwaha Date: Fri, 22 Apr 2022 19:05:41 +0530 Subject: [PATCH] Update LineChartProps.md --- docs/LineChart/LineChartProps.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/LineChart/LineChartProps.md b/docs/LineChart/LineChartProps.md index 029cc77..e4c3ab0 100644 --- a/docs/LineChart/LineChartProps.md +++ b/docs/LineChart/LineChartProps.md @@ -293,13 +293,15 @@ type Pointer = { }; ``` -**Note** If you are using the `pointerConfig` prop, the scroll will be disabled automatically. This is because, it's difficult to achive both scrolling line and scrolling pointer simultaneously. So if you want to retain the scroll behaviour even after passing the `pointerConfig` prop, then set the property `activatePointersOnLongPress` to true inside the pointerConfig object. This will make the pointers visible only after long press. So, before the long press, user can can scroll the line. Once long pressed, scolling will be disabled until the release of the long press. - - The above properties can be understood with this labelled diagram- + +**Note** If you are using the `pointerConfig` prop, the scroll will be disabled automatically. This is because, it's difficult to achive both scrolling line and scrolling pointer simultaneously. So if you want to retain the scroll behaviour even after passing the `pointerConfig` prop, then set the property `activatePointersOnLongPress` to true inside the pointerConfig object. This will make the pointers visible only after long press. So, before the long press, user can can scroll the line. Once long pressed, scrolling will be disabled until the release of the long press. + The duration after which a press event will be considered as long press can be controlled using the `activatePointersDelay` property inside the pointerConfig object. The default value of activatePointersDelay is 150. + + ### 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-