lightweight-charts-react-wrapper icon indicating copy to clipboard operation
lightweight-charts-react-wrapper copied to clipboard

Multi pane support

Open OnlyC opened this issue 1 year ago • 4 comments

DeKay in this video is using a fork version of lwc to add multiple pane to main chart. Any chance we can have that in wrapper? https://www.youtube.com/watch?v=2nxj4aLBhgo

More info: https://pypi.org/project/streamlit-lightweight-charts-ntf/

OnlyC avatar Dec 12 '23 18:12 OnlyC

I will think about supporting a custom chart creation function, but I’m not sure that it will be possible to support what has been done and is located on your links. There is an old version of the library, and I also think I will have difficulties with typing in order to provide access to new functions from forks.

The main difficulty in supporting multiple panes is making the price scale the same width across all panes. The rest seems to be done easily in user mode.

trash-and-fire avatar Jan 24 '24 13:01 trash-and-fire

Using the minimum scale width parameter and price formatting settings, you can bring the scales to a stable width among all panes.

trash-and-fire avatar Jan 24 '24 13:01 trash-and-fire

is there any update ? im can't simulate pane functional, tried use different chart and sync main chart but that is too meh

lequangduc avatar Mar 27 '24 13:03 lequangduc

https://github.com/tradingview/lightweight-charts/pull/1557 there are some updates. It seems panes will be supported in LWC.

trash-and-fire avatar Apr 24 '24 00:04 trash-and-fire