Mark Silverwood

Results 179 comments of Mark Silverwood

When setting up buttons. Don't allow or show functions which will only work with tm units if there are none.

Closing due to lack of activity.

You can't directly set the `rightOffset` in pixels because the library uses the number of bars for this property. However, you can achieve the desired result by using the [`barSpacing`](https://tradingview.github.io/lightweight-charts/docs/api/interfaces/TimeScaleOptions#barspacing)...

You could try something like this if you need to use it with `fitContent`: ```js function setPixelOffsetAfterFitContent(chart, offsetInPixels) { // Temporarily set the right offset to zero to ensure fitContent...

I don't know all the specifics of your implementation and requirements, however I think there is enough information to figure out a solution to your problem. The provided code samples...

This is the line of code throwing the error: https://github.com/tradingview/lightweight-charts/blob/86aa897398d24a0f0f8a064dc5364ae07d7d62ed/src/model/range-impl.ts#L8 Which is being called by this: https://github.com/tradingview/lightweight-charts/blob/86aa897398d24a0f0f8a064dc5364ae07d7d62ed/src/model/time-scale.ts#L836-L842 So for the error to occur, newBarsLength would need to be less than...

Had another thought. Are you perhaps creating the chart without any series or data for the series? and then only adding the series/data at a later stage? This would be...

Thank you for the JSFiddle example which clearly shows the issue. I'm adding the 'needs investigation' label because we will need to discuss internally whether a change to this behaviour...

It is likely that the default styles defined by the Firefox browser are different for the `body` element such that it is not filling the screen as you expect. The...

Thanks for the bug report with the helpful example. I think it makes more sense if the library automatically refreshes the chart when a primitive is removed instead of relying...