trash-and-fire / lightweight-charts-react-wrapper

React wrapper for financial lightweight charts
Other
58 stars 5 forks source link

Multi pane support #18

Open OnlyC opened 6 months ago

OnlyC commented 6 months ago

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/

trash-and-fire commented 5 months ago

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 commented 5 months ago

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

lequangduc commented 3 months ago

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

trash-and-fire commented 2 months ago

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