102

I just saw a person's reputation graph and there were two 6.5ks in the graph. The circled one should actually be 6.4k.

Why are there two 6.5k?!

Is that a bug or something else?

29
  • The "bottom" one? What does that mean? The first chronologically? Feb 12, 2019 at 21:34
  • 11
    @HereticMonkey I mean there is 2 6.5ks and I mean the bottom one is the first one. Feb 12, 2019 at 21:35
  • 39
    It’s probably three equidistant values, all rounded to the nearest 100. For example, if you have 6450, 6500, 6550, they have the same distances between eachother, but are rounded as 6.5k, 6.5k, 6.6k. I don’t think this is a bug. Feb 12, 2019 at 21:37
  • 120
    @Xufox it's still a bug in the sense that the result does not convey useful and intelligible meaning, rounding shenanigans or not. Feb 12, 2019 at 23:03
  • 2
    @FélixGagnon-Grenier one could argue that any of the possible workaround will come with their own drawbacks here: allow more precision here and you'll lose precision on the x axis, change the Y axis ranges and you'll loose precision there. The information is still somehow meaningful: from a glance you can see that top is 6.6 and bottom 6.5, if you want more precise data, there is a tooltip when hovering.
    – Kaiido
    Feb 13, 2019 at 6:57
  • 5
    @apokryfos it could very well still be flooring, [6550-6625] would produce these if floored.
    – Kaiido
    Feb 13, 2019 at 9:02
  • 5
    @Kaiido the problem here is that 3 ticks are being forced. The specific range you mention (which can't really the range in the plot here) can't be drawn with 3 ticks and with 1 decimal place of accuracy, however, it seems that all rep charts have 3 ticks no matter what the figures and the rule for decimal places depends on the number being shown and not the size of the range being used. I'm not saying it's an easy problem but it's a problem that has solutions in various charting software.
    – apokryfos
    Feb 13, 2019 at 9:18
  • 1
    @DavyM that's only true for small values of 5! Feb 13, 2019 at 11:06
  • 5
    I'm agreeing with @FélixGagnon-Grenier because if you would look at the top and middle values on the Y axis only (kind of hard now with the red circle :P ) you would get the wrong idea with regards to scale. Not that I think rep graphs themselves are all that important to me, but a UI bug it is. Feb 14, 2019 at 1:47
  • 5
    cool, a display bug on the y-axis that goes nicely with the display bug on the x-axis
    – Pac0
    Feb 14, 2019 at 9:18
  • 2
    @Xufox It may be "correct" as in expected behaviour given the current implementation, but it's obviously not desired - the graph cannot be interpreted properly by the user. That's a bug. Feb 14, 2019 at 10:52
  • 4
    It seems like the answer is for the graph writing code to not include a third value when it duplicates one of the extreme values. The middle value there does not help the user read and understand the graph better. I don't see a reason the have a middle value at all on a small graph like that.
    – Elin
    Feb 14, 2019 at 12:02
  • 2
    @Elin Just eliding the middle value doesn't solve the problem (it arguably makes the problem worse) because then you have two labels that appear to unambiguously reflect the 6.5k and 6.6k mark but (as described above) apparently do no such thing! Feb 15, 2019 at 1:20
  • 1
    Not only the labels are bad, the grey horizontal bars are bad too. One should label only the points that match the numbers shown. Don’t draw ticks and round the labels. Instead, find rounded labels, then put the ticks where those exact values are reached. If that leads to too few ticks (0 or 1), there needs to be a special case. But usually this won’t be a problem. Good graphing is not hard if you think about the problem a bit. Feb 15, 2019 at 3:42
  • 1
    @CrisLuengo "find rounded labels" I didn't made it. Even if there is only two, you'll have the same issue. For users with hundreds K rep the roundings are bigger, but the change may not be. Now, I agree, not rounding might actually be the best move, while I also understand the ones from the design who told "What? 70px just for Jon's tick's label?" when they decided to go with the "1m" format.
    – Kaiido
    Feb 15, 2019 at 15:08

2 Answers 2

-20

Just to clarify regarding some misconception here:

No, in this period, this shouldn't be 6.4k.

The graphic always has two extremal values (the max and the min for a given period of time), and the middle value is simply being the average of the two.

If on a given period the lower bound was 667 and the upper bound was 777, then the three displayed values would be 667 | 722 | 777.

If on a given period the lower bound was 6500 and the upper bound was 6505, then the three displayed values would be 6.5k | 6.5k | 6.5k.

The misconception was that you may have believed that it was a scale with marks every 100 points, which it is not.

As of how to prevent equal values from being displayed, that could require to adapt the represented period to be a longer one in some circumstances. Or add more significant digits. Or set the graduation to be of at least 200 points between the min and the max.

9
  • 53
    It's not a misconception, it is the standard reading of axes on an XY plot.
    – Elin
    Feb 14, 2019 at 11:59
  • 24
    If it's a misconception it's only because the axis labels are wrong (don't show sufficient precision) Feb 14, 2019 at 12:13
  • 4
    Well if it's actually a scale with marks every 50 points can we increase the decimal presicion to the hundreds place? Feb 14, 2019 at 12:34
  • 1
    @zixuan No we can't increase the precision. The range of possibe values is [1 - 1,086,244+] while the range of minimal change is [0 - 2] (single vals seems to be shown on a single tick) If we had room for a 6 digit precision number, a lot more bug reports would have raised because of the unused space.
    – Kaiido
    Feb 14, 2019 at 13:35
  • 3
    @AndrewMorton An easy way to prevent equal values from being displayed is to just start the scale (and the graph) at 0... but that would make too much sense.
    – TylerH
    Feb 14, 2019 at 15:57
  • 15
    So basically "It's not a bug, it's just a new sample for the next edition of 'How to Lie with Statistics'"?
    – Voo
    Feb 14, 2019 at 19:24
  • 8
    I downvoted you answer because even though you explained how the existing system worked, I disagree with the way it does, and find it confusing
    – Ferrybig
    Feb 14, 2019 at 19:40
  • 11
    @Ferrybig: Why would you downvote an answer for accurately explaining how a system works... because you don't like how the system works? I mean sure, fine, you may not like it. But calling the answer "not useful" because you don't like the information it contains is kind of silly, isn't it? May 30, 2019 at 23:24
  • 1
    @NicolBolas plenty of times, people understand how stuff works, but are deeply disgusted that they work like that (cue politics) and express that via votes. Also, it's a freaking internet post without any repercussion in the real world (like answers on main).
    – Braiam
    May 31, 2019 at 10:52
9

Is that a bug or something else?

The shown labels on the y-axis are three equidistant, rounded values. As such they are likely not a bug in the logic of the plot, but they could be made much more helpful.

Problem is that the rounding is not adapted to the shown range. The shown range of the y-axis is approx. 100-200 rep points, while the rounding is to multiples of 100 rep points. That's bad because it makes the shown values rather useless. The rounded tick values should leave at least one digit more visible to be useful as already suggested in Cœur's answer.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .