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

Upgrade to Lightweight Charts 4.1 to allow plugin support #180

Open
dogaince opened this issue Oct 28, 2023 · 4 comments
Open

Upgrade to Lightweight Charts 4.1 to allow plugin support #180

dogaince opened this issue Oct 28, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@dogaince
Copy link

Description

A new Method just like the create_horizontalline but draws a box/rectangle.

Code example

chart.create_rectangle(startpoint, endpoint, color, transparancy) 
or 
chart.create_rectangle(startpoint, width, height, color, transparancy) etc.

Method of implementation

Since lightweigtcharts 4.1 there is plugin support and a an example for drawing a rectangle with the toolbox.

@dogaince dogaince added the enhancement New feature or request label Oct 28, 2023
@louisnw01
Copy link
Owner

Hey @dogaince,

Plugin support will allow for this and much more (real vertical lines, VRVP etc) and I'm excited to get this library up to date!

I'm working on upgrading to 4.1, but as I am using a custom build of version 4 I'll need to do a merge. Hopefully i'll release in the coming weeks!

p.s 've renamed this post accordingly

Louis

@louisnw01 louisnw01 changed the title chart.create_box() or .create_rectangle() Upgrade to Lightweight Charts 4.1 to allow plugin support Oct 29, 2023
@louisnw01
Copy link
Owner

Additionally, the rectangle plugin currently provided by Lightweight Charts is not sufficient as it does not allow you to draw rectangles past the last data point; I am aware that someone created a custom build for this a while ago, but until it is remade as a plugin this won't be possible.

Louis

@AbdurrahimBalta
Copy link

We wait you louis 👯

@louisnw01
Copy link
Owner

Just to update, I still haven't seen an implementation of boxes/lines that takes into account the interval so that they can be drawn past the last datapoint, so I'll have to hold off on this for now.

In the future I may get time to cross over my implementation to plugins, but I cannot promise anything. Here's to hoping

Louis

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

No branches or pull requests

3 participants