Sign in to follow this  
marcoaguia

Horizontal Gauge Pointer Stuck At Zero

Recommended Posts

Hi everyone

 

<Chart bgColor='FFFFFF' bgAlpha='0' showBorder='0' upperLimit='$upperLimit' lowerLimit='$lowerLimit' gaugeRoundRadius='5' chartBottomMargin='1' ticksBelowGauge='0' majorTMNumber='7' $labels $url>
		<colorRange> 
			<color minValue='$lowerLimit' maxValue='$valorTransicao1' code='E77817' name='".$WP."' />
			<color minValue='$valorTransicao' maxValue='$valorTransicao2' code='CAE000' name='".$OPTIMAL."' /> 
			<color minValue='$valorTransicao2' maxValue='$upperLimit' code='75C5F0' name='".$FC."' />
		</colorRange>
		<pointers> 
       <pointer value='$percentagemFinal'/> 
   </pointers>
<styles>
			<definition>
				<style name='ValueFont' type='Font' size='10' color='333333'/>
			</definition>
			<application>
				<apply toObject='VALUE' styles='valueFont'/>
			</application>	
		</styles>

	</Chart>

 

thats my xml code. Below you can see an exemple

<Chart bgColor='FFFFFF' bgAlpha='0' showBorder='0' upperLimit='120' lowerLimit='0' gaugeRoundRadius='5' chartBottomMargin='1' ticksBelowGauge='0' majorTMNumber='7' showGaugeLabels='1' valueAbovePointer='0' pointerOnTop='0' pointerRadius='9' numberSuffix='%' clickURL='javascript:maximizeChart(652,326);'>
		<colorRange> 
			<color minValue='0' maxValue='20' code='E77817' name='Ponto de Emurchimento' />
			<color minValue='' maxValue='100' code='CAE000' name='Humidade Óptima' /> 
			<color minValue='100' maxValue='120' code='75C5F0' name='Capacidade de Campo' />
		</colorRange>
		<pointers> 
       <pointer value='121'/> 
   </pointers>
<styles>
			<definition>
				<style name='ValueFont' type='Font' size='10' color='333333'/>
			</definition>
			<application>
				<apply toObject='VALUE' styles='valueFont'/>
			</application>	
		</styles>

	</Chart>

 

thanks

 

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

From the gauge XML it seems that, you are generating data using PHP variables.

 

Please check the variables by echoing them if they are returning the values properly or not before inserting into XML.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

If you try to render chart using simple XML, its rendering fine.

 

But, its glad to know that, you have managed to resolve your issue.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this