Split your settings into several files

With line & area chart v 1.2.3 you can split your settings into as many different files as you need. You may have one settings file for settings like background, plot area and similar and another file for graph settings. Another example:

Imagine you have several identical charts, only some labels are different. Now you can have one settings file for all the charts and three additional files for every chart labels.

All you need to do is to set several files, separated by commas:

so.addVariable("settings_file", escape("amline/amline_settings1.xml,amline/amline_settings2.xml"));

There is one more variable which you can pass:

so.addVariable("additional_chart_settings", "<settings>..</settings>");

Settings, passed with this variable will be appended to loaded or set with chart_settings variable.

This feature will be added to other charts soon.

Download line & area chart

3 Responses to “Split your settings into several files”

  1. Antanas Marcelionis. Flash developer’s blog » Blog Archive » All charts can have multiple settings files Says:

    […] http://www.marcelionis.com/2007/08/22/split-your-settings-into-several-files/ […]

  2. Anup Says:

    This sounds really useful. I especially look forward to this feature on the other types of charts!

  3. admin Says:

    Now all charts support any number of settings files

Leave a Reply

All support questions should be posted to support forums:
AmCharts: http://www.amcharts.com/forum/
AmMap: http://www.ammap.com/forum/