openskope / skope-interface

The new SKOPE web portal interface.
https://www.openskope.org
4 stars 2 forks source link

Chart download should include graph image #159

Closed jterstriep closed 6 years ago

jterstriep commented 6 years ago

The zip file should include the current graph as an image in png, jpeg, or pdf format.

These would be web resolution vs print resolution for use within powerpoints, etc.

Zodiase commented 6 years ago

Is the requirement to add one more file containing the graph in a raster image format, in addition to the existing SVG file?

Is the requirement to have multiple files for the same graph in different resolutions?

Zodiase commented 6 years ago

Also this likely requires switching to a canvas based graph renderer, or at least it would be much easier.

Zodiase commented 6 years ago

Also since the download bundle already contains the graph in SVG, with which the user can "print"/rasterize to a png with any resolution. So why? Are there any SVG viewers that can't save/export the svg into a raster image?

kintigh commented 6 years ago

Lots of graphs software people use won't read svg. THis includes Word and Powerpoint to name only 2. Pretty much anything will deal with jpg, png, gif as far as I can see. Ithink we should give people useable formats for print and web/screen resolution.

tmcphillips commented 6 years ago

I agree that SVG files are pretty hard to deal with generally.

And there are graphing libraries that make it easy to save bitmap images straight from the graph. See the Plotly graph of a time series at the very end of this Jupyter notebook (look for the camera icon just above the graph when you hover over it):

http://nbviewer.jupyter.org/github/openskope/skope-notebooks/blob/master/Exercise_timeseries_service.ipynb

Also note the range slider works pretty well (try click-drag on the graph or on the range slider), once you get used to it.

kintigh commented 6 years ago

Image should include a SKOPE logo somewhere.

Zodiase commented 6 years ago

Resolved by 15d7aeb345db5a60c3a82dffd54fd52fd5a3eff4.

SKOPE branding on the graphs is addressed by #158.