Skip to content

Instantly share code, notes, and snippets.

@Avotrix
Created June 17, 2020 23:11
Show Gist options
  • Save Avotrix/7303bffd417bd1bd6161c46c1cc8ca3d to your computer and use it in GitHub Desktop.
Save Avotrix/7303bffd417bd1bd6161c46c1cc8ca3d to your computer and use it in GitHub Desktop.
airqualitycheck7
//console.log(this.responseText);
if(chartT.series[0].data.length > 40) {
chartT.series[0].addPoint([x, y], true, true, true);
} else {
chartT.series[0].addPoint([x, y], true, false, true) } } };
xhttp.open("GET", "/sensorvalue", true);
xhttp.send(); }, 2000 ) ;
</script>
</html>)rawliteral";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment