NetBurner 3.5.0
PDF Version
 
Ajax Graph

This example demonstrates the code to create a webpage with a dynamic graph, generated by data from the NetBurner device. Specifically, it has been designed to imitate the data formats found in log files, where ordering and frequency are varied between data sources.

The vast majority of the example is simply the support code needed to generate the random data. This code is located in the other support files. The locations that actually are relevant to the AJAX portion of the example are: main.cpp: getSensorData() DumpLogData()

ticks.html: <!--FUNCTIONCALL getHTMLTicks -->

data.html: <!--CPPCALL getSensorData() -->

index.html: Basically, all the Javascript.