| Line & Area chart data |
|
|
|
| Written by sonlv |
| Tuesday, 10 March 2009 10:14 |
|
There are no translations available. CSV CSV data comes in the format: series;value of the first graph;value of the second graph;…;value of the x graph For example:
Each new line determines the new series and values of your graphs, separated by a special character (the semicolon ';' is used by default - you can change it in the settings csv_separator tags. Remember, if you are using CSV data, you must tell the software to look for that format. This is done by setting csv in the settings file. If you load your data from a file, you will probably need to change file name of your data file too. XML Here is example of XML data for line chart:
As you can see, the data comes in two parts: series and graphs. Series defines the X-axis points. Series values may be numbers or strings. The xid attribute is a unique identifier. You can have as many series as you wish. Graphs defines the graph. Every graph has ID: gid="1". This ID is necessary if the settings for the graph are located in the settings file, and the "gid" in the data file must match the "gid" in the settings file. Each graph has values. Value tag has an xid attribute, which matches the xid from series. It is not necessary that every graph has the same number of values as series, the chart will handle missing data. XML Data Attributes XML data format allows you to apply some custom formatting for your data points, color background of some series in a different color, indicate which series values should be sown on the axis, etc. These settings are included within
This will make background color from the year 1980 to the year 1990 to be filled with red color. The year 1980 will always be shown on the category axis. Another example:
This will show round bullet on this data point. This bullet will be linked to amcharts.com web site. The discription might be showed when the user rolls-over the bullet. Below is the full list of available attributes: Value of a Series can have the following attributes: Value of a Graph can have the following attributes: According by amCharts
|
