Bonsoir,
Voici mon code et le résultat. Tout va bien si il y a une valeur différente de 0 mais si ce n'est pas le cas, les graphes totalement farfelus.
Merci de vos idées.
Code:
<!-- ================= Relative Rainfall ================= -->
<textbox width="320" height="20" shadow="0" position-x="10" position-y="661" margin="5" >
<background color="FF000000" stretch="0" />
<text alignement="vcenter|hcenter" >
<line text="Relative Rainfall (mm)" />
<font color="FFFFFFFF" facename="Arial" size="12" weight="800" italic="0" />
</text>
</textbox>
<lineplot width="318" height="180" shadow="0" position-x="11" position-y="680" margin-top="20" margin-right="15" margin-bottom="20" margin-left="30" >
<title text="$StartDate[%d/%m/%y]" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<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="0" />
</title>
<labels labelinterval="1" angle="0" format="%H:%M" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</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="left" titlemargin="35">
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="5" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<relative_rainfall axisbind="y1axis" legend="" color1="660000FF" antialiasing="1" hidelegend="1" thick="1"/>
</data>
<background color="FFCCCCCC" stretch="0" />
<graphbackground color="FFCCCCCC" texture="" />
<border cornerradius="0" color="FF000000" thick="1" />
</lineplot>
<!-- ================= Rainfall 1h ================= -->
<textbox width="320" height="20" shadow="0" position-x="340" position-y="661" margin="5" >
<background color="FF000000" stretch="0" />
<text alignement="vcenter|hcenter" >
<line text="Rainfall 1h (mm/h)" />
<font color="FFFFFFFF" facename="Arial" size="12" weight="800" italic="0" />
</text>
</textbox>
<lineplot width="318" height="180" shadow="0" position-x="340" position-y="680" margin-top="20" margin-right="15" margin-bottom="20" margin-left="30" >
<title text="$StartDate[%d/%m/%y]" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<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="0" />
</title>
<labels labelinterval="1" angle="0" format="%H:%M" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</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="left" titlemargin="35">
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="0" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<rainfall_1h axisbind="y1axis" legend="" color1="FF009000" antialiasing="1" hidelegend="1" thick="1"/>
</data>
<background color="FFCCCCCC" stretch="0" />
<graphbackground color="FFCCCCCC" texture="" />
<border cornerradius="0" color="FF000000" thick="1" />
</lineplot>
<!-- ================= 24h Rainfall ================= -->
<textbox width="320" height="20" shadow="0" position-x="670" position-y="661" margin="5" >
<background color="FF000000" stretch="0" />
<text alignement="vcenter|hcenter" >
<line text="Rainfall 24h (mm)" />
<font color="FFFFFFFF" facename="Arial" size="12" weight="800" italic="0" />
</text>
</textbox>
<lineplot width="318" height="180" shadow="0" position-x="670" position-y="680" margin-top="20" margin-right="15" margin-bottom="20" margin-left="30" >
<title text="$StartDate[%d/%m/%y]" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<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="0" />
</title>
<labels labelinterval="1" angle="0" format="%H:%M" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</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="left" titlemargin="35">
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="0" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<rainfall_24h axisbind="y1axis" legend="" color1="FF009000" antialiasing="1" hidelegend="1" thick="1"/>
</data>
<background color="FFCCCCCC" stretch="0" />
<graphbackground color="FFCCCCCC" texture="" />
<border cornerradius="0" color="FF000000" thick="1" />
</lineplot>
Pièce jointe:
pluie.jpg