-
-
Notifications
You must be signed in to change notification settings - Fork 368
Features/lightweight charts v5 #524
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
base: main
Are you sure you want to change the base?
Features/lightweight charts v5 #524
Conversation
|
Thank you for the migration. Maybe add resize and remove methods as well? Seems like panes need to be in reverse order to autoresize correctly EDIT: And for markers |
|
Awesome work! I tried lightweight-charts-v5, and it seems that chart.marker(**data) is incompatible. |
Thank you @HEUDavid for your feedback! Could you also attach error images, so I can better navigate the issue, please? |
Hi @emma-uw, I have just updated the PR followed your comments. Please take a look again, thanks! |
|
is this branch compatilble with latest python version? |
I have tried your latest code branch[features/lightweight-charts-v5], and everything works great. It seems to run smoothly with no apparent bugs. However, when drawing a vertical line, "No-text" label appears on the time axis. I looked into the code, and it seems to be controlled by the text() function in axis-view.tx, which returns "No-text". When I draw a custom vertical line, I do not need the label. I have tried using labelVisible, axisLabelVisible, etc., but none of them work. (Apologies, I’m just a backend engineer...) |
I haven't test it with latest python version yet but I works fine on 3.11.6. Let's me also check with the latest one. |
|
@tran-thanh-phong Very useful. I tried it out and it was very smooth. Found a small bug. The legend color is incorrect, everything else is fine. |
|
@louisnw01 can we merge this PR? Update to v5 would be really great! |
|
Found out that line markers won't work anymore in the current variation. For my case I had to pass markers into createLineSeries for each line and createSeriesMarkers if said list wasn't empty. But maybe someone will come up with better solution for v5 implementation. |
|
I did some tests today and this fork works perfectly in my application. The only minor issue is the text label for ray_lines. It always shows the price instead of the text ("RISK"). chart1.ray_line(self.riskTimestamp, self.riskPrice, round=True, color='#FF00FF', style='solid', text='RISK', width=2) |
|
I did some tests too and it works fine for me too, but I see an error in the legend percentage due to the wrong calculation in bundle.js where the percentage is let defined as t=(s.close-s.open)/s.open*100 while it should use the previous candle closing value instead of s.open (current candle opening value). |
|
in horizontal_line the title is not visible. |



No description provided.