Hello,
A big thank you for creating such a amazing product and making it available to us. I'm a newbie in
the world of JS so I'm writing this to the best of knowledge, so please be patient.
Version of TAC = CL v21.066 (internal id 132c7060 @ 2022-04-01T09:59:44.647Z)
I followed the charting-library-tutorial and used those five files i.e. index.html, main.js , datafeed.js, helper.js and streaming.js with some minor modifications like change in url structure of api endpoint, adding volume along with OHLC values to datafeed from feched data, updating timezone and exchange info etc. and it was enough to display data from backend on the chart. I did not altered the main library in any manner as I dont have that level of understanding of the JS. However, now I cant use any of the drawing tools. If I use those five files provided in the tutorial repo, everything works fine but if I use the files that I have modified drawing tools don't work anymore. Also, to be precise to moved those five files in the "charting_library_clonned_data" folder and updated filepaths in main.js and index.html.
Please refer below screenshots and index.html, main.js , datafeed.js, helper.js and streaming.js codes.
I have uploaded TAC.py on this repo file which requires fastapi with uvicorn and if you run it using uvicorn TAC:app --port 8000 --reload it will respond to the exchange and historical data request made by the library . Hope this will help. Please let me know if you need anything. Also, I have uploaded a json for exchange and OHLCV data of 1min for 2000 candles if you want to test it on the repo . History endpoint should be /{d_fysymbol}/{Resolution}/{Timestamp}/{Limit} i.e "/NSE-SBIN-EQ/1/1650707789/2000" and exchange end point should be /exchange.
I might be completely wrong but looks like it has something to do with those two drawing_events with same ids in above screenshot. When I try to draw a trendline onSelectedLineToolChanged along with other mouse events are getting triggered but drawing_event isn't in the below image. Also, I could tell that trend line is being drawn on the chart by looking at light blue selected region both on time scale and price scale, as well as the enabled "Remove Drawings" option in the right click menu, but it does not show up in the "object tree". Also, tv-floating-toolbar tv-grouped-floating-toolbar ui-draggable div isn't in the "tv-chart-container".
Hello, A big thank you for creating such a amazing product and making it available to us. I'm a newbie in the world of JS so I'm writing this to the best of knowledge, so please be patient.
Version of TAC = CL v21.066 (internal id 132c7060 @ 2022-04-01T09:59:44.647Z)
I followed the charting-library-tutorial and used those five files i.e. index.html, main.js , datafeed.js, helper.js and streaming.js with some minor modifications like change in url structure of api endpoint, adding volume along with OHLC values to datafeed from feched data, updating timezone and exchange info etc. and it was enough to display data from backend on the chart. I did not altered the main library in any manner as I dont have that level of understanding of the JS. However, now I cant use any of the drawing tools. If I use those five files provided in the tutorial repo, everything works fine but if I use the files that I have modified drawing tools don't work anymore. Also, to be precise to moved those five files in the "charting_library_clonned_data" folder and updated filepaths in main.js and index.html.
Please refer below screenshots and index.html, main.js , datafeed.js, helper.js and streaming.js codes.
I have uploaded TAC.py on this repo file which requires fastapi with uvicorn and if you run it using
uvicorn TAC:app --port 8000 --reload
it will respond to the exchange and historical data request made by the library . Hope this will help. Please let me know if you need anything. Also, I have uploaded a json for exchange and OHLCV data of 1min for 2000 candles if you want to test it on the repo . History endpoint should be/{d_fysymbol}/{Resolution}/{Timestamp}/{Limit}
i.e "/NSE-SBIN-EQ/1/1650707789/2000" and exchange end point should be/exchange
.You can find these files also on this repo.
I might be completely wrong but looks like it has something to do with those two
drawing_event
s with same ids in above screenshot. When I try to draw a trendlineonSelectedLineToolChanged
along with other mouse events are getting triggered butdrawing_event
isn't in the below image. Also, I could tell that trend line is being drawn on the chart by looking at light blue selected region both on time scale and price scale, as well as the enabled "Remove Drawings" option in the right click menu, but it does not show up in the "object tree". Also,tv-floating-toolbar tv-grouped-floating-toolbar ui-draggable
div isn't in the "tv-chart-container".<--! index.html-->
main.js
helpers.js
datafeed.js
streaming.js