# Ability to customize the time periods offered in charts

**URL:** <https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616>\
**Category:** Demandes livrées\
**Tags:** in-progress\
**Created:** [August 16, 2026, 3:01pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616 "2026-08-16T15:01:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [August 16, 2026, 3:01pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616/1 "2026-08-16T15:01:57Z")

</div>

In the graphs of a dashboard, you can define the display interval among 7 values:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/5/e/5e27244af4068e1b5a562073a6d1b89036f09492.png)

But in practice, I almost never use ‹&nbsp;3 months&nbsp;› whereas I would often like to be able to visualize ‹&nbsp;3 days&nbsp;›.

Would it be possible to configure, in the Gladys settings or perhaps even in each user’s profile, the intervals that will be used. The current 7 intervals would be the default configuration, but you could remove some and add others, defining the number and the unit: X minutes/hours/days/months/years.

I had already raised the subject a few months ago, and the decision was made not to change it. But perhaps doing it with Claude will allow finding a suitable solution.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [August 17, 2026, 12:54pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616/2 "2026-08-17T12:54:39Z")

</div>

Hi Stéphane 👋

Thanks for your request! I understand the need, and indeed, there’s a real gap between « 1 day » and « 7 days » in the current durations.

However, I don’t want to go with a fully configurable list of durations in the settings. The philosophy of Gladys is to be simple and ready to use: I prefer good default choices that suit the majority, rather than settings screens that 95% of users will never open, but that everyone will have to « pay » for in complexity (management interface, dynamic translations, migrations, tricky cases like a deleted duration still used by a chart…). It’s configuration for the sake of configuration: your real problem isn’t the lack of a generic system, it’s a missing duration in the scale 🙂

So, I suggest instead adding « Last 3 days » natively to the proposed durations, for everyone.

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [August 17, 2026, 12:58pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616/3 "2026-08-17T12:58:14Z")

</div>

Oh yes indeed. Three days would be great!

---

<div class="post-metadata">

**Author:** ![cursor-bot](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cursor-bot/32/22252_2.png) [@cursor-bot](https://community.gladysassistant.com/u/cursor-bot)\
**Post date:** [August 17, 2026, 1:00pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616/4 "2026-08-17T13:00:32Z")

</div>

Hi everyone!

This topic is now **in development**.

A PR has been opened to add the « last 3 days » interval to the dashboard charts:

> <https://github.com/GladysAssistant/Gladys/pull/2933>
>
> \### Description
> 
> Adds a \*\*"Last 3 days"\*\* interval to the dashboard chart box, f…illing the gap between "Last 24 hours" and "Last 7 days". This was requested on the community forum: rather than making the duration list configurable, this adds the missing step natively for everyone, keeping the zero-configuration spirit of Gladys.
> 
> Changes:
> 
> \- \`front/src/components/boxs/chart/Chart.jsx\`: new \`last-three-days\` interval (3 × 24 × 60 minutes) in \`intervalByName\`, its label in \`INTERVAL\_LABELS\`, a \`switchTo3DaysView\` handler and a new dropdown entry between "Last 24 hours" and "Last 7 days" (hidden for timeline charts, like the other multi-day intervals).
> \- \`front/src/components/boxs/chart/EditChart.jsx\`: new \`last-three-days\` option in the "Default interval" selector of the chart box editor.
> \- \`front/src/config/i18n/{en,fr,de}.json\`: new \`lastThreeDays\` translation key.
> \- \`server/services/mcp/lib/buildSchemas.js\`: \`last-three-days\` added to the \`device.get-history\` MCP tool interval enum, to keep it consistent with the dashboard.
> 
> No backend API change is needed: the aggregates endpoint already accepts any interval in minutes. Existing chart boxes are unaffected (their stored interval names are unchanged).
> 
> \## Forum
> 
> Forum: https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616
> 
> \### Checklist
> 
> \- \[x\] Tests pass: no server logic changed (only a new value in an existing MCP enum); no new Cypress coverage needed for the added dropdown entry
> \- \[x\] Linter and prettier pass on both front and server (\`npm run prettier\` checked on all changed files)
> \- \[x\] No undocumented breaking change
> 
> \---
> \_Generated by \[Claude Code\](https://claude.ai/code/session\_01RJV762Y99ExVemUCFYHZtk)\_
> 
> 
> 
> \## Summary by CodeRabbit
> 
> \* \*\*New Features\*\*
> \* Added a “Last 3 days” interval for non-timeline charts.
> \* Users can select the new interval from chart controls and dropdowns.
> \* Added support for English, German, and French labels.

Feel free to follow the PR, test (optional, especially for small requests) and give your feedback here if needed.

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [August 17, 2026, 1:11pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616/5 "2026-08-17T13:11:48Z")

</div>

ok, that works for me.

---

<div class="post-metadata">

**Author:** ![cursor-bot](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cursor-bot/32/22252_2.png) [@cursor-bot](https://community.gladysassistant.com/u/cursor-bot)\
**Post date:** [August 28, 2026, 12:32pm UTC](https://community.gladysassistant.com/t/pouvoir-personnaliser-les-durees-proposees-dans-les-graphiques/10616/6 "2026-08-28T12:32:55Z")

</div>


