Making WordPress.org

Opened 6 years ago

Closed 6 years ago

#3969 closed defect (bug) (fixed)

The width of ACTIVE VERSIONS chart in Plugin Stats is half

Reported by: ishitaka's profile ishitaka Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Plugin Directory Keywords: has-patch
Cc:

Description

If the total percentage exceeds 100, the width of the chart is half.

Attachments (3)

plugin-stats-active-versions.png (7.3 KB) - added by ishitaka 6 years ago.
3969.patch (918 bytes) - added by ishitaka 6 years ago.
plugin-stats-active-versions-2.png (59.4 KB) - added by ishitaka 6 years ago.
Add example

Download all attachments as: .zip

Change History (6)

@ishitaka
6 years ago

#1 @Otto42
6 years ago

Why would the percentage exceed 100?

Please provide a link so that we can see where the data has gone astray instead of simply munging the chart.

#2 @ishitaka
6 years ago

It may be 100.01.

Example:

https://api.wordpress.org/stats/plugin/1.0/?slug=classic-editor

33.18 + 66.58 + 0.25 = 100.01

@ishitaka
6 years ago

Add example

#3 @dd32
6 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 8045:

Plugin Directory: Stats: Ensure that the Usage stats add up to 100.00.

Sometimes due to rounding the sum of the usage stats end up at 100.01 or 99.99 which throw out the graphs.
Due to the rare occurences and generalness of these numbers, we'll fix this by adjusting one of the numbers slightly.

Fixes #3969.

Note: See TracTickets for help on using tickets.