Back to amCharts.com

Data in the settings file

If you don't want to separate the data from the settings, and have them all in one file, you can inlcude your data in the settings file. To do this, place a <data> XML node within <settings>. The data must be placed within the <data> XML node. It may be in both CSV and XML format.

XML example:

<settings>
 
  <!-- all the settings go here -->
 
  <data>
    <chart>
      <series>
       	<value xid="100">1950</value>
        .............................
      </series>
      .........
      .........
    </chart>
  </data> 
</settings>

CSV example:

<settings>
 
<!-- all the settings go here -->
 
<data>
1950;10;66
1951;15;16
1952;66;98
..........
</data> 
</settings>
Back to top