Problème avec bargraph des précipitations ...

Une question, un bug ?
Répondre
giniyann
Membre
Messages : 12
Inscription : mar. janv. 28, 2014 10:54 am

Problème avec bargraph des précipitations ...

Message par giniyann »

bonjour à tous,
Voici mon soucis:
J'utilise un fichier .xml pour me tracer les graphs de précipitations journalières dont voici un exemple ci-dessous pour le mois de mars 2015:
Image

Le problème c'est que le graph ne se créer pas si je ne suis pas dans le mois en cours. Par exemple si je veux la période du mois précédent (01/02 au 01/03) le graph reste vide ! Suis-je clair ?
Quelqu'un à une idée du pourquoi ? merci bien

Voici le code du .xml:
  • <?xml version="1.0" encoding="iso-8859-1" ?>
    <stylesheet>
    <image width="800" height="500" />
    <frame width="800" height="500" 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="FFDDDDFF" color2="FFFFFFFF" gradient="0" gradient-direction="135" stretch="1" />
    <border cornerradius="0" color="55555555" thick="1" />
    </frame>
    <!-- ================= First Lineplot ================= -->
    <bargraph width="800" height="470" shadow="0" position-x="0" position-y="35" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
    <xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
    <labels labelinterval="1" angle="0" side="left" hide="0" format="%Y">
    <font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
    </labels>
    <ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
    </xaxis>
    <y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" y-base="0.0" titleside="left" titlemargin="25">
    <title text="Précipitations ($UNIT[RAINFALL])" alignement="vcenter|hcenter" angle="0">
    <font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
    </title>
    <labels labelinterval="2" angle="0" format=".0" side="left" hide="0" >
    <font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
    </labels>
    <ticks majorticks="1" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
    </y1axis>
    <data>
    <stats_month_totalrainfall axisbind="y1axis" legend="Précipitations journalière" color1="FFAAAAFF" color2="FF0000FF" gradient="horizontal" antialiasing="1" filled="1" />
    </data>
    <legend orientation="0" margin="3" width="900" position-x="0" position-y="0" hide="0" shadow="0">
    <font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
    <border cornerradius="0" color="55555555" thick="1" />
    <background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
    </legend>
    <graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
    </bargraph>
    </stylesheet>
Davis vantage Vue
Weatherlink IP
Windows 7
erickeepcool
Membre
Messages : 345
Inscription : mer. mars 09, 2011 10:47 pm
Localisation : wattignies (NORD)

Re: Problème avec bargraph des précipitations ...

Message par erickeepcool »

Bonjour,
heuuuu question bête.....ce ne serait pas plutôt du 01/02 au 28/02 et non pas au 01/03?????
et en janvier 01/01 au 31/01 soit à chaque fois le mois entier
là au final tu inclus le premier mars????
eric
giniyann
Membre
Messages : 12
Inscription : mar. janv. 28, 2014 10:54 am

Re: Problème avec bargraph des précipitations ...

Message par giniyann »

Non, même en mettant les dates correctes, rien n'y fait !
En fait dans graphweather quand j'ouvre la feuille .xml (qui se trouve dans le répertoire stylesheets) cela me crée le graph uniquement du mois en cours. J'ai beau changer les dates d'intervalle de temps cela ne veut rien savoir ... ça reste sur le mois en cours !
Davis vantage Vue
Weatherlink IP
Windows 7
giniyann
Membre
Messages : 12
Inscription : mar. janv. 28, 2014 10:54 am

Re: Problème avec bargraph des précipitations ...

Message par giniyann »

En cherchant un peu, j'ai la réponse à ma question:

Il faut copier le code ci-dessus dans le fichier "graph-month.xml" du répertoire "Statistics".
Ainsi lors de la génération des statistiques, ceux-ci créent automatiquement l'image "graph-month-2.PNG" qui correspond pil poil à l'image ci dessus.
On peut alors tracer tous les graphiques des mois et années précédentes !
Davis vantage Vue
Weatherlink IP
Windows 7
Répondre