canvasjs-dashboard-samples/assets/web-analytics/real-time.js
// populate "Page Views Per Second" and "Page Views Per Minute" charts with initial data

populate "Page Views Per Second" and "Page Views Per Minute" charts with initial data
populate " Page Views Per Second " and " Page Views Per Minute " charts with initial data
function populatePageViewsCharts() {
		var time1, time2;
		for (var i = 0; i < 60; i++) {
			time1 = new Date((new Date).getTime() - ((59 - i) * 1000)); 
			time1.setMilliseconds(0);
			time2 = new Date((new Date).getTime() - ((59 - i) * 60 * 1000)); 
			time2.setSeconds(0);
			pageViewsPerSecondDataPoints.push({ x: time1, y: initialDataPageViewsPerSecond[i] });
			pageViewsPerMinuteDataPoints.push({ x: time2, y: initialDataPageViewsPerMinute[i] });
		}
		pageViewsPerSecondColumnChart.render();
		pageViewsPerMinuteColumnChart.render();	
	}
function populatePageViewsCharts ( ) { var time1 , time2 ; for ( var i = 0 ; i < 60 ; i ++ ) { time1 = new Date ( ( new Date ) . getTime ( ) - ( ( 59 - i ) * 1000 ) ) ; time1 . setMilliseconds ( 0 ) ; time2 = new Date ( ( new Date ) . getTime ( ) - ( ( 59 - i ) * 60 * 1000 ) ) ; time2 . setSeconds ( 0 ) ; pageViewsPerSecondDataPoints . push ( { x : time1 , y : initialDataPageViewsPerSecond [ i ] } ) ; pageViewsPerMinuteDataPoints . push ( { x : time2 , y : initialDataPageViewsPerMinute [ i ] } ) ; } pageViewsPerSecondColumnChart . render ( ) ; pageViewsPerMinuteColumnChart . render ( ) ; }
populate "Page Views Per Second" and "Page Views Per Minute" charts with initial data
populate " Page Views Per Second " and " Page Views Per Minute " charts with initial data
// for pageViewsPerSecond chart 
 // for pageViewsPerMinute chart
