Sign in to follow this  
rohit111111

Annotation Image

Recommended Posts

Hello,

 

1. I am trying to set annotaion text for Gauge Chart and its set correctly. But I am unable to set the position of annotation text to the center above the gauge like fusion charts XT which has option of "Caption". As, we are creating charts dynamically and we are not giving any height and width of chart. It automatically increase its width and height according to our defined template design in our application. So, without fixing the position of annotation text, how we can show the annotation text in center just above the gauge like the Fusion XT Charts?

 

2. Can we just show an annotaion image without having any chart?

 

Thanks,

Rohit

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Rohit,

 

1. If you are trying to provide only text as caption to the Gauge, please try once by using "caption" attribute in the chart element.

 

In case if this is what is not able to fulfill your requirement, please provide the XML/JSON data you are plotting along with the screen shot of your issue, to better look into it.

 

2. Please note that FusionWidgets XT provides the annotations to create custom objects (shapes, images, text etc.) in the charts. So, without rendering the chart, annotations will not be plotted.

 

For more information on "Annotations", please visit the link: http://docs.fusioncharts.com/widgets/Contents/Annotations/Introduction.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Thanks for your help.

 

But previously, I am trying with caption for gauge chart but its not working and now its working. And also i read in your past posts that caption is not available for gauge chart. To do this one has to use annotation text.

 

Anyway thanks. :)

 

Thanks,

Rohit

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Rohit,

 

Glad that your issue has been resolved. :)

 

Please note that the "caption" attribute was not supported in older version of FusionWidgets XT.

Share this post


Link to post
Share on other sites

As to how to create and set the position of annotation text to the center above the gauge like fusion charts XT which has option of "Caption", we can call the methods of location of X and Y coordinates, see text annotation creation and positon adjusting below:

 

Public Shared Function
CreateTextAnnotation(x As Single, y As Single, w As Single, h As Single, text As String, font As Font) As TextAnnotation
End Function

Public Shared Function
CreateTextAnnotation(x As Single, y As Single, w As Single, h As Single, text As String, font As Font, _
fontBrush As AnnotationBrush, outline As AnnotationPen, fill As AnnotationBrush, shadow As AnnotationBrush, shadowX As Single, shadowY As Single) As TextAnnotation
End Function

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Bessemer,

 

Thank you for your post related to annotation text. It could help others having similar requirement.

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