Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable logarithmic scale in evolution charts #3661

Open
gka opened this issue Jan 11, 2013 · 3 comments
Open

Enable logarithmic scale in evolution charts #3661

gka opened this issue Jan 11, 2013 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@gka
Copy link
Contributor

gka commented Jan 11, 2013

If a site experiences exceptional traffic peaks, it would make a lot sense to change the linear y-scale to a logarithmic scale.

For instance, consider the following pattern (data taken from a real website). The linear scale does a good job in giving a sense of the magnitude of the peak, but the patterns in the regular traffic are not perceivable anymore.

[[Image(http://vis4.net/tmp/linear-scale.png)]]

The next picture shows the same data on a log scale, which gives additional insight. We can see how the traffic decreases in two weeks after the peak and then it slightly increases again over the next four weeks.

[[Image(http://vis4.net/tmp/logarithmic-scale.png)]]

I know that this is a feature for pro data analysis, and thus the UI doesn't need to be super flashy. Most users don't need this, so we don't want to put it in their way. I recommend to use shift-clicking on the y-axis labels to toggle between linear and logarithmic scale.

@gka
Copy link
Contributor Author

gka commented Jan 11, 2013

Here's another example taken from my website: I had a peak in visitors coming from one region in Germany. When I compare the regions using row evolution, the linear scale makes it impossible to compare the 'regular' traffic between regions. A log-scale would reveal more insights.

[[Image(http://vis4.net/tmp/comparing-regions.png)]]

Again, here's the same data shown in a log-scale:

[[Image(http://vis4.net/tmp/comparing-log.png)]]

@mattab
Copy link
Member

mattab commented Jan 12, 2013

Good idea, this could be an option available in the "Cog icon" for evolution graphs. We could also add a link to use the special view when a peak is detected in the graph (eg. more than 0.9 percentile). See: #3110

@halfdan
Copy link
Member

halfdan commented Feb 7, 2013

This should be relatively easy to implement, since there is a plugin for jqPlot: http://www.jqplot.com/docs/files/plugins/jqplot-logAxisRenderer-js.html

I'll prepare a pull request.

@gka gka added this to the Future releases milestone Jul 8, 2014
@mattab mattab removed the P: normal label Aug 3, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants