jturlier a écrit:
Bonjour Jean-Paul,
ta feuille de style semble être un succès !
tu devrais peut-être l'insérer sous forme de [code], cela t'éviterait les MP's.
Bonne journée et à bientôt
Cordialement
Jean
Bonjour jean,
Toujours d'aussi bon conseil, mais je ne pensais pas quelle aurais autant de succès.
Voici le code (qui faudra quand même modifier pour l'adapter à vos besoins, en particulier : pour les cumul des années précédentes, il se trouve dans des texbox qu'il faut positionner bon Endroit en haut du graphique correspondant.)
Cordialement.
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="750" height="750" />
<frame width="750" height="750" 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>
<!-- ================= pluie annuelle depuis 2006 ================= -->
<bargraph width="175" height="700" 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="90" side="left" hide="0" format="%Y">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="0" min="0" max="1300" y-base="0.0" titleside="left" titlemargin="25">
<title text="Précipitations ($UNIT[RAINFALL])" alignement="vcenter|hcenter" angle="0">
<font color="" facename="Arial" size="10" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="27" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_full_totalrainfall axisbind="y1axis" legend=" PRECIPITATIONS (en mm) DEPUIS 2006" color1="FF80FFFF" color2="FF0000FF" gradient="horizontal" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="300" position-x="-34" position-y="0" hide="0" shadow="0">
<font color="FF0000FF" facename="Arial" size="13" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= mois en cours ================= -->
<bargraph width="650" height="340" shadow="0" position-x="150" position-y="60" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF0000FF" grid="1" autoscale="0" min="0" max="0">
<title text="" alignement="20" angle="0">
<font color="FF0062C4" facename="Arial" size="16" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%d" side="2" hide="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="32" minorticks="0" side="0" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="0" min="0" max="40" y-base="0.0" titleside="left" titlemargin="35">
<title text="Précipitations ( $Unit[Rainfall] )" alignement="vcenter|hcenter" angle="0">
<font color="" facename="Time new roman" 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="9" minorticks="4" side="0" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_totalrainfall axisbind="y1axis" legend="" color1="FF0000FF" color2="FF80FFFF" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="5" width="765" position-x="300" position-y="65" hide="0" shadow="0">
<font color="FF0000FF" facename="Time new roman" size="18" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<border cornerradius="0" color="55555555" thick="0" />
<background color1="00000000" stretch="1" />
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Cumule sur la période mois================= -->
<textbox width="400" height="30" shadow="0" position-x="240" position-y="60" margin="5" >
<border cornerradius="10" color="55555555" thick="1" />
<text alignement="3">
<line text="Cumul des précipitations mois en cours : $Stats[Month,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>
<textbox width="470" height="50" position-x="185" position-y="20" >
<text>
<font color="FF0000FF" facename="Time new roman" size="18" weight="400" italic="0" />
<line text=" Rapport généré le $CURRENT_DATE[%A %d %B %Y à %Hh 00]\n"/>
</text>
<background color1="" color2="" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<textbox width="450" height="50" position-x="210" position-y="0" >
<text>
<font color="FF0000FF" facename="Time new roman" size="18" weight="400" italic="0" />
<line text=" MISE à JOUR DES GRAPHIQUES TOUTES LES HEURES"/>
</text>
<background color1="" color2="" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= annee en cours ================= -->
<bargraph width="650" height="340" shadow="0" position-x="150" position-y="415" 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="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="1" min="0" max="130" y-base="0.0" titleside="left" titlemargin="35">
<title text="Précipitations ( $Unit[Rainfall] )" alignement="vcenter|hcenter" angle="0">
<font color="" 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="1" 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>
<legend orientation="0" margin="3" width="500" position-x="300" position-y="400" hide="0" shadow="0">
<font color="FF0000FF" facename="Time new roman" size="18" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Cumule sur la période année================= -->
<textbox width="450" height="30" shadow="0" position-x="240" position-y="400" 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>
<!-- ================= Cumule 2011================= -->
<textbox width="43" height="25" shadow="0" position-x="130" position-y="570" margin="5" >
<border cornerradius="0" color="" thick="1" />
<text alignement="3">
<line text="$Stats[Year,TotalRainfall] "/>
<font color="FFFF0000" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="" color2="" gradient="1" gradient-direction="90" />
</textbox>
<!-- ================= Cumule 2006================= -->
<textbox width="30" height="25" shadow="0" position-x="38" position-y="430" margin="5" >
<border cornerradius="10" color="" thick="1" />
<text alignement="3">
<line text="497"/>
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="" color2="" gradient="1" gradient-direction="90" />
</textbox>
<!-- ================= Cumule 2007================= -->
<textbox width="40" height="25" shadow="0" position-x="50" position-y="470" margin="5" >
<border cornerradius="10" color="" thick="1" />
<text alignement="3">
<line text="420,7"/>
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="" color2="" gradient="1" gradient-direction="90" />
</textbox>
<!-- ================= Cumule 2008================= -->
<textbox width="70" height="25" shadow="0" position-x="70" position-y="162" margin="5" >
<border cornerradius="10" color="" thick="1" />
<text alignement="3">
<line text="1019,8"/>
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="" color2="" gradient="1" gradient-direction="90" />
</textbox>
<!-- ================= Cumule 2009================= -->
<textbox width="70" height="25" shadow="0" position-x="90" position-y="260" margin="5" >
<border cornerradius="10" color="" thick="1" />
<text alignement="3">
<line text="828,2"/>
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="" color2="" gradient="1" gradient-direction="90" />
</textbox>
<!-- ================= Cumule 2010================= -->
<textbox width="70" height="25" shadow="0" position-x="105" position-y="54" margin="5" >
<border cornerradius="10" color="" thick="1" />
<text alignement="3">
<line text="1229.3"/>
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="" color2="" gradient="1" gradient-direction="90" />
</textbox>
</stylesheet>