# Fixer la hauteur de la partie graphique d'une box graphique

**URL:** <https://community.gladysassistant.com/t/fixer-la-hauteur-de-la-partie-graphique-dune-box-graphique/8378>\
**Category:** Développement\
**Tags:** graphique\
**Created:** [Septembre 24, 2023, 7:42 UTC](https://community.gladysassistant.com/t/fixer-la-hauteur-de-la-partie-graphique-dune-box-graphique/8378 "2023-09-24T07:42:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [Septembre 24, 2023, 7:42 UTC](https://community.gladysassistant.com/t/fixer-la-hauteur-de-la-partie-graphique-dune-box-graphique/8378/1 "2023-09-24T07:42:57Z")

</div>

Bonjour,

Lorsque l’on crée un graphique avec des légendes, la partie visuelle du graphique réduit en fonction du nombre de légende. En conséquence, on se retrouve à partir d’un certain nombre de légende avec un graphique pratiquement illisible.  
Exemple avec 5 légendes :  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e097a8dfecdfd27ea7018642147b482d619cef32.png)

Exemple avec 3 légendes :  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/dc72e3750de0a5d7329b910c2af7a717316599e7.png)

Sans légende :  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a7ec53536a6580c78cf29801578d0f976c9d9919.png)

Pourrions-nous fixer la partie sans légende, et agrandir la box selon le nombre de légende, ou tout du moins fixer une valeur minimum de hauteur de graphique permettant une lecture (le minimum étant celle avec 3 légendes. A partir de 4 cela devient peut lisible.

Issue github :

> <https://github.com/GladysAssistant/Gladys/issues/1896#issue-1910140157>
>
> First, are you sure that you found a Gladys bug?
> 
> If you are not sure, you can… come discuss with us on our community, in \[french\](http://community.gladysassistant.com/) or \[english\](https://en-community.gladysassistant.com/) 🙂
> 
> \*\*Describe the bug\*\*
> When you create a chart with legends, the visual part of the chart reduces depending on the number of legends. As a result, we find ourselves from a certain number of legends with a practically illegible graph.
> 
> \*\*To Reproduce\*\*
> Steps to reproduce the behavior:
> \- On the dashboard, add a “graphics” box
> \- Add more than 3 features
> \- Record and observe
> 
> \*\*Expected behavior\*\*
> Could we fix the part without legend, and enlarge the box according to the number of legends, or at least set a minimum value of graph height allowing reading (the minimum being that with 3 legends. From 4 this becomes perhaps legible.
> 
> \*\*Screenshots\*\*
> Example with 5 captions:
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/35010958/ba306441-7059-404c-815d-173d351cd4e0)
> 
> Example with 3 legends:
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/35010958/c583b3c7-2ddb-487b-9378-2914345048b5)
> 
> Without caption:
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/35010958/13dcaccc-868f-41db-aff0-f1a698b97736)
> 
> \*\*Your Gladys installation (please complete the following information):\*\*
> 
> \- Raspberry Pi 4 Modèle B - SSD 512Go
> 
> \*\*Desktop (please complete the following information):\*\*
> 
> \- OS: Microsoft Windows 10 Professionnel x64
> \- Chrome
> \- Version 116.0.5845.188 (Build officiel) (64 bits)

---

<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:** [Septembre 25, 2023, 3:49 UTC](https://community.gladysassistant.com/t/fixer-la-hauteur-de-la-partie-graphique-dune-box-graphique/8378/2 "2023-09-25T15:49:30Z")

</div>

Merci d’avoir créé l’issue !

J’ai mis à jour le titre 🙂
