@holtwick opened this Issue on June 15th 2020

My website increased traffic from about 100 visits to a few thousands. The percentage dropped down to a low number (3%) where instead it should show be above 1000%. Interestingly when sorting by evolution the order is correct, therefore I guess it is probably a display issue.

CleanShot 2020-06-15 at 10 53 10<a class='mention' href='https://github.com/2x'>@2x</a>

CleanShot 2020-06-15 at 10 58 50<a class='mention' href='https://github.com/2x'>@2x</a>
@sgiehl commented on June 15th 2020 Member

@holtwick Thanks for creating this issue. I've just tried to reproduce that locally by generating some local test data. Seems that happens as soon as the percentage exceeds 1000. We need to investigate that further.

@sgiehl commented on July 23rd 2020 Member

The problem seems to be, that numbers are all returned formatted and in JavaScript they are tried to parse to Integer, which has incorrect results for a string like 1,235.2%. The tooltip for the totals also show an incorrect percentage. In addition parsing numbers in languages that don't use a normal dash as indicator for negativ numbers might result in a complete fail...

Powered by GitHub Issue Mirror