Re: best practices for handling charts

2017-05-25 Thread Melvyn Sopacua
On Tuesday 23 May 2017 06:25:16 Alceu Rodrigues de Freitas Junior wrote: > (which will > require that I use crontab or something like it to delete old files). Which is a one-liner: find /var/www/generated-graphs -mtime 14 -delete # delete 2- week old files Some solutions are easier then the pro

Re: best practices for handling charts

2017-05-23 Thread Fred Stluka
Alceu, I agree that a client side API makes sense in this case.  Solves the whole question of temp files.  You may want to look into the Google Chart API.  It's a REST service, where you pass the data to be graphed, the style of graph desired (line, bar, pie,

Re: best practices for handling charts

2017-05-23 Thread Alceu Rodrigues de Freitas Junior
Thanks for answering James, I commented your e-mail below: Em 23/05/2017 12:06, James Schneider escreveu: On May 23, 2017 6:33 AM, "Alceu Rodrigues de Freitas Junior" mailto:alceu.freitas...@gmail.com>> wrote: Hello to all, I have some charts created with matplotlib and I would li

Re: best practices for handling charts

2017-05-23 Thread James Schneider
On May 23, 2017 6:33 AM, "Alceu Rodrigues de Freitas Junior" < alceu.freitas...@gmail.com> wrote: Hello to all, I have some charts created with matplotlib and I would like to include them in my Django application. What is the considered best practices in order to do that? I'm considering proces

best practices for handling charts

2017-05-23 Thread Alceu Rodrigues de Freitas Junior
Hello to all, I have some charts created with matplotlib and I would like to include them in my Django application. What is the considered best practices in order to do that? I'm considering processing the data and generating PNG files in "temporary" locations, so I when the chart file is crea