0x33

Results 17 comments of 0x33

> This is the intended behaviour. However you can use the [`autoscaleInfoProvider`](https://tradingview.github.io/lightweight-charts/docs/api/interfaces/SeriesOptionsCommon#autoscaleinfoprovider) (which is part of the series options) to override the autoscale behaviour, such as adjusting the min and...

> ``` > candleSeries.applyOptions({ > autoscaleInfoProvider: (originalRange) => { > const res = original(); > res.priceRange.minValue = Math.min(res.priceRange.minValue, Math.min(additionalLines)); > res.priceRange.maxValue = Math.max(res.priceRange.maxValue, Math.max(additionalLines)); > return res; > }, >...

> Has there been any update on this issue ? Is it possible to get the visible min and max price from the price scale ? Even if it means...

> Have you tried - > > > I have to do this in webstorm sometimes before the tokens will be picked up > > > Also nothing on my...

> // needs to be called after the chart has been redrawn, so requestAnimationFrame is used. is requestAnimationFrame the recommended way to wait after updating candles / setting the offset?...

Actually on my case i found that requestAnimationFrame is perhaps too quick and the offset is not added. Currently i'm using setTimeout with 100 ms and it's working, but would...

> * Are you using the `autosize` option on the chart, and are there any changes to chart size? - autoSize is true wheen i create the chart > *...

> I forked @ddwang 's script, made a couple improvements, and it's working for me: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4 > > Wasted way too much on this, but at least it works now...

> I forked @ddwang 's script, made a couple improvements, and it's working for me: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4 > > Wasted way too much on this, but at least it works now...