[Dashboard] Add a few values to the charts' time scale

In the charts, the time scale is not homogeneous enough; for example there is a large gap between 1h and 24h. « 1h, 24h, 7d, 30d, 3m, 1y », that results in gaps of x24 x7 x4 x3 x4. We should at least add a « 4 hours », I think. And maybe also a

I’m copying Pierre-Gilles’s reaction:
Why not, but then with the second proposal do we lose the last hour? I’m really not opposed to changing it, but we need to gather the needs of the other Gladys users. OK to start the discussion on a specific topic.

So what is your final proposal for the interval?

Can you do a small frontend test by modifying Gladys’s HTML directly in your browser and sharing a screenshot?

I suggest this :

2 Likes

Why 4 a.m. and not 6 a.m.? To view the current morning, for example.

I look at my chart at 12 p.m., and I can see up to 6 a.m.

For the 3-day view, why not.

I’ll let the community speak :slight_smile:

For me, the only missing interval is Last 12h.
For other rare needs, I zoom in on my computer.

I’d just like to make a clarification.

Here we’re talking about a chart on the dashboard, in a « live » use (on a tablet in the kitchen, for example)

To carry out in-depth analyses of the past, that’s really something else and @Terdious had started a separate project, outside the dashboard.

1 Like

I don’t have a specific reason for 4h rather than 6h. I was trying to make roughly regular ‹ jumps › to move from one value to another. But doing 1h x4 => 4h x6 => 24h or 1h x6 => 6h x4 => 24h, both work for me :wink:

12h, on the other hand, proposed by cicoub13, doesn’t seem very balanced between 1h and 24h to me…

And yes, it’s indeed to have easy live visibility, on a tablet or smartphone, to look « a few hours back ».

1 Like

I like the suggestion, I’m missing the 6h and 7d.
I often use 1h and 24h, but I often want something in between.

2 Likes

@lmilcent, just to be clear: you say « I’m missing the 6h and 7j », but the ‹ 7j › already exists… So which one are you missing?

Ah ah yes indeed :joy:
I meant 6 AM and 12 PM!

I’m thinking we could add a few values, but it won’t be easy to reconcile the wishes of those who would want more and those who, conversely, may already find the list too long with useless values.

@pierre-gilles, would it make sense for there to be, on Gladys’s settings page, a fairly long list of possible values, with each user free to check/uncheck what is useful to them in all their graphs? And by default the checked values would be the current values.

That would allow offering a really comprehensive list, for example: 10 minutes, 30 min, 1 hour, 3h, 6h, 12h, 24h, 2 days, 3d, 5d, 7d, 15d, 30d, 2 months, 3 months, 6 months, 1 year, 2 years, 3 years, 5 years (I don’t know if the last values are relevant in terms of performance…)

That’s not really in the project’s philosophy :slightly_smiling_face: We prefer to make clear choices rather than opt for a “all-options” approach.

Delegating this type of configuration to the end user may seem like a simple solution, but in reality it complicates the overall experience.

Back to the topic, in the long run we will probably be able to offer more short durations and remove some long durations (like 1 year), especially when the chart analysis view allows freely selecting a period and exploring past data.

Currently, long durations are available, but is it really relevant on such a compact widget to display a year’s worth of data?

In the meantime, adding a shorter duration seems relevant to me. 6h or 12h would be good options. On the other hand, upon reflection, I see less value in a 3-day display.

Quick poll:

  • I prefer 6h
  • I prefer 12h
0 votant

Thanks everyone for voting :slight_smile:

By popular demand, I’m adding the « Last 12h »

The PR :

2 Likes

Well, okay, I lost :joy:

1 Like

Fixed in Gladys Assistant 4.53.0:

2 Likes