Back to amCharts.com

Stock chart Settings Reference

This page contains a list of all settings available for Stock chart.

<settings>

These are general settings (not depending to any subsection) that apply to the entire chart.

SettingAvailable valuesDefault valueDescription
<margins>number, in pixels10The distance from the border of the Flash object to the contents.
<font>font nameArialThe font of the text that will be displayed in the chart. Make sure to use common device font names
<text_size>number11The size of the text that will be displayed in the chart.
<text_color>hex color code#000000The color of the text that will be displayed in the chart. More about hex color codes.
<redraw>true/falsefalseIf your chart's width and height is set in percent, and this is set to true, the chart will be resized proportionally when the browser window is resized.
<add_time_stamp>true/falsefalseIf this is set to true, a timestamp will be added to the chart every time data is loaded. It is useful if your data file changes frequently and you want the data to be reloaded every time the viewer reloads the page – otherwise the data might be cached in their browser.
<max_series>number150The maximum number of data points displayed at once. If the viewer selects a period that contains more data points than this number, the chart group data into longers periods. Set this to 0 to show all available data points. Please note: A lot of data points shown at once will slow down scrolling and other responses.
<max_grid_count>number8The maximum number of vertical grid lines on the chart; also, the maximum number of value labels on the X axis. The wider your chart, the higher this number can be. Make sure the values do not overlap!
<equal_spacing>true/falsetrueIf this is set to true, the data points on your chart will always be placed at equal intervals - even if the differences in their X axis values are not the same. If your data is at irregular intervals and you want your chart to reflect that, set this to false.
<start_on_axis>true/falsetrueIf this is set to true, the first and the last data point will be positioned on the Y axis. If your chart is of the column/candlestick/ohlc type, and you want your first and last columns or candles to be fully visible set this to false.
<js_enabled>true/falsetrueIf this is set to false, the chart's JavaScript communication functions will be disabled. This saves CPU resources and makes the chart respond faster, but you will not be able to use JavaScript controls with it.
<interactive>true/falsetrueIf this is set to false, all interactive features of the chart will be disabled.
<disable_custom_cursors>true/falsefalseWhether hand and resize cusrsors should be used.
<group_to_full_periods_only>true/falsefalseThis setting affects the chart only if your data contains minutes or seconds. If this is set to false, the chart will try to group data to 10 and 30 sec or min intervals. Otherwise the chart will group to full perios only (seconds → minutes → hours…)

<data_reloading>

These settings control how the chart's data is reloaded.

SettingAvailable valuesDefault valueDescription
<interval>number, in seconds0If you want your chart's data to be reloaded periodically, set the frequency here. A reload can also be triggered by a JavaScript function.
<show_preloader>true/falsetrueIf this is set to true, a preloader will be shown while the chart is reloading.
<reset_period>true/falsefalseIf this is set to true, then every time the chart reloads, it will switch to the default period. Otherwise it will stay at the last selected period.

<number_format>

These settings control how numbers are displayed on the chart. These settings have no effect on the data file!

SettingAvailable valuesDefault valueDescription
<decimal_separator>some symbol,The character that will separate the whole part of the number from the decimal places.
<thousand_separator>some symbolempty spaceThe character that will separate every three digits in the whole part of the number. Use "none" if you don't want any separator.

<digits_after_decimal>

These settings control how the digits of the decimal spaces are displayed. If the value contains more decimal spaces than allowed, they will be rounded up.

SettingAvailable valuesDefault valueDescription
<percents>number2The number of digits after the decimal separator for values that represent a percentage.
<data>numbernoneThe number of digits after the decimal separator for values representing data. If no setting is given, decimal spaces will not be rounded up - the data will be displayed in full.
<averages>number2The number of digits after the decimal separator for values that represent an average. Averages can be calculated if the number of data points for a period exceeds the maximum.

<letters>

These settings control the substitution of letters for numbers. If your data has very big values, it may be useful to represent thousands as K, millions as M, etc. This section applies only to the numbers shown as axis labels. Delete this section to use no letter substitution at all. You can add new lines for other multiples. Each line consists of a <letter> tag with a number attribute. The value of the attribute is the multiple to be substituted for the letter. For example if you have the following tag: <letter number="1000">K</letter> then a data value of 5000 will be represented on the axis label as 5K.

<data_sets>

A single Stock chart can include multiple data sources. These data sets can be displayed individually, at once, or in combinations, depending on the viewer's selection. This section includes settings for data sets. Each data set is controlled by settings nested within a separate <data_set> tag.

<data_set>

