Opened 6 weeks ago

Last modified 4 weeks ago

#28304 new enhancement

Please deliver png when svg is filtered

Reported by: traumschule Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Relay Search Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Hi metrics team!

With #19654 the relay search shows

Graphs cannot be shown as your browser does not support Scalable Vector Graphics (SVG). This is the case when Tor Browser is in High Security mode.

This is very useful. However i'd like to download a png of the graph, or just csv/xml/json in that case.

On a sidenote the graph shows "No data available" while data is loading which can be confusing, ie. it's not clear with a slow connection if the graph will show up later or not - would "data is loading .." make sense? Hesitating to open another ticket about this because it looks like #25264.
Thought it could help to show captions (or similar) to indicate what kind of data isn't available.

Let me know if you prefer a separate issue for the latter. Thanks for your work!

Child Tickets

Attachments (1)

metrics-graph.png (161.1 KB) - added by traumschule 6 weeks ago.
"No Data Available" without description what kind of data. "Save Graph" links rs.html and could be hidden.

Download all attachments as: .zip

Change History (2)

Changed 6 weeks ago by traumschule

Attachment: metrics-graph.png added

"No Data Available" without description what kind of data. "Save Graph" links rs.html and could be hidden.

comment:1 Changed 4 weeks ago by irl

The data exists as JSON data. We could potentially turn that data into a CSV using JavaScript and make it available for download in the same way that we do for SVGs but I think there is not much demand for this. I would review a patch if you came up with one.

It shows while loading because currently it is set up to assume that it's failed, and then replace the failure message when it's successful. A loading message that turns into a graph or a failure message would be better. I think that part could be addressed later when we revisit the whole way that graphs are drawn. It's just not very clever at the moment.

Note: See TracTickets for help on using tickets.