trash-and-fire / lightweight-charts-react-wrapper

React wrapper for financial lightweight charts
Other
58 stars 5 forks source link

Add Series Marker #6

Closed cmjacques closed 1 year ago

cmjacques commented 1 year ago

Hi there, thanks for this library.

I'd like to make a feature request - add support for Series Markers as per https://tradingview.github.io/lightweight-charts/tutorials/how_to/series-markers

I don't believe this is possible right now?

trash-and-fire commented 1 year ago

It is possible through the ref https://codesandbox.io/s/codesandboxer-example-forked-wyy73i?file=/example.tsx.

I will add a declarative api to handle this in future. Something like <LineSeries data={data} markers={markers}/>.

cmjacques commented 1 year ago

Excellent - thanks for the fast reply and solution 👍

trash-and-fire commented 1 year ago

Done in 2.0.0