SettingAvailable valuesDefault valueDescription
<title>textnoneThe title of the data set. This will be used in various chart tools.
<short>textnoneThe short title of the data set. This will be used in the chart's legend.
<color>hex color code#FF3300, #3366CC, #00CC33, #FFCC00, #FF0099, #003366, #669933, #CC99CC, #333333, #99CC00, random colorData set color. This color will be displayed in the drop-down and list-box in a data set selector, graphs of this data set will use this color (you will be able to set separate color for each graph if you have more then one). If no value is provided, the next available color from the default array is used.
<description>textnoneThe description of the data set. It may be displayed in the chart's header. Please note: if you want to use HTML tags, you must use the format <![CDATA[text]]>
<file_name>textnoneThe name of the file that contains the data. The filename can be anything, with any extension, using relative paths; the file itself can be dynamically generated. The only important thing is that the file outputs valid CSV data.
<events_file_name>textnoneThe name of the file that contains the events (custom bullets with descriptions). See the examples folder for an example of a chart with events.
<trend_lines_file_name>textnoneThe name of file with trend lines XML. You can also include the trend lines directly to this settings file. If you do this, the trend lines from the file will not be loaded.
<main_drop_down selected="false">true/falsetrueIf your chart has more than one data set, the viewer can select the one displayed using a dropdown. If you do not want this data set to be included in the dropdown, set this to false. This setting has an attribute, selected. Its value is true/false. If the attribute is set to true, the data set will be displayed when the chart is first loaded. If no data sets are set as selected, the first data set is displayed. (Order as listed in the settings file.)
<compare_list_box selected="false">true/falsetrueIf your chart has more than one data set, the viewer can select some more data sets for comparing using a list box. If you do not want this data set to be included in the list box, set this to false. This setting has an attribute, selected. Its value is true/false. If the attribute is set to true, the data set will be selected for comparing when the chart is loaded.

<csv>

This section contains settings for configuring the data file. Data for an Stock chart must be in CSV (Comma-Separated Values) format. Using these settings you can make almost any CSV file to be used as data file of your chart.

SettingAvailable valuesDefault valueDescription
<reverse>true/falsefalseSet this to true if your data source starts from the oldest value. (This is useful if you are using a script that appends new data to the end of a file.)
<separator>text;The character that separates the columns in the CSV data.
<skip_first_rows>number0The number of rows at the start of your data file that will be skipped. (This is useful if your file has some type of header, or if the relevant data does not start from the first row.)
<skip_last_rows>number0The number of rows at the end of your data file that will be skipped. (This is useful if your file has some type of footer, etc.)
<show_last_rows>numbernoneThe number of rows, counting from the end of the file, that will be used by the chart. (This is useful if you only want to show a fixed amount of the latest data points.)
<date_format>combination of YYYY, MM, DD, hh, mm, ssYYYY-MM-DDThe format for dates in your CSV data file.
<decimal_separator>some symbol.The character that separates the whole part of the number from the decimal places, in your data file.

<columns>

You should give the names for your columns, so you could use them later. There must be at least two columns, and the one that contains the data point's timestamp must be named "date". For a candlestick and OHLC charts, your should have 5 columns, providing the timestamp, open, close, high and low values. The name of each column is contained in a <column> tag. If you have unnecessary columns in your data file, simply add empty <column></column> row.

<column>
SettingAvailable valuesDefault valueDescription
<column>date / some textnoneThe name of a column

<data>

You can include data inside the settings file. Data must be placed within <data></data>, in CSV format. Do not leave empty spaces before every row of your data!

<charts>

This sections contains settings that determine how charts look. Please note that you can have multiple charts contained within a single Flash object. The settings for each individual chart are nested inside a <chart> tag.

<chart>

SettingAvailable valuesDefault valueDescription
<height>number (0-100)noneThe relative height of this chart - what percentage of the Flash object's height it occupies. If you do not set a height, the object will be shared between all charts equally.
<title>textnoneThe title of this chart. It may be displayed above the chart, left-aligned.
<bg_color>hex color code#FFFFFFThe color of the chart background. You can use multiple color codes, separated with commas - this will produce a gradient.
<bg_alpha>number (0-100)100The opacity of the chart background.
<border_color>hex color code#CCCCCCThe color of the chart's outer border.
<border_alpha>number (0-100)100The opacity of the chart background.
<column_width>number (0-100)90The relative width of each column. This applies to column, candlestick or OHLC graphs. If equal_spacing is set to false, it is best to set this to 100. 0 means hairline.

<grid>

This section contains the settings that determine how the chart's grid is displayed. Grid settings are separated into sections for the X (horizontal) axis, and the left and right Y (vertical) axes.

<x>
SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, there will be grid lines extending from this axis.
<color>hex color code#000000The color of the grid lines.
<alpha>number (0-100)15The opacity of the grid lines.
<dashed>true/falsefalseIf this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –).
<dash_length>number, in pixels5The length of each dash.
<y_left>
SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, there will be grid lines extending from this axis. (If no graphs are assigned to this axis, this setting is always false.)
<color>hex color code#000000The color of the grid lines.
<alpha>number (0-100)15The opacity of the grid lines.
<dashed>true/falsefalseIf this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –).
<dash_length>number, in pixels5The length of each dash.
<approx_count>number5The approximate number of grid lines. They will be arranged along the plot area equally.
<y_right>
SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, there will be grid lines extending from this axis. (If no graphs are assigned to this axis, this setting is always false.)
<color>hex color code#000000The color of the grid lines.
<alpha>number (0-100)15The opacity of the grid lines.
<dashed>true/falsefalseIf this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –).
<dash_length>number, in pixels5The length of each dash.
<approx_count>number5The approximate number of grid lines. They will be arranged along the plot area equally.

<values>

