Sign in to follow this  
sivatech001

AngularGauge.swf allignment-problem

Recommended Posts

Hi,

Hi I used this code in my application,

<Chart bgColor="f7f2ff,f7f2ff" upperLimit="500" lowerLimit="-1500" majorTMNumber="6"

 majorTMHeight="8" showGaugeBorder="0" gaugeOuterRadius="140" gaugeOriginX="205" gaugeOriginY="206"

 gaugeInnerRadius="2" formatNumberScale="0"  formatNumber='0' displayValueDistance="35"  chartLeftMargin="50" borderColor="f7f2f7" borderThickness="1" showBorder="1" tickMarkDecimalPrecision="1" pivotRadius="15" showPivotBorder="1" pivotBorderColor="000000" Canvasbgcolor="f7f2f7"  pivotBorderThickness="3" pivotFillMix="FFFFFF,000000" autoScale='1' origW='400' origH='200'>

 <colorRange>

  <color minValue="-1500" maxValue="-1000" code="FF0000" />

  <color minValue="-1000" maxValue="-750" code="FBB117" />

  <color minValue="-750" maxValue="-250" code="5FFB17" />

  <color minValue="-250" maxValue="0" code="FBB117" />

  <color minValue="0" maxValue="500" code="FF0000" />

 </colorRange>

 <dials>

 <dial value='$weightlossAvg' borderAlpha="0" bgColor="000000" baseWidth="28"

 topWidth="1" radius="130" toolText='$suggest'/>

 </dials>

 <annotations autoScale='1' origW='400' origH='200' borderColor="000000"

 borderThickness="1" showBorder="1">

<annotationGroup xPos="205" yPos="207.5">

<annotation type="circle" xPos="0" yPos="2.5" radius="150" startAngle="0" endAngle="180"

fillPattern="linear" fillAsGradient="1" fillColor="dddddd,666666" fillAlpha="100,100"

fillRatio="50,50" fillDegree="0" showBorder="1" borderColor="444444" borderThickness="2" /> 

<annotation type="circle" xPos="0" yPos="0" radius="145" startAngle="0" endAngle="180"

fillPattern="linear" fillAsGradient="1" fillColor="666666,ffffff" fillAlpha="100,100"

fillRatio="50,50" fillDegree="0" />

  </annotationGroup>

</annotations>

</Chart>

I put color ranges in the above code. But it is not align properly in my condition range

<colorRange>

  <color minValue="-1500" maxValue="-1000" code="FF0000" />

  <color minValue="-1000" maxValue="-750" code="FBB117" />

  <color minValue="-750" maxValue="-250" code="5FFB17" />

  <color minValue="-250" maxValue="0" code="FBB117" />

  <color minValue="0" maxValue="500" code="FF0000" />

 </colorRange>

So, as per condition the graphs show like (-1500 to -1000 to this color and so on..)

But the my graphs shows the ranges properly but in outer area marker not in my condition it shows (-1500 to -1100 and -1100 to -700 and -700 to -300 and -300 to 100 and 100 to 500)

but i need (-1500 to -1000 and -1000 to -750 and -750 to -250 and 250 to 0 and 0 to 500)

Thanks,

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