# Diagramme als MAX() oder SUMME() anzeigen

**URL:** <https://community.gladysassistant.com/t/pouvoir-afficher-les-graphiques-en-max-ou-en-somme/7682>\
**Category:** Demandes livrées\
**Tags:** graphique, dashboard, feature-core\
**Created:** [16. November 2022 um 13:13 UTC](https://community.gladysassistant.com/t/pouvoir-afficher-les-graphiques-en-max-ou-en-somme/7682 "2022-11-16T13:13:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [8. Mai 2025 um 10:14 UTC](https://community.gladysassistant.com/t/pouvoir-afficher-les-graphiques-en-max-ou-en-somme/7682/4 "2025-05-08T10:14:15Z")

</div>

Hallo zusammen,

Wie im Post erwähnt, verwendet das Widget **Graphik** derzeit standardmäßig eine _Durchschnitts_-Funktion, wenn die Anzahl der Daten die Anzeigekapazität überschreitet (derzeit auf 300 Punkte pro Graphik begrenzt).

Zum Beispiel, wenn Sie einen Monat Niederschlag mit 10 Messungen pro Stunde anzeigen, sind das 7200 Werte… die dann auf nur 300 Punkte gemittelt werden. Das ist eindeutig nicht optimal für alle Datentypen!

Um diesem Bedarf gerecht zu werden, schlage ich eine Weiterentwicklung des Widgets mit einem neuen Parameter 👇 vor

 ![Screenshot 2025-05-08 at 11.55.07](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/d/8d71068115097dfb09e9053b22021241235eb985.png)

Die Standardfunktion bleibt «&nbsp;Durchschnitt&nbsp;», aber Sie können die Summe, das Maximum, das Minimum oder die Anzahl (ein COUNT in SQL) auswählen.

Ich schlage ein Docker-Image mit dieser Änderung vor:

```auto
gladysassistant/gladys:dashboad-add-other-aggregate-functions

```

⚠ Achtung, dieser PR ist nicht mit der Produktion kompatibel, da er die Datenbank ändert, daher rate ich Ihnen nicht, dieses Image in Ihrer Produktion zu starten.

👉 [Tutorial: Wie starte ich ein Docker-Test-Image?](https://community.gladysassistant.com/t/tutoriel-lancer-une-image-docker-de-test/8042)

Und der zugehörige PR:

> <https://github.com/GladysAssistant/Gladys/pull/2290>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> 
> \### Description of change
> 
> https://community.gladysassistant.com/t/pouvoir-afficher-les-graphiques-en-max-ou-en-somme/7682

Ich freue mich wie immer über euer Feedback! 😊

---

_[View the full topic](https://community.gladysassistant.com/t/pouvoir-afficher-les-graphiques-en-max-ou-en-somme/7682)._
