Search tutorials
Adding other chart information
You can also set Chart title, X and Y axis titles and sort order within the data file. The example below shows how the Chart title can be set.
Make sure that your data file includes a variable for the title such as
&ThisChartTitle=Monthly Growth Statistics
On frame 3, include the following:
//get Chart titleThis code tests to see if we have a chart title and assigns it to the ChartTitle variable. If no title exists, the words "Default Title" will appear.
var ChartTitle
if (loading.ThisChartTitle.length > 0) {
ChartTitle = loading.ThisChartTitle;
}
else {
ChartTitle = "Default Title";
}
Apply to title to the chart with:
MyChart.setChartTitle(ChartTitle);
You can use the same approach for X and Y axis titles and for sorting the data.
| » Level Intermediate |
|
Added: 2002-07-14 Rating: 8 Votes: 27 |
| » Author |
| Applications Developer Marconi Australia |
| » Download |
| Download the files used in this tutorial. |
| Download (107 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!