Re-bonjour,
tu es confronté à une impossibilité pour avoir qq chose de parfait : faire correspondre un mouvement circulaire (ton aiguille avec un mouvement linéaire le graphe.
Tu peux maquiller un peu l'image, voici d'ailleurs le moins moche que j'ai pu faire (sans redessiner une aiguille)
Pièce jointe:
PAABarographe.jpg
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="800" height="800" />
<!-- ================= Relative Pressure ================= -->
<!-- ================= on essaie d'avoir l'aiguille la plus longue possible, -->
<circulargauge width="1200" height="1000" shadow="0" orientation="1" position-x="150" position-y="-52" margin-top="00" margin-right="50" margin-bottom="100" margin-left="50" >
<!-- on cache l'échelle de la grande jauge-->
<axis color="00000000" min="960" max="1040" titlemargin="50" titleside="top" fromangle="-225" toangle="-135">
<labels labelinterval="1" side="0" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="3" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_relative_pressure color1="FF009000" color2="FF009000" filled="0" side="left" thick="9" axisdelta="0"/>
</index>
</circulargauge>
<circulargauge width="760" height="800" shadow="0" orientation="1" position-x="270" position-y="72" margin-top="00" margin-right="50" margin-bottom="100" margin-left="50" >
<axis color="FF000000" min="960" max="1040" titlemargin="50" titleside="top" fromangle="-225" toangle="-135">
<labels labelinterval="1" side="0" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="3" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_relative_pressure color1="00009000" color2="00009000" filled="0" side="left" />
</index>
</circulargauge>
<lineplot width="280" height="800" shadow="0" position-x="10" position-y="0" margin-top="100" margin-right="0" margin-bottom="100" margin-left="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>
<ticks majorticks="5" minorticks="3" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="0" min="960" max="1040" titleside="top" titlemargin="35">
<labels labelinterval="1" angle="0" format=".0" side="right" hide="0" >
<font color="FF000000" facename="Arial" size="16" weight="800" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<relative_pressure axisbind="y1axis" color1="FF009000" color2="FF009000" antialiasing="1" filled="0" hide="0" thick="1.2" />
</data>
<background color="ffffffff"/>
</lineplot>
</stylesheet>
Je ne peux pas commenter à l'intérieur, des balises, cela pose des pb d'exécution.
Le graphe linéaire a un fond blanc non transparent pour cacher le bout de l'aiguille.
La jauge qui porte l'aiguille est dessinée la plus large possible pour que l'échelle circulaire ait une courbe réduite
Si cela t'intéresse, tu peux trouver la syntaxe applicable aux balises des graphiques de GW sur mon site :
http://meteozoir.homeip.net/doc_objets.htmBonne fin d'après-midi
Jean