Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi pane support #18

Open
OnlyC opened this issue Dec 12, 2023 · 4 comments
Open

Multi pane support #18

OnlyC opened this issue Dec 12, 2023 · 4 comments

Comments

@OnlyC
Copy link

OnlyC commented Dec 12, 2023

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
Copy link
Owner

trash-and-fire commented Jan 24, 2024

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
Copy link
Owner

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

@lequangduc
Copy link

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
Copy link
Owner

tradingview/lightweight-charts#1557 there are some updates. It seems panes will be supported in LWC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants