examples/graph-webpage/js/main.js
function UpdateChartData()
{
    while(Points > 10)
    {
        Points -= 1;

        myLineChart.removeData();
    }

    myLineChart.addData([Data["Temperature"]], Math.floor((Date.now() - StartTime) / 1000.0));
    myLineChart.update();
    Points+=1;
}
function UpdateChartData()
{
    while(Points > 10)
    {
        Points -= 1;

        myLineChart.removeData();
    }

    myLineChart.addData([Data["Temperature"]], Math.floor((Date.now() - StartTime) / 1000.0));
    myLineChart.update();
    Points+=1;
}
function UpdateChartData ( ) { while ( Points > 10 ) { Points -= 1 ; myLineChart . removeData ( ) ; } myLineChart . addData ( [ Data [ "Temperature" ] ] , Math . floor ( ( Date . now ( ) - StartTime ) / 1000.0 ) ) ; myLineChart . update ( ) ; Points += 1 ; }
update the chart function
update the chart function