I want to use plotly.js Plotly
Do you know how to use one of the plot from Plotly.js in my NI G Web program?
I found example that call Plotly in this link https://github.com/rajsite/webvi-experiments, however I did not understand how to call the plot and ....
Solved! Go to Solution.
I recently found the NI XY Chart shipped with G Web Development was not performant enough for the quantity of data required to be plotted for a web application we're developing for a customer.
First add the script reference to the html source of the page you wish to display plots on using official release URLs or local script reference i.e.
Size the HTML Placeholder Container on the front panel for the page. Set a unique html class attribute on the control such as 'plotly-graph'.
Are you able to see the plot when you run the website in G Web itself? My plot shows up when I run it in the browser, but when I want to debug in G Web the plot doesn't show up and I get errors.
Just tried this out, and the script called to initialize my plotly graph in the HTML Placeholder Container executes without error. However, my web application relies on HTTP requests so I cannot test drawing plots while running directly in G Web. What errors are you getting instead of the Plotly graph rendering?
I attached the example to the post, hopefully it's a useful starting point!
Thank you! Have you ever tried to get this to work with graph.js? G Web seems to error out (saying syntax error in graph.js even though it works in the browser)
I already found solution for my problem.
Instead of Plotly.js, I use Chart.js.
I use this link as reference Using Chart.js in LabVIEW NXG Web Module .
By using that program I can edit properties of the chart quite easy using cluster on G Web.
Certified LabVIEW Developer (CLD)