Replies: 2 comments 2 replies
-
|
Yea looking forward for the same features... |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi, you can subscribe on click event and get the seriesData from that event which contains bar values. you could easily check its candle color if you know the open and close values. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, thanks for the awesome work on this library/tool!
I'm exploring a use case where I want to interact with individual candles on the TradingView chart—for example, clicking on a specific candle and retrieving its metadata such as:
My main questions:
Is there any official or supported way to add an onClick event to individual candles?
I’d like to trigger a function when a user clicks a specific candle.
Can we use document.querySelector or similar DOM selectors to identify and interact with individual candles?
I understand the chart may be rendered on canvas or via Shadow DOM, so I’m curious if there's a workaround, internal API, or event hook that exposes this interaction.
Is this something supported via the TradingView Charting Library or Lightweight Charts?
And if not, would it be considered for future support?
Looking forward to any guidance or direction you can provide 🙌
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions