Parameter:
dataSource -- In JSON format as specified in addData
liveLoadCallback -- Callback function to be executed on completion of data loading
duration -- duration of data loading time in milliseconds
Loads data to the controller periodically. Usage:
var url = "dynamicallyAPI/data";
// Load data from the url with liveLoad() API.
// Set callback
// Specify loading time
controller.liveLoad( url, liveLoadCallback, 50000 );
function liveLoadCallback () {
console.log("Load data event happens.");
}
// use closeLiveLoader API to close live load function
// controller.closeLiveLoader();
// Load data from the url with liveLoad() API.
// Set callback
// Specify loading time
controller.liveLoad( url, liveLoadCallback, 50000 );
function liveLoadCallback () {
console.log("Load data event happens.");
}
// use closeLiveLoader API to close live load function
// controller.closeLiveLoader();