This section contains the settings that determine how grid values are displayed. Values are located on an axis, next to a grid line. Value settings are separated into sections for the X (horizontal) axis, and the left and right Y (vertical) axes.

<x>
SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, values will be displayed on this axis. If you have multiple charts in a Flash object, it is usually best to enable X axis values for only one chart.
<text_color>hex color codesame as <text_color> in general settingsThe color of the value text.
<text_size>numbersame as <text_size> in general settingsThe size of the value text.
<bg_color>hex color code#FFFFFFThe color of the value background.
<bg_alpha>number (0-100)100The opacity of the value background.
<y_left>
SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, values will be displayed on this axis. (If no graphs are assigned to this axis, this setting is always false.)
<min>numbernone – calculated automaticallyThe minimum value of the axis. The axis will always start from this value, even if there is no data point mapped that far.
<max>numbernone – calculated automaticallyThe maximum value of the axis. The axis will always end at this value, even if there is no data point mapped that far.
<strict_min_max>true/falsefalseIf this is set to true, the axis will stay between Min and Max values even if there are graph points beyond those values. The parts of the graph that do not fit will be cropped. If this is set to false, the Min and Max values will be extended to fit the graph.
<integers_only>true/falsefalseIf this is set to true, only values that are whole numbers will be shown. (Values with decimal places will be ignored.)
<text_color>hex color codesame as <text_color> in general settingsThe color of the value text.
<text_size>numbersame as <text_size> in general settingsThe size of the value text.
<bg_color>hex color code#FFFFFFThe color of the value background.
<bg_alpha>number (0-100)100The opacity of the value background.
<unit>plaintextnoneThe unit of the values on this axis. If provided, it will be displayed next to the value.
<unit_position>left/rightleftWhether the unit will be displayed to the right or to the left of the value.
<duration>ss/mm/hh/DD If you want your Y axis values to be formatted as duration, set the unit of the duration of your data here.
<logarithmic>true/falsefalsespecifies whether this value axis should use logarithmic scale. Note, your data can't contain values less or equal to zero if you use logarithmic scale. When data sets are compared and values are recalculated to percents, logarithmic scale is not used.

<digits_after_decimal>

SettingAvailable valuesDefault valueDescription
<data>numberSame as <number_format> settingsHow many digits after decimal will be read from the data file. If this is left at default (none), the values from the data will simply be rounded off to the nearest whole number when displayed in the chart.
<percents>numberSame as <number_format> settingsHow many digits after decimal will be displayed for percentage (recalculated) values.
<y_right>
SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, values will be displayed on this axis. (If no graphs are assigned to this axis, this setting is always false.)
<min>numbernone – calculated automaticallyThe minimum value of the axis. The axis will always start from this value, even if there is no data point mapped that far.
<max>numbernone – calculated automaticallyThe maximum value of the axis. The axis will always end at this value, even if there is no data point mapped that far.
<strict_min_max>true/falsefalseIf this is set to true, the axis will stay between Min and Max values even if there are graph points beyond those values. The parts of the graph that do not fit will be cropped. If this is set to false, the Min and Max values will be extended to fit the graph.
<integers_only>true/falsefalseIf this is set to true, only values that are whole numbers will be shown. (Values with decimal places will be ignored.)
<text_color>hex color codesame as <text_color> in general settingsThe color of the value text.
<text_size>numbersame as <text_size> in general settingsThe size of the value text.
<bg_color>hex color code#FFFFFFThe color of the value background.
<bg_alpha>number (0-100)100The opacity of the value background.
<unit>plaintextnoneThe unit of the values on this axis. If provided, it will be displayed next to the value.
<unit_position>left/rightleftWhether the unit will be displayed to the right or to the left of the value.
<duration>ss/mm/hh/DD If you want your Y axis values to be formatted as duration, set the unit of the duration of your data here.
<logarithmic>true/falsefalsespecifies whether this value axis should use logarithmic scale. Note, your data can't contain values less or equal to zero if you use logarithmic scale. When data sets are compared and values are recalculated to percents, logarithmic scale is not used.

<digits_after_decimal>

SettingAvailable valuesDefault valueDescription
<data>numberSame as <number_format> settingsHow many digits after decimal will be read from the data file. If this is left at default (none), the values from the data will simply be rounded off to the nearest whole number when displayed in the chart.
<percents>numberSame as <number_format> settingsHow many digits after decimal will be displayed for percentage (recalculated) values.

<legend>

This section contains settings that control the legend. The legend is displayed above the chart, next to its title.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the legend for this chart will be displayed.
<text_size>numbersame as <text_size> in general settingsThe size of the legend text.
<text_color>hex color codesame as <text_color> in general settingsThe color of the legend text.
<value_color>hex color codesame as <legend><text_color>The color of the values (can be different from the main text color)
<positive_color>hex color code#00CC00If the legend shows the value change, this is the color of a positive change.
<negative_color>hex color code#CC0000If the legend shows the value change, this is the color of a negative change.
<show_date>true/falsefalseIf this is set to true, the date of currently hovered data point will be shown on the chart. If you have multiple charts in a Flash object, it is best to only display the date in one chart.
<hide_date_on_period>true/falsefalseIf this is set to true, the date will only be displayed when the viewer's mouse is over the plot area. Otherwise the date in the legend will be hidden.
<key_size>number10The size of a color key in the legend.
<key_type>round/square/lineroundThe shape of a color key in the legend.
<fade_others_to>number (0-100)noneWhen the user rolls-over a legend entry key, the other graphs will fade to this setting so that the rolled over graph would stand out from the rest. Recommended setting is 10-20. Most likely you should set <graphs_on_off> to false if you use this setting.

