Sign in to follow this  
gtaylor

How to center annotations?

Recommended Posts

I'm trying to center an Angular Gauge that has circle annotations that give it a bezeled look. I have found that I can center the gauge itself by setting gaugeOriginX="50%" and gaugeOriginY="50%". But, I cannot figure out how to center the annotations to move along with the gauge when the area is resized.

 

 

 

The only thing I can think to do is, on a resize event, determine the new width and height and modify the chart XML xPos and yPos attributes to center the annotations programmatically. [Yuck]

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

 

 

Could you please send us the XML codes that you are using to render the chart?

 

 

 

Also, could you please send us the screen-shot depicting this issue, as an attachment?

 

 

 

Awaiting your reply.

Share this post


Link to post
Share on other sites

Here is my XML and a screenshot. The chart is displayed in a panel that can be resized. The gauge is always centered, but the annotation does not move. I tried using a '50%' for xPos and yPos for the annotation, but that didn't work.

post-3500-128441584718_thumb.png

chartxml.xml

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this