@julienmoumne opened this Issue on March 4th 2013 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 commented on March 4th 2013 Member

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

@julienmoumne commented on March 4th 2013 Member

Linking example image

@julienmoumne commented on March 19th 2013 Member

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

Powered by GitHub Issue Mirror