distantnative / retour-for-kirby

Kirby CMS plugin to manage redirects and track 404s right from the Panel
https://distantnative.com/retour-for-kirby/
MIT License
135 stars 15 forks source link

Timeline visualisation #227

Closed nilshoerrmann closed 3 years ago

nilshoerrmann commented 3 years ago

What aspect in Retour bothers you and why?

Looking at the timeline makes me think that all issues have been resolved because the graph goes down to zero on the x axis: Bildschirmfoto am 2021-02-24 um 12 59 14

How would you improve it?

Cutting of at the current point in time would make the actual stats clearer: grafik

How would this make Retour better?

The stats would be more accurate :)

nilshoerrmann commented 3 years ago

Maybe using a bar chart instead of a graph would be more true to the given data?

distantnative commented 3 years ago

I'll have to think about this for a while. Doesn't convince me immediately to not show data from the ongoing timeframe. And I think many are used to this visualization as it is used by Google Analytics and others... but I might change my mind when I think about this more.

nilshoerrmann commented 3 years ago

Doesn't convince me immediately to not show data from the ongoing timeframe.

That might be a misunderstanding from my quick mockup. My point was that it's a bit confusing to see the graph fall to zero for the next month (or day, or year – depending on the set context). This makes it look as if there was a peek but everything has been resolved by now (it's down to zero again) which is not correct because the peek is happening right now.

And I think many are used to this visualization as it is used by Google Analytics and others...

I'm not a Google Analytics user so you might have a point here.

distantnative commented 3 years ago

Ok, I understood you now. This is hard since the chart library doesn't seem to support something like "draw (smooth) lines up until this data point, after that just drop to the next value (0)"

nilshoerrmann commented 3 years ago

Maybe this library might be interesting: https://chartscss.org/

distantnative commented 3 years ago

That looks great at a first look. Will give it a spin!

distantnative commented 3 years ago

Oh never mind it's 72kb - that's quite big

nilshoerrmann commented 3 years ago

Uh, I hadn't checked that!

distantnative commented 3 years ago

But it gave me ideas to try something else

distantnative commented 3 years ago

I think I am getting closer to a solution where it just cuts off the graph at today (this month/this year...)

Screen Shot 2021-03-24 at 12 05 23
nilshoerrmann commented 3 years ago

That's a great direction because it emphasises the current stats. Thanks for working on the visualisation 👍

distantnative commented 3 years ago

✅ in 4.0.0-beta.1