Add icon "save as image PNG" below all graphs
|Reported by:||matt||Owned by:|
|Priority:||major||Milestone:||Piwik 0.9.9 - Stable release|
|Component:||UI - UX (AngularJS, twig, less)||Keywords:|
When we update to OFC v2 (see #322) there is a new feature that we will want to use: export the graph as PNG.
Below evolution graph we could show the export as image icon behind the + icon.
Below all other tables, when the data is shown as a graph (pie and bar), we could add a new icon behind the + that would save the graph as an image.
We have two options as to how the graph is generated:
- either server side
- locally on the user's browser
I'm not sure if we choose one option and leave the user to decide. What are the use cases for this? Would users download the graph to paste in their word document or report, or would they use the graph to include on their webpage?
In the case we generate graph on the server side and save it, for example, in tmp/graphs/ problem could arise if the user includes the graph <img src=piwik/tmp/graphs/X.png"> and then delete the tmp folder, all graphs would be broken.
It seems safer to force the user to download the graphs on their computer and do their own choice (reupload it if necessary?).