There can only
be one version of this chart on an individual web page. As shown
below if more than one appears the same data is shown on both charts.
For users who want to make a simple extra alteration to the html
link the multiChart
which allows more than one chart per web page, may be used.
This is an example
of a multipurpose bar chart written with Flash MX. It can be used
to simply create a personalized bar chart, graphically displaying
'positive numbers' with any number of individual entries, to help
make the information
chart can be scrolled if there are more bars than will fit on the
screen at once.
The captions and chart data are loaded into the Flash from a separate XML file
named 'data.xml' created with a simple text editor.
the data and displays the individual bars to the correct height in proportion
The highest bar shown is automatically scaled to the highest value from the data,
with the value at the base of the chart set by the author of the XML (i.e. it
doesn't have to be zero). For example, say the highest value is 200 and the author
sets the 'lowest' attribute in the XML file to 50, the bars would be
drawn in proportion from 200 the highest bar, to 50 the base of the chart.
A text box beneath
each individual bar indicator is controlled with the 'label' attribute
and can show one of two types of information. Either the data figure
for that bar in numerals, or a simple sequential
are dynamic and written by the author of the XML file.
file has to be saved within
the same directory as the html file that actually loads
file, for the actionscript in the file to find it (in this example, in the same
directory as this html file you are viewing now 'index.html',
as it is the file that loads
The individual data items (named 1, 2, 3 etc. in the example shown below)
numerically or sequentially named, but the caption's attribute names do have
to be as shown although of course the content can be the author's own, i.e.
'title' must remain title but any text can be inserted between the " " marks.
The 'lowest' attribute is normally 0. It is not displayed but is used by the
Flash to determine the 'base line' value of the chart, it must be either
0, or equal
or lower than the lowest data number for the chart to display properly.
The 'label' attribute
controls what will be displayed in the text field beneath each bar. It should
or to "0" to display a simple sequential count.
below is an example listing of a 'data.xml' file with 100 entries:
Shown below is
an example of the html for including the chart in your web page (the
Flash movie must be called chart.swf for this to work, or you may
change both its name and the values shown below if you want to
use a different