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.88k stars 2.65k forks source link

Static PNG Graphs : support for multiple axes #3793

Open julienmoumne opened 11 years ago

julienmoumne commented 11 years ago

The main idea is to plot whole number metrics (such as number of conversions) and rate metrics (such as conversion rate) on 2 different axes, see Conversions and Conversion Rate on different axes.

Rate metrics should be visually identifiable using the % symbol and rounded to the nearest whole number.

Implementation

Since 3013 it is possible to specify which metrics should be plotted with the columns parameter.

Here is how multiple axes should be handled at the API level :

Metrics can be identified using their name as rate metrics should always contain the term 'rate' : strpos($name, '_rate'), probably refactored in Piwik::isMetricPercentage().

Requires #3831 for automatic inclusion of multiple axes in scheduled reports.

julienmoumne commented 11 years ago

Attachment: Conversions and Conversion Rate on different axes multiple-axes.png

julienmoumne commented 11 years ago

Linking example image

julienmoumne commented 11 years ago

Scheduled reports & Piwik Mobile would automatically feature multiple axes once #3831 is fixed.