src/main/resources/static/js/controllers/applicationController.js
/**
             * Add a new datapoint to the graph
             */
Add a new datapoint to the graph
Add a new datapoint to the graph
function addDataPoint() {
                var now = vis.moment();
                dataset.add({
                    x: now,
                    y: y(now / 1000)
                });
                setTimeout(addDataPoint, DELAY);
            }
function addDataPoint ( ) { var now = vis . moment ( ) ; dataset . add ( { x : now , y : y ( now / 1000 ) } ) ; setTimeout ( addDataPoint , DELAY ) ; }
Add a new datapoint to the graph
Add a new datapoint to the graph
// add a new data point to the dataset // remove all data points which are no longer visible //var range = graph2d.getWindow(); //var interval = range.end - range.start; ////var oldIds = dataset.getIds({ ////    filter: function (item) { ////        return item.x < range.start - interval; ////    } ////}); ////dataset.remove(oldIds);