<comparing>

This section contains settings that control the comparison graph. This is a special graph that is displayed when comparing two or more data sets on a single chart.

SettingAvailable valuesDefault valueDescription
<recalculate>true/falsetrueIf this is set to true, the values of the data sets are recalculated as percentages. This is useful if one data set has values far higher than the other.
<recalculate_from_start>true/falsefalseIf the <recalculate> setting is set to true, the chart recalculates values to percents. If this setting is set to false, then it takes the first value of a selected period as a base value. If you set this setting to "true", the first value of a graph will be used as base value.
<width>number, in pixels0The width of the comparison graph. 0 means hairline.
<alpha>number (0-100)100The opacity of the comparison graph.
<dashed>true/falsefalseIf this is set to true, the comparison graph will be dashed.
<use_graph_color>true/falsefalseIf this is set to true, the comparison graph will use the main data set graphs color. This makes sense if you set <dashed> to "true".
<base_date>datenoneThe base date for recalculation. If this is not set, the first date in the data set or selected period is used.
<smoothed>true/falsefalseWhether to smooth line or not.

<events>

This section contains settings that control how events are displayed. Custom event bullets can be defined in a separate file, events.xml (see the examples/events/ folder).

SettingAvailable valuesDefault valueDescription
<show_balloon>true/falsetrueIf this is set to true, when a viewer rolls over an event bullet, a balloon will pop up. The balloon will contain a description of the event.
<show_date>true/falsetrueWhether to show date of the event in the balloon.
<use_hand_cursor>true/falsetrueIf this is set to true, the mouse pointer will change to a hand when it rolls over the event bullet.
<url_target>_blank, _top…noneThe target parameter of the URL, if any. Use "_blank" to open the URL in a new browser window.
<bullet>sign / flag / pin / round / square / round_outlined / square_outlined / round_outline / square_outline / horizontal_line / vertical_line / horizontal_line_dashed / vertical_line_dashedsignThe shape of the bullet. Only the sign, flag and pin bullets can display letters inside them.
<color>hex color code#FFFFFFThe color of the bullet.
<color_hover>hex color code#CC0000The color of the bullet when the mouse pointer is hovering over it.
<border_color>hex color code#ABABABThe color of the bullet's outline.
<border_alpha>0 - 100100The opacity of the bullet's outline.
<text_color>hex color code#000000The color of the text inside the bullet. (This text is provided in events.xml)
<size>number15The size of the bullet.
<hide_period>mm / hh / DD / WW / MM / YYYYnoneIf the chart contains a lot of data points, they are automatically grouped into periods. If the chart is grouped into periods as in this setting, or longer, the event bullets are not displayed. For example, if the value of this setting is MM, and the data is grouped into months or years, event bullets will not be shown.

<trend_lines>

This section contains settings that control how trend lines are displayed. Each event can be customized individually in a separate file, trend_lines.xml (see the examples/drawing_trend_lines/ folder).

SettingAvailable valuesDefault valueDescription
<drawing_enabled>true/falsefalseIf drawing trend lines is enabled, user will see two icons - a pencil and eraser on top right corner of a chart.
<pointer_color>hex color code#000000The color of mouse pointer which is visible when pencil icon is pressed.
<active_line_color>hex color code#CC0000The color of a line while drawing it.
<line_color>hex color code#00CC00The color of trend lines.
<line_alpha>0 - 100100The opacity of trend lines.
<line_width>number0The trend line thickness. (use 0 for hairline)
<dash_length>number0The the length of a dash. (use 0 for solid trend line)
<axis>left/rightleftThe axis of the chart to which trend lines will be assigned.

<graphs>

A single chart can have multiple graphs. The settings for each graph are nested inside a <graph> tag.

