Page MenuHomePhabricator

Allow downloading charts as images
Closed, ResolvedPublic

Description

Some users might want to download the charts on the statistics page (https://hashtags.wmflabs.org/graph/?query=test) as images, so we should allow this. Each graph shown to users should, under the Download CSV button, have a Download Image button which downloads that chart as a jpg file with an appropriate file name.

Additionally, a test should be written which confirms this behaviour downloads a file as expected. Testing the contents of that file may be hard, so confirming the download of a file is sufficient.

The guide at https://www.codeproject.com/Tips/1120045/Export-Chart-js-Charts-as-Image may be helpful.

Event Timeline

Urbanecm subscribed.

This needs to be expanded, and more information provided, so each student knows what is necessary in order to complete this task. T230935 is one of tasks having good description, you can inspire there.

@AdityaJ Since you added the Google Code-in tag, do you plan to mentor this task?

Yes @Urbanecm , I plan to mentor it.
Sure! I will update the task description. Thanks :)

Yes @Urbanecm , I plan to mentor it.
Sure! I will update the task description. Thanks :)

Great! I've just sent you an invite to the Google Code-In mentor interface. We'll soon send an informational e-mail, but the most important bits are already outlined at https://www.mediawiki.org/wiki/Google_Code-in/Mentors. You can direct any questions at Wikimedia org admins, who can be contacted via google-code-in-admins@lists.wikimedia.org. Thanks for mentoring! PS: I've already imported all Phabricator tasks into GCI interface, You might need to uncheck "my tasks" at the bottom of tasks list in the GCI interface in order to see them. Feel free to review the ones in your area of expertise, and assign yourself as a mentor to them.

Samwalton9-WMF updated the task description. (Show Details)
Samwalton9-WMF updated the task description. (Show Details)

@Urbanecm I've updated the task description - is that sufficient?

LGTM @Samwalton9. Thanks! Feel free to import the task into codein.withgoogle.com!

Thanks! Published!

st 27. 11. 2019 v 11:36 odesílatel Samwalton9 <
no-reply@phabricator.wikimedia.org> napsal:

Samwalton9 added a comment. View Task
https://phabricator.wikimedia.org/T234678

https://codein.withgoogle.com/dashboard/tasks/4654461918642176/ :)

*TASK DETAIL*
https://phabricator.wikimedia.org/T234678

*EMAIL PREFERENCES*
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

*STAMPS*
actor(@Samwalton9) application(Maniphest) author(@AdityaJ) herald(H293)
monogram(T234678) object-type(TASK) phid(PHID-TASK-cykj6z2542kbr527hmlc)
space(S1) subscriber(@AdityaJ) subscriber(@Samwalton9)
subscriber(@Urbanecm) subtype(default) tag(Google-Code-in-2019)
tag(Hashtags) task-priority(50) task-status(open) task-unassigned()
via(web)

*To: *Samwalton9
*Cc: *Samwalton9, Urbanecm, AdityaJ, Pavithraes, PrakharGurunani,
ParthS007, Zylc, 1978Gage2001, Jayprakash12345, Chicocvenancio, Tbscho,
JJMC89, srodlund, Jitrixis, Gryllida, scfc, Mbch331, Krenair

AdityaJ claimed this task.