This page contains a list of all settings available for Line & Area chart.
These are general settings (not depending to any subsection) that apply to the entire chart.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| data_type | xml/csv | xml | The format of the data. This tells the software how to interpret the data it finds. |
| csv_separator | some symbol | ; | The character that will separate columns in a CSV file. |
| skip_rows | number | 0 | If you are using a CSV file, this setting allows you to skip the first several rows of the file (for example, if it contains metadata). |
| font | font name | Arial | The font of the text that will be displayed in the chart. Make sure to use common device font names |
| text_size | number | 11 | The size of the text that will be displayed in the chart. |
| text_color | hex color code | #000000 | The color of the text that will be displayed in the chart. More about hex color codes. |
| decimals_separator | some symbol | , | The character that will separate the whole digits from the decimal digits in a number. |
| thousands_separator | some symbol | Empty space | The character that will separate each three whole digits in a number (counting right-to-left from the decimal). |
| scientific_min | number | 0.000001 | If absolute value of your number is equal or less then scientific_min, this number will be formatted using scientific notation, for example: 0.0000023 → 2.3e-6 |
| scientific_max | number | 1000000000000000 | If absolute value of your number is equal or bigger then scientific_max, this number will be formatted using scientific notation, for example: 15000000000000000 → 1.5e16 |
| digits_after_decimal | number | 0 | If a value has less digits after the decimal separator than this number, zeroes will be added to the end. For example, if this is set to 2 and you have a value of 15.6, then the viewer will see it as 15.60. This is useful for charts showing prices, etc. |
| reload_data_interval | number, in seconds | 0 | How often the chart will reload the data. This is useful if your data is updated very often, and you want to show the change in data without reloading the page. |
| redraw | true/false | false | If 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/false | false | If this is set to true, a timestamp will be added to the data file name every time data is loaded. This is useful if you are using dynamic data and the reload_data_interval setting. It is also 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. |
| precision | Number | 2 | How many decimal places will be shown for values which are calculated by the software (percent values). This does not affect the contents of the data file. |
| preloader_on_reload | true/false | false | If this is set to true, progress bar will be shown while data is being reloaded. |
| connect | true/false | false | If this is set to true, the graph will continue even through a point above the X-axis for which there is no value. The default is false, and the graph will stop at the previous value, starting again at the next available value. |
| hide_bullets_count | number | none | If there are more graph points than specified here, the bullets will not be shown. This does not affect custom bullets. |
| link_target | _blank, _top… | none – link opens in the same window | The target parameter of the bullet URL, if any. Use "_blank" to open the URL in a new browser window. |
| start_on_axis | true/false | true | If this is set to true, the graph will begin from the Y-axis. If this is set to false, the graph will begin in the plot area, half way between the Y-axis and the first X-axis point. |
| rescale_on_hide | true / false | true | When you click on the legend key, the graph is hidden or shown. The chart recalculates min and max values (rescales the chart) when you do this. You can turn this feature off by setting this setting to "false". |
| colors | hex color codes | #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066, #555555 | These colors will be used if the graph's color is not set. |
This subsection lists the settings that control the chart's background.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| color | hex color code | #FFFFFF | The color of the chart background. You can use multiple color codes, separated with commas - this will produce a gradient. |
| alpha | number (0-100) | 0 | Background opacity. This applies to the background color. Set this to 0 if you are using a custom SWF (Flash object) or JPG image as a background. Set it to a higher number if you are using a background color. If this is set to 0, the background color defined in the HTML code snippet is used. |
| border_color | hex color code | #FFFFFF | The color of the chart's outer border. |
| border_alpha | number (0-100) | 0 | The opacity of the chart's outer border. |
| file | filename | none | The name of the SWF or JPG file that will be used as the background image. The file must be placed in the "path" folder. |
This subsection determines the look of the area between the axes – the area where the chart will be drawn.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| color | hex color code | #FFFFFF | The background color of the plot area. You can use multiple color codes, separated with commas - this will produce a gradient. |
| alpha | number (0-100) | 0 | The opacity of the plot area's background. Change this from 0 to make the plot area background different from the chart background. |
| border_color | hex color code | #000000 | The color of the plot area's borders. |
| border_alpha | number (0-100) | 0 | The opacity of the plot area's borders. |
This subsection determines the size of the plot area margins.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| left | number, in pixels | 60 | The size of the left margin. |
| top | number, in pixels | 60 | The size of the top margin. |
| right | number, in pixels | 60 | The size of the right margin. |
| bottom | number, in pixels | 80 | The size of the bottom margin. |
This subsection lists settings that control the chart's scroll bar.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to True, the scroll bar will be displayed when the chart is zoomed in. |
| y | number, in pixels | none (will be displayed above the plot area) | The vertical position of the scroll bar. 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). |
| color | hex color code | #DADADA | The color of the scroll bar indicator. You can use multiple color codes, separated with commas - this will produce a gradient. |
| alpha | number (0-100) | 100 | The opacity of the scroll bar. |
| bg_color | hex color code | #F0F0F0 | The color of the scroll bar background. You can use multiple color codes, separated with commas - this will produce a gradient. |
| bg_alpha | number (0-100) | 100 | The opacity of the scroll bar background. |
| height | number, in pixels | 10 | The height of the scroll bar. |
This subsection lists settings that control the chart grid. Please note that a chart can have two Y-axes, one on the left and one on the right.
This subsection lists settings that control the vertical lines of the grid (intersecting with the X-axis).
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, vertical grid lines will be displayed. |
| color | hex color code | #000000 | The color of the grid lines. |
| alpha | number (0-100) | 15 | The opacity of the grid lines. |
| dashed | true/false | false | If this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –). |
| dash_length | number, in pixels | 5 | The length of each dash. |
| approx_count | number | 4 | The approximate number of gridlines. They will be arranged along the plot area equally. |
This subsection lists settings that control the horizontal lines of the grid (intersecting with the left Y-axis). The grid is only displayed if there is at least one graph with values on the left Y-axis.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, horizontal grid lines will be displayed. |
| color | hex color code | #000000 | The color of the grid lines. |
| alpha | number (0-100) | 15 | The opacity of the grid lines. |
| dashed | true/false | false | If this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –). |
| dash_length | number, in pixels | 5 | The length of each dash. |
| approx_count | Number | 10 | The approximate number of gridlines. They will be arranged along the plot area equally, intersecting with Y-axis value points. |
This subsection lists settings that control the horizontal lines of the grid (intersecting with the right Y- axis). The grid is only displayed if there is at least one graph with values on the right Y-axis.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, horizontal grid lines will be displayed. |
| color | hex color code | #000000 | The color of the grid lines. |
| alpha | number (0-100) | 15 | The opacity of the grid lines. |
| dashed | true/false | false | If this is set to true, the grid lines will not be continuous. They will look like a line of dashes (– – – –). |
| dash_length | number, in pixels | 5 | The length of each dash. |
| approx_count | Number | 10 | The approximate number of gridlines. They will be arranged along the plot area equally, intersecting with Y-axis value points. |
This subsection lists settings that control the way values on axes are displayed. Please note that a chart can have two Y-axes, one on the left and one on the right.
This subsection lists settings that control the X-axis values.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, X-axis values will be shown. |
| rotate | Number (0-90) | 0 | The angle of rotation for the values. You can rotate them by 90 degrees with no additional requirements. If you want to rotate the values by 1 to 89 degrees, you must have the SWF file for that font, placed in the [path]/fonts folder. More about rotating axis values. |
| frequency | Number | 1 | The ratio of shown values to X-axis grid lines. 1 means a value will be shown at every grid line; 2 means a value will be shown at every second grid line, etc. The higher the number, the less values will be shown. |
| skip_first | true/false | true | If this is set to true, the first value will be skipped. |
| skip_last | true/false | false | If this is set to true, the last value will be skipped. |
| color | hex color code | same as <text_color> in general settings | The color of the text. |
| text_size | number | same as <text_size> in general settings | The size of the text. |
| inside | true/false | false | If this is set to true, the values of this axis will be displayed inside the plot area (above the axis). |
This subsection lists settings that control the Y-axis values. The axis is only visible if there is at least one graph with values on the left Y-axis.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, Y-axis values will be shown. |
| reverse | true/false | false | If this is set to true, the values will be reversed on the Y-axis – the largest value will be placed closest to the point where the Y and X axes intersect. The graph will be re-plotted accordingly. |
| rotate | Number (0-90) | 0 | The angle of rotation for the values. You can rotate them by 90 degrees with no additional requirements. If you want to rotate the values by 1 to 89 degrees, you must have the SWF file for that font, placed in the [path]/fonts folder. More about rotating axis values. |
| min | number | none – calculated automatically | The minimum value of the Y-axis. The axis will always start from this value, even if there is no graph point mapped that far. |
| max | number | none – calculated automatically | The maximum value of the Y-axis. The axis will always end at this value, even if there is no graph point mapped that far. |
| strict_min_max | true/false | false | If 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. |
| frequency | number | 1 | The ratio of shown values to Y-axis grid lines. 1 means a value will be shown at every grid line; 2 means a value will be shown at every second grid line, etc. The higher the number, the less values will be shown. |
| skip_first | true/false | true | If this is set to true, the first value will be skipped. |
| skip_last | true/false | false | If this is set to true, the last value will be skipped. |
| color | Hex color code | Same as <text_color> in general settings | The color of the text. |
| text_size | number | same as <text_size> in general settings | The size of the text. |
| unit | text | none | A short text indicating the units of the values. This can be something like "USD" or "km/h". |
| unit_position | left/right | right | Whether the units will be shown to the left of the value or to the right. |
| integers_only | true/false | false | If this is set to true, only whole values will be shown. Values with decimals will be hidden. |
| inside | true/false | false | If this is set to true, the values of this axis will be displayed inside the plot area (to the right of the axis). |
This subsection lists settings that control the Y-axis values. The axis is only visible if there is at least one graph with values on the left Y-axis
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, Y-axis values will be shown. |
| reverse | true/false | false | If this is set to true, the values will be reversed on the Y-axis – the largest value will be placed closest to the point where the Y and X axes intersect. The graph will be re-plotted accordingly. |
| rotate | Number (0-90) | 0 | The angle of rotation for the values. You can rotate them by 90 degrees with no additional requirements. If you want to rotate the values by 1 to 89 degrees, you must have the SWF file for that font, placed in the [path]/fonts folder. More about rotating axis values. |
| min | number | none – calculated automatically | The minimum value of the Y-axis. The axis will always start from this value, even if there is no graph point mapped that far. |
| max | number | none – calculated automatically | The maximum value of the Y-axis. The axis will always end at this value, even if there is no graph point mapped that far. |
| strict_min_max | true/false | false | If 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. |
| frequency | number | 1 | The ratio of shown values to Y-axis grid lines. 1 means a value will be shown at every grid line; 2 means a value will be shown at every second grid line, etc. The higher the number, the less values will be shown. |
| skip_first | true/false | true | If this is set to true, the first value will be skipped. |
| skip_last | true/false | false | If this is set to true, the last value will be skipped. |
| color | Hex color code | Same as <text_color> in general settings | The color of the text. |
| text_size | number | same as <text_size> in general settings | The size of the text. |
| unit | text | none | A short text indicating the units of the values. This can be something like "USD" or "km/h". |
| unit_position | left/right | right | Whether the units will be shown to the left of the value or to the right. |
| integers_only | true/false | false | If this is set to true, only whole values will be shown. Values with decimals will be hidden. |
| inside | true/false | false | If this is set to true, the values of this axis will be displayed inside the plot area (to the right of the axis). |
This subsection lists settings that control the look of the actual axis lines.
This subsection lists settings that control the look of the X-axis.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| color | hex color code | #000000 | The color of the axis line. |
| alpha | number (0-100) | 100 | The opacity of the axis line. |
| width | number | 2 | The thickness of the axis line. 0 means hairline, but still visible (set 0 for an invisible axis line). |
| tick_length | number | 7 | The length of the tick extending from the axis at a grid or value point. |
This subsection lists settings that control the look of the left Y-axis. The axis is only visible if there is at least one graph with values on the left Y-axis.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| type | line / stacked / 100% stacked | line | Chart type. |
| color | hex color code | #000000 | The color of the axis line. |
| alpha | number (0-100) | 100 | The opacity of the axis line. |
| width | number | 2 | The thickness of the axis line. 0 means hairline, but still visible (set 0 for an invisible axis line). |
| tick_length | number | 7 | The length of the tick extending from the axis at a grid or value point. |
| logarithmic | true/false | false | If this is set to true, the axis will use a logarithmic scale instead of a progressive one. |
This subsection lists settings that control the look of the right Y-axis. The axis is only visible if there is at least one graph with values on the right Y-axis.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| type | line / stacked / 100% stacked | line | Chart type. |
| color | hex color code | #000000 | The color of the axis line. |
| alpha | number (0-100) | 100 | The opacity of the axis line. |
| width | number | 2 | The thickness of the axis line. 0 means hairline, but still visible (set 0 for an invisible axis line). |
| tick_length | number | 7 | The length of the tick extending from the axis at a grid or value point. |
| logarithmic | true/false | false | If this is set to true, the axis will use a logarithmic scale instead of a progressive one. |
This subsection lists the settings that control the indicator. The indicator follows the mouse pointer on the chart. It can consist of text balloons explaining points on the X-axis and the graph, and a vertical grid line.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to false, all indicator functionality will be disabled. |
| zoomable | true/false | true | If this is set to true, clicking and dragging across the chart will zoom in on that section of the chart. |
| color | hex color code | #BBBB00 | The background color of the vertical grid line and the X-axis balloon. |
| line_alpha | number (0-100) | 100 | The opacity of the vertical grid line. |
| selection_color | hex color code | #BBBB00 | The background color of the area selected by clicking and dragging. |
| selection_alpha | number (0-100) | 25 | The opacity of the background of the selected area. |
| x_balloon_enabled | true/false | true | If this is set to true, a balloon will mark the indicator's current position on the X- axis. |
| x_balloon_text_color | hex color code | Same as <text_color> in general settings | The color of the X-axis balloon text. |
This subsection lists the settings that control the value (Y) balloon.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, the balloons are available. |
| only_one | true/false | false | If this is set to true, only one graph balloon will be visible at any time. This will be the balloon, which is currently closest to the mouse pointer. |
| on_off | true/false | true | If this is set to true, the viewer will be able to click on the graph, or on the graph title in the legend, and show or hide the balloon for that graph. |
| color | hex color code | Slightly darker than the column color | The color of the balloon background. |
| alpha | number (0-100) | 100 | The opacity of the balloon background. |
| text_color | hex color code | #FFFFFF | The color of the balloon text. |
| text_size | number | Same as <text_size> in general settings | The size of the balloon text. |
| max_width | number | 220 | The maximum width of a balloon. If there is too much text to fit in this width, the text will be wrapped. |
| corner_radius | number | 0 | Corner radius of a balloon. If bigger then 0, the balloon pointer will not be shown. |
| border_width | number | 0 | Balloon border width. |
| border_alpha | number | Same as <balloon><alpha> | Balloon border opacity. |
| border_color | hex color code | Same as <balloon><color> | Balloon border color. |
These are the general legend settings.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true If this is set to true, the legend is shown on the chart. | |
| x | number, in pixels, percent, or reversed | <plot_area><margins><left> | The horizontal position of the legend's left edge. 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). |
| y | number, in pixels, percent, or reversed | right below the plot area | The vertical position of the legend's top edge. 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). If you want the legend to auto-fit the flash object, do not set this setting. |
| width | number, in pixels, percent | Plot area width | The width of the legend. If the legend doesn't fit, try adjusting the margins. You can set the value in percent (such as 20%). |
| color | hex color code | #FFFFFF | The color of the legend's background. |
| max_columns | number | none | The maximum number of columns in the legend. |
| alpha | number (0-100) | 0 | The opacity of the legend's background. |
| border_color | hex color code | #000000 | The color of the legend's borders. |
| border_alpha | number (0-100) | 0 | The opacity of the legend's borders. |
| text_color | hex color code | Same as <text_color> in general settings | The color of the legend's text. |
| text_color_hover | hex color code | #BBBB00 | The color of the legend's text when the mouse pointer hovers over it. |
| text_size | number | Same as <text_size> in general settings | The size of the legend's text. |
| spacing | number, in pixels | 10 | The space between the rows and columns of the legend. |
| margins | number, in pixels | 0 | The space between the borders and the contents of the legend. This is useful if the borders are visible, or the legend's background color is different from the chart's background color. |
| graph_on_off | true/false | true | If this is set to true, the key has a checkbox function – clicking on it will hide or show the corresponding graph. |
| reverse_order | true/false | false | If this is set to true, the legend entries will be in a reversed order. |
| align | left / center / right | left | The alignment of the legend entries. |
These are the settings for the legend's key.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| size | number, in pixels | 16 | The size of the key. The key is displayed in the legend next to the graph title, and is filled with the graph color. |
| border_color | hex color code | none – no border | The color of the key border. |
| key_mark_color | hex color code | #FFFFFF | The color of the check mark in the key. (Only applies if graph_on_off is true.) |
These are the settings for displaying slice values in the legend.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | false | If this is set to true, the values will be shown in the legend. |
| width | number, in pixels | none | The width of the value field. This is useful if you want all entries to be right-aligned. |
| align | right/left | right | The alignment of the text in the legend. |
| text | text | {value} | What should be displayed in the value field. Tags in curly brackets { } will be replaced with the information taken from the data file. The following tags are available: {title}, {value}, {series}, {description}, {percents}. Please note: if you want to use HTML tags, you must use the format <! [CDATA[text]]>. |
These are the settings for the vertical lines going from the horizontal axis to the data points. These settings are only used if vertical_lines is set to true. Set line_alpha to 0 to make a column chart.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| width | number, in pixels | 0 | The relative width of the vertical line. 0 means hairline. |
| alpha | number (0-100) | 100 | The opacity of the line. |
| clustered | true/false | false | If you have several graphs in the chart with vertical_lines enabled and this is set to true, the lines of one series will be placed side by side. Otherwise they will be placed one behind another. |
| mask | true/false | true | If this is set to true, any parts of columns that fall outside the plot area will be masked out. |
This subsection lists the settings that control the zoom out button. This button appears when the viewer has zoomed in on a part of the chart; clicking it takes the viewer back to the full chart view.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| x | number, in pixels, percent, or reversed | right-aligned | The horizontal position of the zoom out button. 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). |
| y | Number, in pixels, percent, or reversed | top-aligned | The vertical position of the zoom out button. 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). |
| color | hex color code | #BBBB00 | The color of the zoom out button background. |
| alpha | number (0-100) | 0 The opacity of the zoom out button background. | |
| text_color | hex color code | Same as <text_color> in general settings | The color of the zoom out button text. |
| text_color_hover | hex color code | #BBBB00 | The color of the button's text when the mouse pointer hovers over it. |
| text_size | number | Same as <text_size> in general settings | The size of the button's text. |
| text | text | Show all | The text on the button. |
This subsection lists the settings that control the Help button, and the balloon that appears when the viewer rolls over it.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| x | number, in pixels, percent, or reversed | right-aligned | The horizontal position of the help button. 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). |
| y | number, in pixels, percent, or reversed | top-aligned | The vertical position of the help button. 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). |
| color | hex color code | #000000 | The color of the help button background. |
| alpha | number, in percent | 100 | The opacity of the help button background. |
| text_color | hex color code | #FFFFFF | The color of the help button text. |
| text_color_hover | hex color code | #BBBB00 | The color of the button's text when the mouse pointer hovers over it. |
| text_size | number | same as <text_size> in general settings | The size of the button's text. |
| text | text | ? | The text on the button. |
| Setting | Available values | Default value | Description |
|---|---|---|---|
| color | hex color code | #000000 | The color of the help balloon background. |
| alpha | number (0-100) | 100 | The opacity of the help balloon background. |
| width | number, in pixels | 300 | The width of the text in the balloon. |
| text_color | hex color code | #FFFFFF | The color of the help balloon text. |
| text_size | number | Same as <text_size> in general settings | The size of the button's text. |
| text | text | none | The text that will appear when the viewer's mouse pointer hovers over the button. Please note: if you want to use HTML tags, you must use the format <! [CDATA[text]]> |
This subsection lists the settings that control the function of saving the chart as an image file.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| file | filename | None – disabled | If 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 window | The target parameter for opening the image file in the browser. Use "_blank" to open the URL in a new browser window. |
| x | number, in pixels, percent, or reversed | left-aligned | The 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). |
| y | number, in pixels, percent, or reversed | bottom-aligned | The 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). |
| color | hex color code | #BBBB00 | The color of the "Collecting data" text background. |
| alpha | number (0-100) | 0 | The opacity of the "Collecting data" text background. |
| text_color | hex color code | same as <text_color> in general settings | The color of the "Collecting data" text. |
| text_size | number | same as <text_size> in general settings | The size of the "Collecting data" text. |
This subsection lists the settings that control error messages in the chart.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| enabled | true/false | true | If this is set to true, the error messages will be displayed |
| x | number, in pixels, percent, or reversed | centered | The horizontal position of the error message. 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). |
| y | number, in pixels, percent, or reversed | centered | The vertical position of the error message. 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). |
| color | hex color code | #BBBB00 | The color of the error message background. You can use multiple color codes, separated with commas - this will produce a gradient. |
| alpha | number (0-100) | 100 | The opacity of the error message background. |
| text_color | hex color code | #FFFFFF | The color of the error message text. |
| text_size | number | Same as <text_size> in general settings | The size of the error message text. |
This subsection contains settings that determine the texts of various messages displayed by the chart.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| no_data | text | No data for selected period | The text that will be displayed if the data for the selected period is missing from the data file. |
| export_as_image | text | Export as image | The text of the image export option in the right-click menu. |
| collecting_data | text | Collecting data | The text that will be displayed while the chart is being exported to an image file. |
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.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| zoom | true/false | false | If this is set to true, the Flash player's zoom controls are included in the right-click menu. |
| true/false | true | If this is set to true, the Flash player's print controls are included in the right-click menu. |
This subsection lists the settings of labels - free bits of text not attached to anything. You can add multiple labels, each nested inside a <label></label> tag. Use labels for naming axes, chart title, etc.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| x | number, in pixels, percent, or reversed | 0 | The horizontal position of the label. 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). |
| y | number, in pixels, percent, or reversed | 0 | The vertical position of the label. 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). |
| rotate | true/false | false | If this is set to true, the label is rotated by 90 degrees. |
| width | number, in pixels or percent | Fit to contents | The maximum width of the label. (If the contents exceed the width, the label will have multiple lines.) You can set the value in percent (such as 20%). |
| align | left/center/right | left | The alignment of the text in the label. |
| text_color | hex color code | As per general settings | The color of the text in the label. |
| text_size | number | Same as <text_size> in general settings | The size of the text in the label. |
| text | text | none | The text of the label. Please note: if you want to use HTML tags, you must use the format <![CDATA[text]]>. |
This subsection lists settings that control the graph. You can also set these settings in the data file.
This subsection controls each individual graph. You will need a separate graph subsection for each graph you want to control. The gid parameter of the tag must match the same parameter in the data file (if you are using XML data): <graph gid="1">
| Setting | Available values | Default value | Description |
|---|---|---|---|
| axis | left/right | left | To which of the y axis this graph must be assigned. |
| title | plaintext | none | The title of the graph. It is shown in the legend. |
| color | hex color code | #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 | The graph color. If there is no value for the parameter, then the software will choose the next unused color from the default array. |
| color_hover | hex color code | #BBBB00 | The color of the graph when the mouse pointer hovers over it. |
| line_alpha | number (0-100) | 100 | The opacity of the graph line. |
| line_width | number, in pixels | 0 | The width of the graph line. 0 means hairline, but still visible. |
| fill_alpha | number (0-100) | 0 | The opacity of the area fill. If you want to have an area chart, not just a graph, then set this parameter to higher than 0. The area below the graph line will be filled with a color. |
| fill_color | hex color code | Same as <graph><color> | The color of the filled area. You can use multiple color codes, separated with commas - this will produce a gradient. |
| balloon_color | hex color code | Same as <graph><color> | The color of the graph point balloon. |
| balloon_alpha | number (0-100) | 100 | The opacity of the graph point balloon. |
| balloon_text_color | hex color code | #FFFFFF | The color of the text in the graph point balloon. |
| bullet | square / round / square_outlined / round_outlined / square_outline / round_outline / filename.swf | none (no bullets) | The shape of the bullet that marks each graph point. The filename.swf is the name of Flash file – you can use a custom Flash file as a bullet. It must be placed in the folder specified as "path" in the HTML code snippet. Outlined bullets use the plot area color for the outline. |
| bullet_size | number, in pixels | 6 | The size of the bullet. This only affects predefined bullet shapes, not custom Flash bullets. |
| bullet_color | hex color code | same as <graph><color> | The color of the bullet. This only affects predefined bullet shapes, not custom Flash bullets. |
| bullet_alpha | number (0-100) | Same as <graph><line_alpha> | The opacity of the bullet. This only affects predefined bullet shapes, not custom Flash bullets. |
| hidden | true/false | false | If this is set to true, the graph will not be visible unless the viewer has checked the corresponding box in the legend. |
| selected | true/false | true | If this is set to true, the graph point balloon for this graph will be visible as the mouse pointer rolls across the plot area. |
| balloon_text | text | <b>{value}</b><br>{description} | The text in the balloon. Tags in curly brackets { } will be replaced with the information taken from the data file. The following tags are available: {title}, {value}, {series}, {description}, {percents}. Please note: if you want to use HTML tags, you must use the format <! [CDATA[text]]> |
| data_labels | text | none | The text of a data label. Data labels are shown next to the data point (bullet). Tags in curly brackets { } will be replaced with the information taken from the data file. The following tags are available: {title}, {value}, {series}, {description}, {percents}. Please note: if you want to use HTML tags, you must use the format <! [CDATA[text]]>. To avoid overlapping, data labels will be hidden if there are more graph points in the plot area than the value of the <hide_bullets_count> parameter. |
| data_labels_text_color | hex color code | same as <text_color> in general settings | The color of the data label text. |
| data_labels_text_size | number | same as <text_size> in general settings | The size of the data label text. |
| data_labels_position | above/below | above | The position of the data label – above or below the graph point. You can set positions for the individual data points in data file (XML only). |
| vertical_lines | true/false | false | If this is set to true, there will be a vertical line connecting each graph point to the X-axis. You can have a graph represented by only these lines by setting the graph's <line_alpha> equal to 0. |
| visible_in_legend | true/false | true | If this is set to true, the graph will be represented in the legend. |
Guides are straight lines drawn horizontally across the plot area. They do not influence the graphs in any way. Guides can be used to create a strip in the background, or denote a baseline.
| Setting | Available values | Default value | Description |
|---|---|---|---|
| max_min | true/false | false | If this is set to true, the guide locations are included when calculating the Min and Max values of the chart. |
| Setting | Available values | Default value | Description |
|---|---|---|---|
| axis | left/right | left | The Y axis that will be used to place the guide line. |
| start_value | number | none | The location of the guide line. |
| end_value | number | none | The location of a second guide line. |
| title | text | None | The text that will be placed on the axis next to the guide line. |
| width | number | 0 | The thickness of the guide line. 0 means hairline. |
| color | hex color code | #000000 | The color of the guide line. |
| alpha | number, in percent | 100 | The opacity of the guide line. If this is more than 0 and there are two guide lines, the area between them will be filled. |
| fill_color | hex color code | Same as <guide><color> | The color of the guide fill. You can use multiple color codes, separated with commas - this will produce a gradient. |
| fill_alpha | number, in percent | 0 | The opacity of the guide fill. |
| inside | true/false | Same as <values><value><inside> | If this is set to true, the title will be placed inside the plot area. |
| centered | true/false | true | If this is set to true, and there are two guide lines, the title is placed half way between them. |
| rotate | number, in degrees | Same as <values><value><rotate> | The angle of rotation for the title. You can rotate it by 90 degrees with no additional requirements. If you want to rotate the values by 1 to 89 degrees, you must have the SWF file for that font, placed in the amline/fonts folder. |
| text_size | number | Same as <values><value><text_size> | The size of the title text. |
| text_color | hex color code | Same as <values><value><text_color> | The color of the title text. |
| dashed | true/false | false | If this is set to true, the guide lines will not be continuous. They will look like a line of dashes (– – – –). |
| dash_length | number, in pixels | 5 | The length of each dash. |
| © Antanas Marcelionis Contact and feedback: info@amcharts.com | Subscribe to amCharts news |