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

Static PNG Graphs : support for multiple axes #3793

Open
julienmoumne opened this issue Mar 4, 2013 · 3 comments
Open

Static PNG Graphs : support for multiple axes #3793

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

Comments

@julienmoumne
Copy link
Member

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 :

  • if $columns=wholeNumberMetric,rateMetric : plot 2 axes, left for wholeNumberMetric on the left, rateMetric on the right
  • if $columns=wholeNumberMetric1,wholeNumberMetric2 : plot 1 axe on the left with both metrics
  • if $columns=wholeNumberMetric,rateMetric1,rateMetric2 : plot 2 axes, wholeNumberMetric on the left, both rate metrics on the right
  • if $columns=rateMetric1,rateMetric2 : plot 1 axe on the left with both metrics

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
Copy link
Member Author

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

@julienmoumne
Copy link
Member Author

Linking example image

@julienmoumne
Copy link
Member Author

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

@julienmoumne julienmoumne added this to the Future releases milestone Jul 8, 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

2 participants