How I spread the visible range to the entire visible chart ? #1420
Unanswered
IAMAFIVESTARMAN
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am creating a OHLC Chart in React and wanted to have setLogicalVisibleRnage to start from from where I specify while still being able to scroll through the entire chart. However the range is coming but it's width is not taking the entire chart but just maybe 10&.
Please help as I have been stuck on for a long time
Image:
useEffect course of reference :
` useEffect(() => {
chart.current = createChart(chartContainerRef.current!, {
timeScale: {
timeVisible: true,
secondsVisible: false,
},
width: 1600,
height: 500,
autoSize: true,
layout: {
background: { color: "#121723" },
textColor: "#8b969f",
},
crosshair: {
mode: 0, // LightweightCharts.CrosshairMode.Normal
},
grid: {
vertLines: { color: "#777", visible: false },
horzLines: { color: "#777" },
},
});
}, [chartData]);`
Beta Was this translation helpful? Give feedback.
All reactions