ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Chart.js in LabVIEW NXG Web Module

Hi everybody,

    Chart.js is a simple, clean and attractive set of JavaScript charting tools based on HTML5 technology.Chart.js provides you with a complete, interactive Chart that is easy to integrate into your website.

    Attached is a demo program I wrote to illustrate how to use chart.js in LabVIEW NXG. If you like, you are welcome to download and use it.

 

Note: this code is written in NXG5.0. hope you enjoy it😀.

FRONT.jpgDIAGRAM.jpg

    

Message 1 of 3
(3,948 Views)

Hi,impressive work!

       I have learned your way to write content into HTML place holder, but nothing happens, can you give me some suggestion?

 This is the code I put in Javascript:( I had change id to "window')

 

function test()
{
console.log('test of id');
var id = document.getElementById("window");
console.log(id);
id.innerHTML = "java test";

}

0 Kudos
Message 2 of 3
(3,658 Views)

Nice work 😊 !

Could you show an example of to use other chart types like:
Line, bar, column, doughnut and pie? 🙂

 

________________________________________________
"Science is about knowing, while engineering is about doing"
0 Kudos
Message 3 of 3
(3,610 Views)