roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Make today dotter line in chart optional or fix it

Open adriaandotcom opened this issue 4 years ago • 9 comments

Some customers don't like the today part. We should make this optional and just hide the while today thing when disabled.

@RubenvanEldik via Twitter DM

adriaandotcom avatar Jan 05 '21 11:01 adriaandotcom

Thank you for taking it up!

My main issue with the dotted line right now is that it goes to 0 for all future hours. This looks a bit weird and makes reading the number of visitors in the current hour quite hard. The dotted line might be fine if it just stopped at the current hour, instead of going to 0.

This also makes more sense since you're using an area-graph, and there is now also some colored area below the current hour and hour+1, which is technically incorrect. 🙃

RubenVanEldik avatar Jan 05 '21 12:01 RubenVanEldik

So it's showing you the next hour? That's a bug! Let's fix that.

adriaandotcom avatar Jan 05 '21 12:01 adriaandotcom

Well, this is only a problem in the day view. It shows all hours of the day, which is fine, but the line going back to 0 makes it seem a bit abrupt.

IMG_3F345696289A-1

RubenVanEldik avatar Jan 05 '21 13:01 RubenVanEldik

What would expect in this daily view situation @RubenVanEldik?

adriaandotcom avatar Jan 24 '21 09:01 adriaandotcom

The problem is that the dotted line goes to 0 for all future hours. This makes it especially hard to read if the number of view for the current hour are roughly half of last hour, since it looks like the dotted line goes in a linear line to 0. (while in reality it goes from 600 last hour to 300 this hour to 0 next hour.

I can think of 3 solutions:

  1. Use a bar chart. The number of visitors per hour are often not very related from one hour to the next (except if you have a big spike due to HN/Twitter etc.). Since there isn't really a trend it makes a bit more sense to use a bar chart.

  2. Make the line from n-1 to n dotted and remove the line for n to >n.

103649063-215a0580-4f5e-11eb-8e83-4bf510adb901

  1. Make the dotted line move forward at the same rate of the current hour. This kind of shows what would happen if the site keeps the same pace as the current hour and makes it even easier to see the number of views for the current hour. (this is an interesting approach, though I think it might lead to confusion for some users).

103649063-215a0580-4f5e-11eb-8e83-4bf510adb901

RubenVanEldik avatar Jan 26 '21 00:01 RubenVanEldik

My preference is for option 1, since its technically the best way to show a non-trend dataset.

RubenVanEldik avatar Jan 26 '21 00:01 RubenVanEldik

Thanks! The bar chart will have "empty" hours as well, right?

adriaandotcom avatar Jan 26 '21 07:01 adriaandotcom

Yes, probably a striped/different colour/semi-transparant bar for the current hour and no bars for all future hours.

RubenVanEldik avatar Jan 26 '21 07:01 RubenVanEldik

Not sure if it is possible but I think a nice thing to do would be to show a dot for the current hour value and have a pulse effect on it to show its “live” count (can mock something up later)

amritnagi avatar Jan 01 '22 08:01 amritnagi