je me suis inspiré d'une jauge d'un utilisateur bien connu de ce forum pour réaliser un affichage annuel mois par mois des précipitations. La variable utilisée est stats_year_totalrainfall
Mon problème est qu'ayant changé de station météo en juillet (passage de WS2357 à WS2801), mon history.dat commence en juillet et mon graphique n'affiche que les précipitations de juillet et août. De plus, le plugin de GW est différent pour la 2801, donc impossible de "merger" les 2 fichiers et recréer des stats globales de l'année avec GW.
J'aimerais pouvoir ajouter les valeurs de janvier à juin que j'ai "en dur", donc intégrer par exemple "45" pour janvier, "70" pour février.. etc..
je ne suis pas très calé en XML


Quelqu'un aurait-il un conseil à me donner pour "superposer" les valeurs de janvier à juin au graphe?
Merci d'avance

Voila mon code actuel:
Code : Tout sélectionner
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="650" height="350" />
<frame width="650" height="350" position-x="0" position-y="0" shadow="0">
<title text="" alignement="3" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background color1="FFFFFFFF" color2="FF79BCFF" gradient="1" gradient-direction="90" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<!-- ================= Cumul sur la période année ================= -->
<textbox width="450" height="30" shadow="0" position-x="120" position-y="0" margin="5" >
<border cornerradius="10" color="55555555" thick="1" />
<text alignement="3">
<line text="Cumul des précipitations sur l'année en cours : $Stats[Year,TotalRainfall] $UNIT[RAINFALL]"/>
<font color="FF0000FF" facename="Arial" size="20" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF79BCFF" gradient="1" gradient-direction="90" />
</textbox>
<!-- ================= année en cours ================= -->
<bargraph width="650" height="340" shadow="0" position-x="20" position-y="15" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF0000FF" grid="1" autoscale="0" min="0" max="0">
<labels labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." labelinterval="1" angle="0" side="left" hide="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="" minorticks="" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="1" min="0" max="0" y-base="0.0" titleside="left" titlemargin="35">
<title text="Précipitations ( $Unit[Rainfall] )" alignement="vcenter|hcenter" angle="0">
<font color="FF0000FF" facename="Arial" size="16" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0" >
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="14" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_year_totalrainfall axisbind="y1axis" legend="" color1="FF0000FF" color2="FF80FFFF" antialiasing="1" filled="1" />
</data>
</bargraph>
</stylesheet>