MITLibraries / oastats-ui

The User Interface for the MIT Libraries Open Access Statistics Project
0 stars 2 forks source link

Map maximum value can be off by one #107

Closed matt-bernhardt closed 8 years ago

matt-bernhardt commented 10 years ago

In some conditions, the maximum value in the map's data table can be one higher than the maximum allowed for in the key. See below: map maximum In these cases, the color is still applied correctly - but it looks odd. I believe the problem is due to rounding the top value in a range down in all cases. I.e. quintile ranges are always rounded down (max value) or up (min value) so that the gaps between ranges are always different. At the top of the maximum range, however, if the value is say 845.9 the range will round down to 845 but the display will round up to 846.