<graph>
SettingAvailable valuesDefault valueDescription
<axis>left/rightleftThe graph will be mapped to this vertical axis.
<type>line / column / candlestick / ohlc / step /step_no_riserslineThe type of the graph.
<connect>true/falsetrueIf this is set to true, and there is some data missing, the nearest data points will be connected. If this is set to false, missing data will result in gaps in the graph line.
<period_value>close / open / low / high / sum / averagecloseIf the viewer selects a period that contains more data points than the <max_series> value, the chart will automatically switch to a longer period. This controls which value of the period will be used for this "grouped" data point. For example, if your data is grouped into months, and you set "open" here, the value of the first available day of the month will be used. If you set "close" - the value of the last available day of the month will be used. For stock charts, "close" is recommended with value charts; "average" is recommended with volume charts. For statistics charts, "sum" is recommended.
<compare_source>The name of a column from <data_set><csv><columns><column>noneThe title of the CSV data column that will be used as a data source for the comparison graph. Leave empty if you do not want this graph to be compared.
<title>textnoneThe title of the graph (will be displayed in the legend).
<color>hex color codesame as <data_set><color>The color of the graph.
<cursor_color>hex color codesame as <data_set><color>The color of the small bullet chasing the mouse along the graph line.
<cursor_alpha>number (0-100)100The opacity of the bullet.
<positive_color>hex color code#00CC00For candlestick and OHLC graphs, this is the color of a positive change.
<negative_color>hex color code#CC0000For candlestick and OHLC graphs, this is the color of a negative change.
<width>number, in pixels0the width of the graph line, or the high/low mark of a candlestick. If column_width is set to 0, this will also be the width of vertical lines.
<alpha>number (0-100)100The opacity of the graph line, or the high/low mark of a candlestick.
<fill_alpha>number (0-100)0The opacity of the graph fill.
<bullet>round / square / round_outlined / square_outlined / round_outline / square_outlinenoneThe shape of the bullet. Only line and step graphs can have bullets.
<bullet_size>number6The size of the bullet.
<smoothed>true/falsefalseWhether to smooth line or not.
<stack_to>gid of another graphnoneYou can stack this graph to another. Graphs can not be smoothed. The graph to which you are stacking must be described above the graph which you are stacking.
<min_max>true/falsetrueWhether to include this graph when calculating min and max values or not.

<data_sources>
Data sources define which column from your data will be used to draw the graph. Different chart types require different number of data sources.

SettingAvailable valuesDefault valueDescription
<open>The name of a column from <data_set><csv><columns><column>noneOnly OHLC and Candlestick chart types require this setting
<close>The name of a column from <data_set><csv><columns><column>noneAll chart types require this setting
<low>The name of a column from <data_set><csv><columns><column>noneOnly OHLC and Candlestick chart types require this setting
<high>The name of a column from <data_set><csv><columns><column>noneOnly OHLC and Candlestick chart types require this setting

<legend>
This subsection contains settings that define what information should be shown in the legend. The setting values will be used as templates for the legend entries. Legend can have four states:

SettingAvailable valuesDefault valueDescription
<date key="true" title="true">see description belownoneWhat legend should display when the mouse pointer is over a plot area and no data sets are selected for comparing.
<period key="true" title="true">see description belownoneWhat legend should display when the mouse pointer is not over a plot area and no data sets are selected for comparing.
<date_comparing key="true" title="true">see description belownoneWhat legend should display when the mouse pointer is over a plot area and at least one data set is selected for comparing.
<period_comparing key="true" title="true">see description belownoneWhat legend should display when the mouse pointer is not over a plot area and at least one data set is selected for comparing.
<comparing_only>True/falsefalseIf this is set to true, this graph's legend will not be displayed, unless the graph is being compared.

<digits_after_decimal>

SettingAvailable valuesDefault valueDescription
<data>numberSame as <number_format> settingsHow many digits after decimal will be read from the data file. If this is left at default (none), the values from the data will simply be rounded off to the nearest whole number when displayed in the chart.
<percents>numberSame as <number_format> settingsHow many digits after decimal will be displayed for percentage (recalculated) values.

Each tag has two parameters: key and title. The value of both parameters is true/false. If key is set to true, a color key is displayed next to a legend entry. If title is set to true, the title of the data set is displayed next to a legend entry. By default, both these settings are set to "true".

You can use special for the values of the settings. These get replaced automatically with the relevant information.

The following tags are available:

{open} {close} {high} {low} {sum} {average}

{open.percents} {close.percents} {high.percents} {low.percents}

{open.change} {close.change} {high.change} {low.change}

{close.percents.single} {close.change.single}

Please note: the legend is not wrapped. Be careful about the length of your legend entries!

<date_formats>

This section contains the settings that control how dates are displayed. Dates are displayed in two places on a chart: on the X axis, and in the legend. Data is displayed on a chart for a particular period length. The date format is different for each period. The following time tags are used:

  • ss - seconds
  • mm - minutes
  • hh - hours
  • DD - date
  • WW - the name of a weekday
  • MM - month (number)
  • month - name of month (can be set in <strings> section)
  • YYYY - year
SettingAvailable valuesDefault valueDescription
<first_week_day>0-61The day when week starts. 0 - Sunday, 1 - Monday, 2 - Tuesday…
<hour_format>12/2424Whether timestamps will be displayed in 12-hour or 24-hour format. Please note: the data must still give all timestamps in 24-hour format!
<events>date formatSame as <data_set> settingsThe format of the date, when displayed in an event balloon.

<x_axis>

SettingAvailable valuesDefault value
<seconds>time tagshh:mm:ss
<minutes>time tagshh:mm
<hours>time tagshh:mm
<days>time tagsmonth DD
<months>time tagsmonth
<years>time tagsYYYY

<legend>

SettingAvailable valuesDefault value
secondstime tagshh:mm:ss
minutestime tagshh:mm
hourstime tagshh:mm
daystime tagsmonth DD
weekstime tagsweek of month DD, YYYY
monthstime tagsmonth
yearstime tagsYYYY

<data_set_selector>

