Annotations > Image |
|||||||||||||||||||||
Let us take a look at the Image Annotation here. The Image Annotation allows you to display an image on the chart. |
|||||||||||||||||||||
|
|||||||||||||||||||||
The XML to create the above is: | |||||||||||||||||||||
<chart> ... <annotations> <annotationGroup id='Grp1' > <annotation type='image' x='200' y='200' URL='logo.gif' /> </annotationGroup> </annotations> ... </chart> |
|||||||||||||||||||||
As is very clear from the code above, we need to set the annotation type to image, specify the x and y co-ordinates where we want the image to be placed and finally provide the URL where the image is located. This URL has to lie in the same domain as the Flash movie. | |||||||||||||||||||||
Scaling Images | |||||||||||||||||||||
You can x-scale and y-scale images using the xScale and yScale attributes. Setting xScale='50' yScale='200' would reduce the image to half horizontally and double it vertically. | |||||||||||||||||||||
The various attributes using which the image annotation can be customized are: | |||||||||||||||||||||
|
|||||||||||||||||||||
Application | |||||||||||||||||||||
The XML for the above is: | |||||||||||||||||||||
<chart ...> |
|||||||||||||||||||||