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

Get data from charts upon mouse move and click #378

Closed
gokulchittaranjan opened this issue May 23, 2024 · 3 comments
Closed

Get data from charts upon mouse move and click #378

gokulchittaranjan opened this issue May 23, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@gokulchittaranjan
Copy link

Description

The events currently supported in utils.py does not include mouse_move and click.
This is useful, for example, to get the OHLC data upon click, so that external action can be performed.

Code example

figures[idx].events.click += self.ui_on_graph_click

Should, for example, call the method self.ui_on_graph_click upon clicking the graph.

Method of implementation

Add relevant JS method to utils.py

@gokulchittaranjan gokulchittaranjan added the enhancement New feature or request label May 23, 2024
@gokulchittaranjan
Copy link
Author

@louisnw01 Created PR #377

@louisnw01
Copy link
Owner

implemented in latest version.

Louis

@gokulchittaranjan
Copy link
Author

Hi Louis, Thanks for the great package. I did get the latest version. It does not have the entire functionality that's in the PR - please feel free to reject it if it is not in line with your roadmap.

My use case is to get the OHLC data in addition to the price at a particular y-location.
I have merged your changes with mine in my fork at:
https://github.com/gokulchittaranjan/lightweight-charts-python

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

2 participants