digitaldutch / roaddanger.org

A website and database for news reports about traffic crashes around the world.
https://www.roaddanger.org/
MIT License
12 stars 3 forks source link

Number reported in "Tegenpartij bij ongelukken" differs in tooltip and matrix #10

Closed b-a0 closed 8 months ago

b-a0 commented 8 months ago

Steps to reproduce:

  1. Visit https://nl.roaddanger.org/
  2. Via the hamburger menu go to "Tegenpartij bij ongelukken"
  3. Ensure the filters are in effect as shown in the screenshot.
  4. Hover over the bicycle number (210 at time of writing): image

The hover shows 213 deaths, while the matrix shows 210. Similarly this happens with the eenzijdig x autododen:

image

digitaldutch commented 8 months ago

You got a sharp eye. It is fixed in the latest version.

The reason for the difference is that the number in the circle was rounded, while the tooltip shows the exact number. The reason for this is that long numbers don't fit in the circle. The goal is to make larger number like 12345 show up as 12.3K.

The tooltip now shows the same rounded number.