JorrinKievit / react-ts-tradingview-widgets

This is a React component library for TradingView Widgets
https://tradingview-widgets.jorrinkievit.xyz/
MIT License
154 stars 48 forks source link

Drawing on the chart generated #24

Closed DENNIS-CODES closed 1 year ago

DENNIS-CODES commented 1 year ago

hello am trying to draw on the chart using react is there a tool i can use to draw horizontal line using react on the trading view chart

JorrinKievit commented 1 year ago

Can you specify? You are able to draw lines/all kinds of stuff on the AdvancedRealTimeChart

DENNIS-CODES commented 1 year ago

can you share the code ie in react on how to draw a horizontal line on the chart using the AdvancedRealTimeChart widget, by specifying the parameters on the widget, if they are no way, can I control a line drawn using the tools bar, such as adjusting the position of the line by moving up or down using react

JorrinKievit commented 1 year ago

There is no way to interact in code with the charts. So you won't be able to draw lines on them using code. You could consider this -> https://github.com/tradingview/lightweight-charts

DENNIS-CODES commented 1 year ago

thank you this was helpful, but consider adding the features on the widget in the future

JorrinKievit commented 1 year ago

TradingView simply does not offer these features. Out of my reach unfortunately