====== Settings inside HTML ======
Instead of loading settings from a file, you can pass them to the chart directly from the HTML file. The settings get embedded in the HTML code snippet that you use to add the chart to the page.
Open your web page file in your text editor and locate the code snippet. Find the "flashVars" variable and add chart_settings to it:
var flashVars =
{
path: "../../amcharts/flash/",
chart_settings: "#DADADA100"
};
Settings must be in the same format as the settings file (XML), but without line breaks.
**Important notice:**
If you include settings inside the HTML code, check that your settings don't have XML attributes, for example: . If you have this or any other attributes in the HTML code, replace all double quotes with single quotes: . If you don't do this, you will receive JavaScript errors, because your full settings string is already inside double qoutes.
====== Additional Settings ======
You can also add additional_chart_settings to the flashVars, for example:
var flashVars =
{
path: "../../amcharts/flash/",
chart_settings: "#DADADA100",
additional_chart_settings: "#BBBB00"
};
additional_chart_settings will be appended the ones loaded from a settings file or passed to the chart with the chart_settigs variable. This is useful if you have a general settings file that you use across all charts, and just want to customize a few things for this particular one. Note, fallback to JavaScript doesn't support additional_chart_settings.