JCAlgTest icon indicating copy to clipboard operation
JCAlgTest copied to clipboard

Capture and save graphs into static png files

Open petrs opened this issue 8 years ago • 6 comments

replace dynamic generation of graphs by google by static png files (generate->capture->dispaly static png)

petrs avatar Dec 29 '15 14:12 petrs

@petrs why are .png files important? Because of page loading time? This can be solved by "dynamic loading of graphs" - graph will be loaded in that moment when user will scroll through page and graph will be shown in view area of browser (using JavaScript). Then the loading time will be < 0.5 sec.

rudky4 avatar Dec 29 '15 14:12 rudky4

@rudky4 because we are then dependent on external service for generation of pictures and page cannot be saved for offline use.

petrs avatar Dec 29 '15 14:12 petrs

@petrs GoogleChartAPI allows to generate png content, so we can first time generate page, save it and then upload png version to our server or use it offline.

rudky4 avatar Dec 29 '15 14:12 rudky4

@rudky4 great, that is exactly what we need (I guess)

petrs avatar Dec 29 '15 14:12 petrs

@rudky4 hi, this feature was not implemented at the end, right? Or is there some command / menu option for chrome/firefox to do so? Thank you

petrs avatar May 20 '19 14:05 petrs

@petrs hi, special functionality/option for PNG download is not implemented. Google Charts can be shown as PNG by simple code edit: https://developers.google.com/chart/interactive/docs/printing

Still, you have to download pictures one-by-one or entire page (Ctrl+S).

rudky4 avatar May 20 '19 15:05 rudky4