Back to amCharts.com

Data in the settings file

If you don't want to separate the data from the settings, and prefer to keep them all in one file, you can inlcude your data in the settings file. Data in the settings file must be stored in CSV format, in the following location:

<settings>
   <data_sets>
      <data_set>
         <csv>
            <data>2008-03-14,25473110,2212.49
2008-03-13,24192210,2263.61
2008-03-12,20771410,2243.87
2008-03-11,25260410,2255.76
2008-03-10,21010110,2169.34
2008-03-07,23869810,2212.49
2008-03-06,21650910,2220.50
2008-03-05,22090910,2272.81
2008-03-04,26699810,2260.28
2008-03-03,21450710,2258.60</data>

Important: Avoid unnecessary spaces
Notice that the data starts right after the <data> node, and all the the new lines do not haves spaces or tabs on any side.

Back to top