tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.07k stars 629 forks source link

How to push new data into the graph on the client side? #251

Open jokaorgua opened 2 years ago

jokaorgua commented 2 years ago

Hello.

Could anyone help me to understand how to push ohlcv data into the empty chart right from browser? There is no way from me to get data from vue server, so I want somehow to create a json in browser to push data for processing into the chart

Thank you

P.S. I want to compile tradingvue lib into pure js and use it in browser when page loads

phuthuycoding commented 2 years ago

@jokaorgua You can using datacube update real time data. View code example here https://github.com/tvjsx/trading-vue-js/blob/master/test/tests/DataHelper.vue

jokaorgua commented 2 years ago

Thanks for the tip. Im already using tue DataCube in server vue. I’m more interested in solution for already compiled js code. Something like chart.dc.update but from js on the page