Closed ParanoidAndroid19 closed 3 years ago
I want to use the normal mode of crosshair instead of the default magnet mode. This feature: https://github.com/tradingview/lightweight-charts/blob/master/docs/constants.md#crosshairmode
So far I have tried these, but none worked: crosshair: { mode: "normal" }, crosshair: { mode: CrosshairMode.Normal }, crosshair: { mode: 1 }, crosshair: { mode: 2 },
crosshair: { mode: "normal" },
crosshair: { mode: CrosshairMode.Normal },
crosshair: { mode: 1 },
crosshair: { mode: 2 },
Thanks!
Found the solution.
import Chart, { CrosshairMode } from "kaktana-react-lightweight-charts";
I want to use the normal mode of crosshair instead of the default magnet mode. This feature: https://github.com/tradingview/lightweight-charts/blob/master/docs/constants.md#crosshairmode
So far I have tried these, but none worked:
crosshair: { mode: "normal" },
crosshair: { mode: CrosshairMode.Normal },
crosshair: { mode: 1 },
crosshair: { mode: 2 },
Thanks!