This section contains settings that control the data set selector - a dropdown and a list boxes which allows the viewer to choose which data sets will be displayed on the chart.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the data set selector is displayed next to the chart.
<position>right/leftrightThe position of the data set selector relative to the chart.
<width>number, in pixels180The width of the data set selector.
<text_size>numbersame as <text_size> in general settingsThe size of the text in the data set selector.
<text_color>hex color codesame as <text_color> in general settingsThe color of the text in the data set selector.
<balloon_text>textnoneSometimes data set title doesn't fit in the dropdown. If you set a value like {title} here, the roll-over balloon will display full title so users could read it. You can also display short title and description in this balloon. Available special codes: {title} {short} {description}
<max_comparing_count>number3The maximum number of data sets that can be compared at once.
<main_drop_down_title>textnoneThe title above the data set selector's main dropdown list.
<compare_list_box_title>textnoneThe title above the data set selector's secondary dropdown list.

<drop_down>

These settings control the look of the data set selector's dropdown and list-box.

SettingAvailable valuesDefault valueDescription
<bg_color>hex color code#FFFFFFThe background color.
<bg_color_selected>hex color code#EEEEEEThe background color of a selected item.
<bg_color_hover>hex color code#DDDDDDThe background color of an item that the mouse pointer is hovering over.
<text_size>numbersame as <data_set_selector><text_size>The size of the text in the dropdown list.
<text_color>hex color codesame as <data_set_selector><text_color>The color of the text in the dropdown list.
<text_color_selected>hex color codesame as <data_set_selector><text_color>The color of the text in a selected item.
<border_color>hex color code#ABABABThe color of the dropdown list's border.
<border_width>number0The width of the dropdown list's border.
<scroller_color>hex color code#C7C7C7The color of the dropdown list's scroller.
<scroller_bg_color>hex color code#EFEFEFThe color of the dropdown list's scroll bar.
<arrow_color>hex color code#ABABABthe color of the dropdown list's pointer.
<corner_radius>number3The radius of the dropdown list's corners (set to 0 for square corners).

<period_selector>

This section contains settings that control the period selector.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the period selector is displayed.
<custom_period_enabled>true/falsetrueIf this is set to true, the custom date input fields will be displayed.
<position>top / bottombottomThe position of the period selector relative to the plot area.
<text_size>numbersame as <text_size> in general settingsThe size of the text in the period selector.
<text_color>hex color codesame as <text_color> in general settingsThe color of the text in the period selector.
<zoom_to_end>true/falsetrueIf this is set to true, the predefined period buttons will select the period from the end of data, otherwise - from the beginning.
<periods_title>textnoneThe text that will appear next to predefined periods buttons.
<custom_period_title>textnoneThe title that will appear next to custom period input fields.
<from>datenoneUse this to set the start of the period that will be displayed when the chart first loads.
<to>datenoneUse this to set the end of the period that will be displayed when the chart first loads.

<button>

These settings control the period selector's buttons.

SettingAvailable valuesDefault valueDescription
<bg_color>hex color code#FFFFFFThe background color of a button.
<bg_color_hover>hex color code#ABABABThe background color of a button that the mouse pointer is hovering over.
<bg_color_selected>hex color code#ABABABThe background color of a selected button.
<text_size>numbersame as <period_selector><text_size>The size of the text on the button.
<text_color>hex color codesame as <period_selector><text_color>The color of the text on the button.
<text_color_hover>hex color codesame as <period_selector><text_color>The color of the text on the button when the mouse pointer is hovering over it.
<text_color_selected>hex color codesame as <period_selector><text_color>The color of the text on a selected button.
<border_color>hex color code#ABABABThe color of the button's border.
<border_color_hover>hex color code#ABABABThe color of the button's border when the mouse pointer is hovering over it.
<border_color_selected>hex color code#ABABABThe color of the selected button's border.
<border_width>number0The width of the button's border.
<corner_radius>number3The radius of the button's corners (set to 0 for square corners).

<input>

These settings control the period selector's input fields (text boxes).

SettingAvailable valuesDefault valueDescription
<bg_color>hex color code#FFFFFFThe color of the input field's background.
<text_size>numbersame as <period_selector><text_size>The size of the text in the input field.
<text_color>hex color codesame as <period_selector><text_color>The color of the text in the input field.
<border_color>hex color code#ABABABThe color of the input field's border.
<border_width>number0The width of the input field's border.
<corner_radius>number3The radius of the input field's corners (set to 0 for square corners).

<periods>

A period selector can have predefined buttons; when a viewer clicks the button, this period is selected on the chart. Each such button is contained in a period tag. This tag's value is the text displayed on the button. The tag also has parameters that determine its behavior. The following parameters are available: type, count and selected. Type determines the period type selected by this button. The following period types are available:

  • ss - seconds
  • mm - minutes
  • hh - hours
  • DD - days
  • MM - months
  • YYYY - years
  • YTD - Year To Date
  • MAX - Maximum (display the entire data set)

Count determines the number of periods to be displayed.

Selected is a true/false tag; if it is set to true, that button is clicked automatically when the chart is loaded. So you can have a button defined by the following tag:

<period type="mm" count="30" selected="false">Last Half-Hour</period>

A tag of the YTD type can have one of two counts: 1 or 0. If the count is 0, the chart will show all data from the last available date in the previous year. If the count is 1, the chart will show all data from the first available date in this year.

