I can retreive some measures from my database.
Actually, I am retrieving temperature for Y axe and date/time for the X axe.
I found tree tools:
Which one would you recommend me with Django? (and easy to print the chart in my templates)
I looked some example with Matplotlib and I will first try with it. But apparently Matplotlib generates graphic into images. Does Bokeh and Seaborn does the same?
Would you have some tutorial with Matplotlib for Gjango?
Would you have another tips & hints for Bokeh and Seaborn?
Actually, when we’re presenting graphical information on a page, we use either chartjs or D3js. We don’t find it necessary to create the images on the server and then send those images.
(Well, technically, I do have an exception for that - I have one specific case where I create images on the server, but that’s because I’m creating a pdf on the server and the images get included in it.)
Thank to coming back to questions :). It’s nice from you
We don’t find it necessary to create the images on the server and then send those images.
I was a bit suprised and I am not favorable to develop a script to show an image and another image each time the visitor refresh the page, as the measures are updated each 15 seconds by sensors. I have up to 20 sensors, so creating images seems to be hard to manage.
As I do not know Matplotlib, Bokeh and Seaborn, I will investigate a bit more in order to see if there is a suitable solution (whithout generating image) otherwise, I am going to use Chartsjs as well.
All the server is responsible for is sending the updated data.
I’m a little confused by the statement:
Something needs to create the image. It’s either going to be done on the server (using something like Matplotlib) or it’s going to be done in the browser (Chart.js).
Those are your two options, I’m not sure I understand what you’re thinking your third choice might be.
As I have no experience with those libraries, I was wondering if there would have another solution. But as Python is program running on the server, and not on the client browser, I do not know what they can do better than Chartjs