WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 3 years ago

#3969 closed defect (fixed)

The width of ACTIVE VERSIONS chart in Plugin Stats is half

Reported by: ishitaka Owned by: 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 3 years ago.
3969.patch (918 bytes) - added by ishitaka 3 years ago.
plugin-stats-active-versions-2.png (59.4 KB) - added by ishitaka 3 years ago.
Add example

Download all attachments as: .zip

Change History (6)

@ishitaka
3 years ago

#1 @Otto42
3 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
3 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
3 years ago

Add example

#3 @dd32
3 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.