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.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
CXStats: Upgrade chartjs, add zoom, panning options | mediawiki/extensions/ContentTranslation | master | +14 K -9 K |
Event Timeline
Comment Actions
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
Comment Actions
http://jsfiddle.net/jmpxgufu/ shows an example of horizontally scrollable chart with Chartjs
Comment Actions
The Y-axis seems broken, I get phantom numbers overlaid.
Why not just switch to per month view by default? Would be faster too.
Comment Actions
Change 500866 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] CXStats: Upgrade chartjs, add zoom, panning options
Comment Actions
Change 500866 abandoned by Santhosh:
CXStats: Upgrade chartjs, add zoom, panning options
Reason:
Not planning do procede with this change