Currently I have a data file in the dropbox that is uploaded every 15 seconds, I want to take this data, in which There are many different data types, and graph the real-time data that the user chooses on the website. I have a data server but my data is not there, is there any way I can take this data from the file and also graph the graph with any control panel?
You can refresh your webpage using Ajax, note that if you refresh every 15 Determined in seconds and your data comes every 15 seconds, the worst case scenario is that you will show the data which will be approximately 30 seconds if the data update time and Ajax refresh is unfortunate.
You probably want to check out new data using Ajax, based on your specific requirements, on the server side, cache the results of Ajax updates to avoid too many duplicate processing.
To create the data that you return from the Ajax query, open and process the data file. No need for MySQL You can use the timestamp of the file to invalidate the recommended result cache in the previous paragraph.
There are many JavaScript-based charting libraries that can update via Ajax. Here's a good starting point:
Comments
Post a Comment