Code: Select all
lines.splice(0, lines.length-720);
This limits the points on the graph to 720, or 30 days of hourly reports that update hourly.
The problem I'm facing is that the x-axis function that is recommended is for static readings:
Code: Select all
pointStart: Date.UTC(2020, 11, 3),pointInterval: 1 * 3600 * 1000}},
I know that the Date.now function can give a dynamic reading, however I need a Date.now minus 30 days in order for the x-axis titling to line up properly.
I don't know how to do that within the Highcharts API, this is the only results I find online which I dont know how to implement using the API's syntax:
https://stackoverflow.com/questions/113 ... javascript