Citer:
Fais attention à l'endroit où tu positionnes ton code car si tu mets un frame à fond noir après avoir défini ton lineplot, celui-ci se trouvera masqué
J'ai automatiquement mis mon fond en noir après, car j'ai pris "modern.xml comme modèle que j'ai modifié.
Je ne peux pas envoyer le fichier, l'extention n'st pas autorisée
Code :
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="800" height="700" />
<!-- ================= Cadre ================= -->
<frame width="801" height="701" position-x="0" position-y="0">
<background color="FF003399" />
</frame>
<!-- ================= Graphique , pression, température, humidité ================= -->
<lineplot width="800" height="200" shadow="0" position-x="0" position-y="0" margin-top="23" margin-right="280" margin-bottom="57" margin-left="65" >
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FFFFFFFF" facename="Arial" size="18" weight="400" italic="1" />
</title>
<border cornerradius="0" color="FFFFFFFF" thick="0" />
<xaxis color="FFFFFFFF" grid="1" autoscale="0" min="0" max="0" titleside="bottom" >
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%Hh%M\n%d/%m" side="left" hide="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="3" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FFFFFFFF" grid="1" autoscale="1" min="0" max="0" titleside="left" titlemargin="30">
<title text="Température ($Unit[Temperature])" alignement="vcenter|hcenter" angle="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="3" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<y2axis side="right" color="FFFFFFFF" grid="0" autoscale="1" titleside="right" titlemargin="38">
<title text="Pression ($Unit[Pressure])" alignement="vcenter|hcenter" angle="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="right" hide="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y2axis>
<legend position-x="630" position-y="15" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
<border cornerradius="10" color="FFFFFFFF" thick="0" />
<background color="00FFFFFF" />
</legend>
<background color="00FFFFFF" texture="img_modern1.T_800x200.png" stretch="1" />
<graphbackground color="FF000000" texture="" />
<data>
<relative_pressure axisbind="y2axis" legend="Pression relative." color1="FF00FF00" color2="FF00FF00" antialiasing="1" filled="0" hide="0" thick="3"/>
<Outdoor_temperature axisbind="y1axis" legend="Température ext..." color1="FFFFFFFF" color2="FFFFFFFF" antialiasing="1" filled="0" hide="0" thick="3"/>
</data>
</lineplot>
<!-- ================= Graphique vent ================= -->
<lineplot width="800" height="200" shadow="0" position-x="0" position-y="200" margin-top="23" margin-right="280" margin-bottom="57" margin-left="75" >
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="1" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format="%Hh%M\n%d/%m" side="left" hide="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="3" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="top" titlemargin="30">
<title text="Vitesse du vent ($Unit[Speed])" alignement="vcenter|hcenter" angle="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FFFFFFFF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="3" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<legend position-x="640" position-y="230" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
<border cornerradius="0" color="FF000000" thick="0" />
<background color="00FFFFFF" />
</legend>
<background color="00FFFFFF" texture="img_modern1.V_800x200.png" stretch="1" />
<graphbackground color="FF000000" texture="" />
<data>
<wind_speed axisbind="y1axis" legend="Vitesse du vent" color1="FFFF0000" color2="FFFFFF00" antialiasing="1" filled="1" />
<wind_speed axisbind="y1axis" legend="Vitesse du vent" color1="66FF0000" antialiasing="1" filled="0" hidelegend="1" thick="1.2"/>
</data>
</lineplot>
<!-- ================= Radarplot ================= -->
<radarplot width="300" height="300" shadow="0" position-x="0" position-y="400" margin-top="50" margin-right="50" margin-bottom="50" margin-left="50" >
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="0" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
<axis color="FFFFFFFF" grid="1" autoscale="1" min="0" max="0">
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks autoticks="0" majorticks="4" minorticks="2" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
<titles text="E;ENE;NE;NNE;N;NN0;N0;0N0;0;0S0;S0;SS0;S;SSE;SE;ESE">
<font color="FFFFFF00" facename="Arial" size="12" weight="400" italic="1" />
</titles>
</axis>
<legend position-x="0" position-y="0" hide="1" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="0" color="FF000000" thick="1" />
<background color="FFFFFFFF" texture="" />
</legend>
<background color="00000000" texture="img_modern1.1_300x300.png" stretch="1" />
<graphbackground color="00000000" />
<data>
<wind_direction legend="" color1="FFFFFF00" color2="FFFF0000" antialiasing="1" filled="1" />
<wind_direction color1="FFFFFF00" antialiasing="1" hidelegend="1" thick="1.2"/>
</data>
</radarplot>
<!-- ================= Statistics ================= -->
<textbox width="268" height="195" shadow="0" position-x="530" position-y="200" margin="10" >
<border cornerradius="0" color="FF000000" thick="0" />
<text alignement="left|top" >
<line text="\n\t$CurrentDate[%A %d %B %Y à %Hh%M]\n"/>
<line text="\t\t\tMin\t\tMax"/>
<line text=" Pression rel. :\t $Min[relative_pressure] $Unit[Pressure]\t $Max[relative_pressure] $Unit[Pressure]"/>
<line text=" Température ext. :\t$Min[Outdoor_temperature] °\t\t$Max[Outdoor_temperature] °\t\t$Mean[Outdoor_temperature] °"/>
<line text=" Humidité ext. :\t\t$Min[Outdoor_humidity] %\t\t$Max[Outdoor_humidity] %\t\t$Mean[Outdoor_humidity]\n"/>
<line text=" Facteur vent mini :\t$Min[wind_chill] °\t à $MinDate[wind_chill,%Hh%M mn]"/>
<line text=" Vitesse maximale du vent : $Max[wind_speed] $Unit[Speed]\n"/>
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</text>
<background color="00000000" texture="img_modern1.1_500x300.png" stretch="1" />
</textbox>
<!-- ================= Récappitulatis des années précedantes ================= -->
<frame width="200" height="300" position-x="300" position-y="400">
<background color="ff0000ff" texture="img_modern_square1.2_450x300.png" stretch="1" />
</frame>
<textbox width="380" height="250" shadow="0" position-x="310" position-y="430" margin="10">
<background color1="00FFFFFF" color2="00FFFFFF" gradient="1" gradient-direction="90" stretch="1" />
<border cornerradius="10" color="00FFFFFF" thick="1" />
<text alignement="left|top">
<line text=" Quantités par année\n "/>
<line text=" 2011................851.21 mm "/>
<line text=" 2012...............1186.90 mm "/>
<line text=" 2013................961.50 mm "/>
<line text=" 2014...............1466.00 mm "/>
<line text=" 2015................989.90 mm "/>
<font color="FF000000" facename="Arial" size="15" weight="400" italic="0" />
<font color="FF000000" size="16" weight="400" italic="0" />
</text>
</textbox>
<!-- ================= Rainfall ================= -->
<frame width="300" height="300" position-x="500" position-y="400">
<title text="\nPrécipitations" alignement="top|hcenter" angle="0" position-x="0.1" position-y="0.5">
<font color="FF000000" facename="Arial" size="20" weight="400" italic="1" />
</title>
<background color="ff0000ff" texture="img_modern_square1_450x300.png" stretch="1" />
</frame>
<!-- ================= Absolute rainfall ================= -->
<lineargauge width="25" height="250" shadow="0" orientation="1" position-x="560" position-y="420" margin-top="34" margin-right="0" margin-bottom="42" margin-left="0" >
<title text="Total :\n$Stats[Year,TotalRainfall] $Unit[Rainfall]" alignement="relative" angle="0" position-x="0.47" position-y="0.92">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</title>
<axis color="66000000" min="0" max="1000" side="left" titlemargin="30" titleside="left">
<labels labelinterval="1" side="right" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="6" minorticks="3" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="18" majorticksize="25"/>
</axis>
<index>
<stats_year_totalrainfall color1="FF0033FF" color2="FF00FFFF" filled="1" reverse="0" side="right" thick="25" axisdelta="0"/>
</index>
<border cornerradius="0" color="FF000000" thick="0" />
</lineargauge>
<!-- ================= rainfall mois ================= -->
<lineargauge width="25" height="250" shadow="0" orientation="1" position-x="633" position-y="420" margin-top="34" margin-right="0" margin-bottom="42" margin-left="0" >
<title text="Sur le mois :\n$Stats[Month,TotalRainfall] $Unit[Rainfall]" alignement="relative" angle="0" position-x="0.47" position-y="0.92">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</title>
<axis color="66000000" min="0" max="50" side="left" titlemargin="30" titleside="left">
<labels labelinterval="1" side="right" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="6" minorticks="3" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="18" majorticksize="25"/>
</axis>
<index>
<stats_month_totalrainfall color1="FF0033FF" color2="FF00FFFF" filled="1" reverse="0" side="right" thick="25" axisdelta="0"/>
</index>
<border cornerradius="0" color="FF000000" thick="0" />
<background color="00000000" stretch="1" />
<gaugebackground color="FF000000" texture="" />
</lineargauge>
<!-- ================= rainfall 24h ================= -->
<lineargauge width="25" height="250" shadow="0" orientation="1" position-x="703" position-y="420" margin-top="34" margin-right="0" margin-bottom="42" margin-left="0" >
<title text="Sur 24h :\n$Current[rainfall_24h] $Unit[Rainfall]" alignement="relative" angle="0" position-x="0.47" position-y="0.92">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</title>
<axis color="66000000" min="0" max="80" side="left" titlemargin="30" titleside="left">
<labels labelinterval="1" side="right" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="5" minorticks="3" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="18" majorticksize="25"/>
</axis>
<index>
<current_rainfall_24h color1="550000FF" color2="FF00CCFF" filled="1" reverse="0" side="right" thick="25" axisdelta="0"/>
</index>
<border cornerradius="0" color="FF000000" thick="0" />
<background color="00000000" stretch="1" />
<gaugebackground color="FF000000" texture="" />
</lineargauge>
<frame width="300" height="300" position-x="510" position-y="400">
<background color="ff0000ff" texture="img_modern_square3_300x300.png" stretch="1" />
</frame>
<!-- ================= Temp actuel ================= -->
<textbox width="100" height="50" shadow="0" position-x="655" position-y="70" margin="5" >
<text alignement="left|top">
<line text="Temps actuel"/>
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</text>
</textbox>
<frame width="90" height="90" position-x="650" position-y="85">
<background color="ff0000ff" texture="$WeatherConditions[Icon]" stretch="1" />
</frame>
<!-- ================= Prévisions ================= -->
<textbox width="100" height="50" shadow="0" position-x="355" position-y="570" margin="5" >
<text alignement="left|top">
<line text="Prévisions à 12 h"/>
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</text>
</textbox>
<frame width="80" height="80" position-x="360" position-y="585">
<background color="ff0000ff" texture="$WeatherForecast[Icon]" stretch="1" />
</frame>
</stylesheet>