Replies: 2 comments 1 reply
-
You can try this: https://nightvision.dev/guide/intro/10-basic-examples.html#_9-using-the-lib-with-python |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer C451. i tried the snippet you posted, but i get an error like that: In Lightweight-Chart i used to do something like that:
Where in index.html was imported everything necessery to plot the data. Creating a server it's be usefull for avoid any problem with CORS. So this was enought for open a windows form with a webviewer, and plotting the chart. Now, i tried to do the same thing with NighVision, but seem like he did not run on the server created by pywebview. Assuming that i created a 'data-1.json' file and imported in the 'main.js' for passing the OHCLV datas, so in this paritcular case i deleted the part of code in client.py where create a random datas. client.py
i dont get no error in this case, script open a form and load index.html, but it's completely blank, seems like script aren't running. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can i plot the chart using HTML as in Lightweigh-chart?
Actually im using pywebview for create a server and then calling the main html page for plot. Is possible doing the same with NightVision?
Beta Was this translation helpful? Give feedback.
All reactions