Page MenuHomePhabricator

Provide pan and zoom options on Special:ContentTranslationStats
Open, MediumPublic

Description

We are using Chartjs(http://www.chartjs.org/) for the graphs, and now it has pan and zoom features with the help of Chart.Zoom.js plugin. Our graphs have lots of data now and hard to fit in screen width. Pan and Zoom was initial designs, but we skipped it because at that time Chart.js did not had that features.

Event Timeline

Amire80 triaged this task as Medium priority.Jun 19 2016, 11:03 AM
Amire80 added a project: OKR-Work.
Amire80 moved this task from Needs Triage to Bugs on the ContentTranslation board.
Amire80 moved this task from Bugs to Long term on the ContentTranslation board.

https://gerrit.wikimedia.org/r/#/c/306874/ upgraded chartjs to 2.2.1 version and the scales get dynamically get ajusted with the amount of data. Still pan and zoom is not present

http://jsfiddle.net/jmpxgufu/ shows an example of horizontally scrollable chart with Chartjs

http://jsfiddle.net/jmpxgufu/ shows an example of horizontally scrollable chart with Chartjs

The Y-axis seems broken, I get phantom numbers overlaid.

Why not just switch to per month view by default? Would be faster too.

Change 500866 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] CXStats: Upgrade chartjs, add zoom, panning options

https://gerrit.wikimedia.org/r/500866

Change 500866 abandoned by Santhosh:
CXStats: Upgrade chartjs, add zoom, panning options

Reason:
Not planning do procede with this change

https://gerrit.wikimedia.org/r/500866

nshahquinn-wmf renamed this task from CXStats: Provide pan and zoom options to Provide pan and zoom options on Special:ContentTranslationStats.Jul 28 2021, 9:04 PM