matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.83k stars 2.64k forks source link

Graph: use smaller maximum Y Axis value when possible #5216

Open anonymous-matomo-user opened 10 years ago

anonymous-matomo-user commented 10 years ago

Please look to one example of in efficient calculation of graph maximum value. In this particular case maximum value of plotted metric (avg. generation time) is 0.72 where maximum of graph is 2. I would say that is safe to scale maximum value with 1.0 to 1.1 and assume this as maximum value for graph. Of course on graphs with multiple metric plotted this is harder task. I think that on forum there has been proposal to introduce secondary axis to solve such kind of problems.

http://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=7&period=day&date=yesterday#/module=VisitsSummary&action=index&idSite=7&period=day&date=yesterday

mattab commented 10 years ago

Thanks for the suggestion!