Mark Silverwood
Mark Silverwood
You could try increasing the [`rightOffset`](https://tradingview.github.io/lightweight-charts/docs/api/interfaces/TimeScaleOptions#rightoffset) value on the time scale options so that the chart will leave more space on the right edge. This value is specified in 'number...
For this use case we would suggest creating two chart next to each other in a grid layout. Since you don't need to share a time scale (and most likely...
This behaviour is somewhat expected. Using setData means replacing all the data for a series with the new data. If you are updating a single value then you should rather...
Looking at your example, I think that you may be speaking about the auto scaling feature of the price scale rather than anything to to do with the data updating....
You can control the visible range of the time scale: https://tradingview.github.io/lightweight-charts/docs/time-scale Maybe you want to turn this option off? - https://tradingview.github.io/lightweight-charts/docs/api/interfaces/TimeScaleOptions#shiftvisiblerangeonnewbar
I've also identified that the `zOrder` (provided by `zOrder` on the PaneView) on PanePrimitives seems to be ignored which is preventing the Primitive from being placed below the grid lines...
The library already supports this. You would need to use timestamps (number) for the `time` field in the data points, and then use a custom formatter to display the additional...
I suspect that your `findDuplicateDatesWithTime` isn't correctly identifying duplicate timestamps. Any two items which have the same `time` value would be considered a duplicate even if everything else was different....
Are the actual `time` values that you provide to `setData` different? At some point you will be converting your `"date"` value into a [time](https://tradingview.github.io/lightweight-charts/docs/api#time) value.
The error is suggesting that there are some data points which are either duplicates or multiple data points for the same timestamp. This can sometimes occur when using external data...