wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.44k stars 657 forks source link

Set SelectedPoint to CandleStick #937

Open Ulan4eg opened 1 year ago

Ulan4eg commented 1 year ago

Hello.

I use CombinedChart: candle + bar My candleData: [{ "close": 123.8, "date": 2023-03-03T09:25:00.000Z, "index": 0, "marker": "lorem ipsum dolor", "open": 456, "shadowH": 499, "shadowL": 311, "volume": 5 }, { "close": 123, "date": 2023-03-03T09:30:00.000Z, "index": 1, "marker": "lorem ipsum dolor", "open": 456, "shadowH": 499, "shadowL": 311, "volume": 21 }, ..... etc ]

I need to set selected point programmatically. For this I use: image and this._candleStickChartRef.highlights([{ .... but I don't know what I should enter here }]);

Please, help me.

Specifications

"react-native": "0.66.5", "react-native-charts-wrapper": "0.5.9"