FusionCharts and Flash > Using Rotated Text |
FusionCharts allows you to use rotated text for x-axis labels, y-axis name and data values. However, if you want to use rotated text when loading the charts in your Flash movie, you need to make sure that Verdana font face is embedded in your parent movie. Here, we'll show you how to do that. Before that, let's see what happens if we do not embed the Verdana font face but rotate the labels. |
| Result when not embedding the font |
We modify our MyFirstChart.fla example to have the following XML Code: var strXML:String = "<chart showBorder='0' bgAlpha='0,0' palette='1' caption='Hourly Working Rate' numberPrefix='$' labelDisplay='ROTATE' slantLabels='1'>"; Here we've basically added the required attributes to rotate the x-axis labels. If you run this movie now, you'll see that the x-axis labels have disappeared from the chart as below. |
![]() |
This is because the rotated text could not find Verdana font face embedded in your Flash movie. Let's now see how to embed the font. |
| Embedding the font |
To embed the Verdana font face, create a new layer in your Flash movie in the main time line. Name it as "Embedded Font". In any keyframe of this layer, create a dynamic text box outside the stage area with following properties set: |
![]() |
As you can see in the image above:
When you now run your movie, you'll get the following output, as desired: |
![]() |