Page 1 sur 1

Rendre transparent le contour d'une gauge

Posté : 29 oct. 2023, 16:35
par estelle
Bonjour,

Je n'arrive pas à trouver une astuce pour rendre transparent l'extérieur d'une jauge

Code : Tout sélectionner

Highcharts.chart('container', {         
              chart: {
                  type: 'gauge',
                  plotBackgroundColor: ??????????,
                  plotBackgroundImage: ?????????,
                  plotBorderWidth: 0,
                  plotShadow: false,
                 
              },
                     
J'ai mis des points d'intérogation
J'ai essayé 'Null' 'transparent'
Le fond reste toujours blanc alors que jai une image en fond sur toute la page
Qui a une solution ?

Re: Rendre transparent le contour d'une gauge

Posté : 29 oct. 2023, 20:14
par Météo Villarzel
Hello,

Tu peux demander à chat GPT :lol:
https://www.highcharts.com/chat/gpt/

comment rendre transparent l'extérieur d'une jauge

Et sa réponse

Highcharts.chart('container', {
chart: {
type: 'gauge',
plotBackgroundColor: null,
plotBackgroundImage: null,
plotBorderWidth: 0,
plotShadow: false,
backgroundColor: 'rgba(0,0,0,0)' // Fond transparent
},
// Autres configurations de la jauge...
});

Bonne soirée

Re: Rendre transparent le contour d'une gauge

Posté : 30 oct. 2023, 06:42
par estelle
Bonjour,

Ok merci cela fonctionne