I'm reading data from a constantly updated text file, roughly around every 0.5-1 second. Currently I have it worked out by using the refresh header in my PHP script, and I'm using jpgraph library to generate the graph. However the problem is that the graph is rather large, around 1500x900, and so the image ends up taking the entire refresh time to reload.
I was wondering if there is some other way that lets the graph be generated without having to send so much data to the client using jpgraph? I assume that I might be using the library wrong.
Or should I just use a client side graph charter and give access to the text file on the server to the client side?
It would make more sense to use javascript to fetch the the graph data in JSON format, while using a client side chart like Google Charts - it's awesome, try it.
https://developers.google.com/chart/