<header>

This section contains settings that control the chart's header. The header can be displayed at the top of the chart and can contain the chart's title, short title, and/or description. (The actual contents of the header are set in <data_set> settings - these settings only control its look and formatting.)

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the header is displayed.
<text>textnoneThe contents of the header. You can use HTML tags for formatting, and special tags in curly brackets {} for the content: {title} {short} {description}. Please note: if you want to use HTML tags, you must use the format <![CDATA[text]]>
<margins>number0The distance between the header border and text.
<text_size>numbersame as <text_size> in general settingsThe size of the header text.
<text_color>hex color codesame as <text_color> in general settingsThe color of the header text.
<bg_color>hex color code#FFFFFFThe color of the header background.
<bg_alpha>number (0-100)0The opacity of the header background.
<border_alpha>number (0-100)0The opacity of the header border.
<border_color>hex color code#ABABABThe color of the header border.
<border_width>number0The width of the header border. 0 means hairline.
<corner_radius>number3The radius of the header's corners (set to 0 for square corners).

<balloon>

This section contains the settings that control the look of balloons. A balloon appears when the viewer rolls his mouse pointer over a custom bullet (event).

SettingAvailable valuesDefault valueDescription
<bg_color>hex color code#FFFFFFThe color of the balloon's background.
<bg_alpha>number (0-100)90The opacity of the balloon's background.
<text_color>hex color code#000000The color of the balloon's text.
<text_size>numbersame as <text_size> in general settingsThe size of the balloon's text.
<border_color>hex color code#B81D1BThe color of the balloon's border.
<border_width>number2The width of the balloon's border. 0 means hairline.
<border_alpha>number (0-100)100The opacity of the balloon's border.
<corner_radius>number3The radius of the balloon's corners (set to 0 for square corners).

<background>

This section contains settings that control the chart's background.

SettingAvailable valuesDefault valueDescription
<color>hex color code#FFFFFFThe color of the chart's background.
<alpha>number (0-100)0The opacity of the chart's background.
<border_colorhex color code#000000The color of the chart's border.
<border_alpha>number (0-100)0The opacity of the chart's border.
<file>file namenoneThe file name of a custom swf, jpg, gif or png image which will be loaded for the background. This file must be located in the "path" folder.

<plot_area>

This section contains settings that control the plot area.

SettingAvailable valuesDefault valueDescription
<margins>number0The distance between the plot area and the charts area.
<bg_colorhex color code#FFFFFFThe color of the plot area's background.
<bg_alpha>number (0-100)90The opacity of the plot area's background.
<border_alphanumber (0-100)0The opacity of the plot area's border.
<border_color>hex color code#ABABABThe color of the plot area's border.
<border_width>number0The width of the plot area's border. 0 means hairline.
<corner_radius>number>3The radius of the plot area's corners (set to 0 for square corners).

<scroller>

This section contains settings that control the chart's scroller. The scroller is a simplified representation of the entire data set, displayed at the bottom of the Flash object. It is used by the viewer to move back and forth through the data set.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the scroller is visible to the viewer.
<height>number, in pixels45The height of the scroller.
<graph_data_source>The name of a column from <data_set><csv><columns><column>noneThe scroller will use one column of data to represent the data set.
<bg_color>hex color code#EEEEEEThe color of the scroller's background.
<bg_alpha>number (0-100)100The opacity of the scroller's background.
<selected_color>hex color code#FFFFFFThe background color of the scroller's selected section.
<graph_type>line/steplineThe scroller graph type
<graph_color>hex color code#ABABABThe color of the graph in the scroller's unselected section.
<graph_alpha>number (0-100)50The opacity of the graph in the scroller's unselected section.
<graph_width>number0The width of the graph line.
<graph_fill_alpha>number (0-100)20The opacity of the graph fill (the area between the graph line and the X axis, below each data point) in the scroller's unselected section.
<graph_selected_color>hex color codesame as selected <data_set><color>The color of the graph in the scroller's selected section.
<graph_selected_alpha>number (0-100)50The opacity of the graph in the scroller's selected section.
<graph_selected_fill_alpha>number (0-100)20The opacity of the graph fill (the area between the graph line and the X axis, below each data point) in the scroller's selected section.
<graph_selected_fill_color>hex color codesame as <graph_selected_color>The selected part of a graph can be filled with some color. If you separate two color codes with a comma here, the first one will be used to fill the part above the 0 and the second one - below the 0
<resize_button_style>arrow/draggerarrowThe shape of the button used to resize the selected section. (There are two such buttons, for the beginning and the end of the section.)
<resize_button_color>hex color code#000000The color of the resize button. This setting is only valid if the button is an arrow!
<resize_pointer_color>hex color code#000000The color of the mouse pointer while it is hovering over the resize button.
<connect>true/falsetrueIf this is set to true, and there is some data missing, the nearest data points will be connected. If this is set to false, missing data will result in gaps in the graph line.
<frequency>number1If your data set has a lot of values the scroller might significantly slow down the whole chart. (Provided you have some graph in the scroller). This setting can help solve the problem. I.e. if you set <scroller><frequency>5</frequency></scroller>, the graph in the scroller will take only every 5th data point. Other values will be skipped.

