Search code examples
tradingview-apilightweight-charts

I want to zero to come to most bottom so don't have any gap


I want the zero to come to bottom so I don't have a gap here how can I do it

enter image description here

shouldn't have any gap

I can't find any api to make it work.
tried putting -10 as a point but it just putting that -10 into zero place not working.
please help


Solution

  • You can use the scaleMargins option within the PriceScaleOptions to adjust the margin placed above and below the highest and lowest points on the chart.