Sign in to follow this  
Eric W

Vertical Alignment Of Angular Gauge

Recommended Posts

When creating an Angular Gauge using FusionWidgets, the gauge itself seems to be aligned to the bottom of the Flash object. I've attached a screenshot of a widget configured with height="100%". The Debug Mode message denotes the top of the widget.

 

Is there a way to change the alignment of the widget so that the gauge renders in the middle of the Flash object? I know this can be accomplished by decreasing the height of the parent container, but because our widgets need to support a full range of sizes, changing the alignment would be easiest.

 

Thank you.

post-18355-0-12729700-1330378269_thumb.png

Edited by Eric W

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi Eric,

 

Thank you for the post.

 

Can you please try using "gaugeOriginX" and "gaugeOriginY" attributes of the chart and set appropriate values ?

Ref. Code:

<chart gaugeOriginX='300' gaugeOriginY='450'>
 <colorRange>
<color minValue="0" maxValue="75" code="FF654F"/>
<color minValue="75" maxValue="90" code="F6BD0F"/>
<color minValue="90" maxValue="100" code="8BBA00"/>
 </colorRange>
 <dials>
<dial value="92" rearExtension="10" valueX="130" valueY="100"/>
 </dials>
</chart>

 

The "gaugeOriginX" attribute lets you manually specify the x co-ordinate at which the center of the gauge will be placed.

The "gaugeOriginY" attribute lets you manually specify the y co-ordinate at which the center of the gauge will be placed.

 

For more details on 'Angular Gauge Specification Sheet ', please refer to the link below,

http://docs.fusionch...lar/XMLAPI.html

 

Also, please find attached screen shot of the chart rendered using the above sample XML.

 

Hope this helps !

 

Happy FusionCharting :D

post-23884-0-27076900-1330399525_thumb.png

Edited by Bindhu

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