<grid>

These settings control the scroller's grid.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the grid is visible to the viewer.
<max_count>number5The maximum number of vertical grid lines in the scroller's plot area.
<color>hex color code#FFFFFFThe color of the grid lines.
<alpha>number (0-100)40The opacity of the grid lines.
<dashed>true/falsefalseIf this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –).
<dash_length>number, in pixels5The length of each dash.

<values>

These settings control the values displayed on the scroller's X axis.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, values are displayed on the scroller's X axis.
<text_color>hex color codesame as <text_color> in general settingsThe color of the value text.
<text_size>numberSame as <text_size> in general settingsThe size of the value text.

<playback>

These settings control the scroller's playback controls. These can be used to set the chart to play through the entire data set.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsefalseIf this is set to true, the playback controls are available to the viewer.
<color>hex color code#000000The color of the playback controls.
<color_hover>hex color code#CC0000The color of the playback controls when the mouse pointer is hovering over them.
<speed>number5The default playback speed.
<max_speed>number10The maximum playback speed.
<loop>true/falsetrueIf this is set to true, the chart will play back through the data set over and over until stopped.

<speed_indicator>

These settings control the slider that is used to set and show the chart's playback speed.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to true, the speed indicator is available to the viewer.
<color>hex color code#000000The color of the speed indicator.
<bg_color>hex color code#ABABABThe color of the speed indicator's background.

<context_menu>

This subsection contains settings for the context menu that will appear when the viewer right-clicks on your chart. See adding custom commands to right click menu for more information.

<default_items>

SettingAvailable valuesDefault valueDescription
zoomtrue/falsefalseIf this is set to true, the Flash player's zoom controls are included in the right-click menu.
printtrue/falsetrueIf this is set to true, the Flash player's print controls are included in the right-click menu.

<export_as_image>

This subsection lists the settings that control the function of saving the chart as an image file.

SettingAvailable valuesDefault valueDescription
filefilenamenone – disabledIf you provide a filename, the viewer will be able to save the chart as an image. The option will be available in the right-click menu.
target_blank, _top…none – file opens in the same windowThe target parameter for opening the image file in the browser. Use "_blank" to open the URL in a new browser window.
xnumber, in pixels, percent, or reversed0The horizontal position of the "Collecting data" text. This text will appear while the chart is being exported. The coordinate is counted from the left. You can set the value in percent (such as 20%). You can also reverse the number, so it is counted from the right to left (such as !20).
ynumber, in pixels, percent, or reversedbottom-alignedThe vertical position of the "Collecting data" text. This text will appear while the chart is being exported. The coordinate is counted from the top. You can set the value in percent (such as 20%). You can also reverse the number, so it is counted upwards from the bottom (such as !20).
colorhex color code#BBBB00The color of the "Collecting data" text background.
alphanumber (0-100)0The opacity of the "Collecting data" text background.
text_colorhex color codesame as <text_color> in general settingsThe color of the "Collecting data" text.
text_sizenumbersame as <text_size> in general settingsThe size of the "Collecting data" text.

<strings>

This section contains the texts of various messages displayed by the chart.

SettingAvailable valuesDefault valueDescription
<processing_data>textProcessing dataThe text that will be displayed while the chart is building the graphs.
<loading_data>textLoading dataThe text that will be displayed while the chart is loading the data set.
<wrong_date_format>textCheck date formatThe text that will be displayed if the viewer enters an invalid date.
<export_as_image>textExport as imageThe text that will be displayed in the right-click menu. Clicking on this text will begin the image export procedure.
<collecting_data>textCollecting dataThe text that will be displayed while the chart collects data for image export.

<duration_units>

SettingAvailable valuesDefault valueDescription
<ss>text Unit of seconds(in case your Y axis displays duration)
<mm>text:Unit of minutes (in case your Y axis displays duration)
<hh>text:Unit of hours (in case your Y axis displays duration)
<DD>textd. Unit of days (in case your Y axis displays duration)

<months>

SettingAvailable valuesDefault valueDescription
<jan>textJanName for January
<feb>textFebName for February
<mar>textMarName for March
<apr>textAprName for April
<may>textMayName for May
<jun>textJunName for June
<jul>textJulName for July
<aug>textAugName for August
<sep>textSepName for September
<oct>textOctName for October
<nov>textNovName for November
<dec>textDecName for December

<weekdays>

SettingAvailable valuesDefault valueDescription
<sun>textSunName for Sunday
<mon>textMonName for Monday
<tue>textTueName for Tuesday
<wed>textWedName for Wednesday
<thu>textThuName for Thursday
<fri>textFriName for Friday
<sat>textSatName for Saturday

<error_messages>

This section controls how error messages look. It applies to all error messages, except the one shown when the settings file is not found.

SettingAvailable valuesDefault valueDescription
<enabled>true/falsetrueIf this is set to false, all error messages will be disabled.
<color>hex color code#B81D1BThe background color of the error message box.
<alpha>number, in percent100The opacity of the error message box.
<text_color>hex color code#FFFFFFThe color of the error message text.
<text_size>numberSame as chart settingsThe size of the error message text.
Back to top