List of Chart Objects

Object Name Description STYLES supported Animation Parameters
BACKGROUND Background refers to the background for entire chart.
  • Animation
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
  • _xScale
  • _yScale
CAPTION Caption of the chart.
  • Animation
  • Font
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
SUBCAPTION Sub-caption of the chart.
  • Animation
  • Font
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
PLOT Line plot on the chart
  • Animation
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
  • _xScale
  • _yScale
ANCHORS Anchors on the chart.
  • Animation
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
  • _xScale
  • _yScale
OPENVALUE Textbox showing opening value.
  • Animation
  • Font
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
CLOSEVALUE Textbox showing closing value.
  • Animation
  • Font
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
HIGHLOWVALUE Textbox showing high value & low value.
  • Animation
  • Font
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _x
  • _y
TRENDLINES Trend lines, if any defined.
  • Animation
  • Shadow
  • Glow
  • Bevel
  • Blur
  • _alpha
  • _y
  • _xscale

<chart> element

Attribute Name Type / Range Description
Functional Attributes
animation Boolean (0/1) This attribute lets you set the configuration whether the chart should appear in an animated fashion. If you do not want to animate any part of the chart, set this as 0.
defaultAnimation Boolean (0/1) By default, each chart animates some of its elements. If you wish to switch off the default animation patterns, you can set this attribute to 0. It can be particularly useful when you want to define your own animation patterns using STYLE feature.
connectNullData Boolean (0/1) This attributes lets you control whether empty data sets in your data will be connected to each other OR would they appear as broken data sets?
setAdaptiveYMin Boolean (0/1) This attribute lets you set whether the y-axis lower limit would be 0 (in case of all positive values on chart) or should the y-axis lower limit adapt itself to a different figure based on values provided to the chart.
yAxisMinValue Number This attribute helps you explicitly set the lower limit of the chart. If you don't specify this value, it is automatically calculated by FusionCharts based on the data provided by you.
yAxisMaxValue Number This attribute helps you explicitly set the upper limit of the chart. If you don't specify this value, it is automatically calculated by FusionCharts based on the data provided by you.
clickURL URL in FusionCharts format The entire chart can now act as a hotspot. Use this URL to define the hotspot link for the chart. The link can be specified in FusionCharts Link Format.
palette Number (1-5) Each chart has 5 pre-defined color palettes which you can choose from. Each palette renders the chart in a different color theme. Valid values are 1-5.
paletteThemeColor Color Code If you want your own palette derived from a particular hex color, you an specify the same here. All other colors on the chart would automatically derive from that palette.
annRenderDelay Number (seconds) If you've defined any annotation groups over chart, using this attribute you can set the duration after which they'll render on the chart. The timer starts from the time the chart has initialized.
showPrintMenuItem Boolean (0/1) Whether to show "Print Chart" item in the context menu of the chart? Even if you opt to hide the item in context menu, you can still opt to invoke print() JavaScript method of the chart to print the same.
showAboutMenuItem Boolean (0/1) Setting this to 1 shows up a custom context menu in the chart, which can be customized to show your text and can be linked to your URL. For e.g., you can set the context menu of the chart to include "About your company name" and then link to your company home page. By default, the chart shows "About FusionCharts" when right clicked.
aboutMenuItemLabel String The menu item label for the custom context menu item.
aboutMenuItemLink String Link for the custom context menu item. You can specify the link in FusionCharts link format to be able to open the same in new window, pop-ups, frames or as JavaScript links.
 
Chart captions & Axis labels
caption String Caption of the chart.
subCaption String Sub-caption of the chart.
 
Number Formatting Properties
formatNumber Boolean (0/1) This configuration determines whether the numbers displayed on the chart will be formatted using commas, e.g., 40,000 if formatNumber='1' and 40000 if formatNumber='0 '
numberPrefix String Using this attribute, you could add prefix to all the numbers visible on the graph. For example, to represent all dollars figure on the chart, you could specify this attribute to ' $' to show like $40000, $50000. For more details, please see Advanced Number Formatting section.
numberSuffix String Using this attribute, you could add suffix to all the numbers visible on the graph. For example, to represent all figure quantified as per annum on the chart, you could specify this attribute to ' /a' to show like 40000/a, 50000/a. For more details, please see Advanced Number Formatting section.
decimals Number Number of decimal places to which all numbers on the chart would be rounded to.
forceDecimals Boolean (0/1) Whether to add 0 padding at the end of decimal numbers? For example, if you set decimals as 2 and a number is 23.4. If forceDecimals is set to 1, FusionCharts will convert the number to 23.40 (note the extra 0 at the end)
formatNumberScale Boolean (0/1) Configuration whether to add K (thousands) and M (millions) to a number after truncating and rounding it - e.g., if formatNumberScale is set to 1, 1043 would become 1.04K (with decimals set to 2 places). Same with numbers in millions - a M will added at the end. For more details, please see Advanced Number Formatting section.
defaultNumberScale String The default unit of the numbers that you're providing to the chart. For more details, please see Advanced Number Formatting section.
numberScaleUnit String Unit of each block of the scale. For more details, please see Advanced Number Formatting section.
numberScaleValue String Range of the various blocks that constitute the scale. For more details, please see Advanced Number Formatting section.
scaleRecursively Boolean (0/1) Whether to scale the number recursively? For more details, please see Advanced Number Formatting section.
maxScaleRecursion Number How many recursions to complete during recursive scaling? -1 completes the entire set of recursion.
scaleSeparator String What character to use to separte the scales that generated after recursion?
decimalSeparator String This option helps you specify the character to be used as the decimal separator in a number. For more details, please see Advanced Number Formatting section.
thousandSeparator String This option helps you specify the character to be used as the thousands separator in a number. For more details, please see Advanced Number Formatting section.
inDecimalSeparator String In some countries, commas are used as decimal separators and dots as thousand separators. In XML, if you specify such values, it will give a error while converting to number. So, FusionCharts accepts the input decimal and thousand separator from user, so that it can covert it accordingly into the required format. This attribute lets you input the decimal separator. For more details, please see Advanced Number Formatting section.
inThousandSeparator String In some countries, commas are used as decimal separators and dots as thousand separators. In XML, if you specify such values, it will give a error while converting to number. So, FusionCharts accepts the input decimal and thousand separator from user, so that it can covert it accordingly into the required format. This attribute lets you input the thousand separator. For more details, please see Advanced Number Formatting section.
 
Plot (line) properties
lineColor Color Code Color using which the lines on the chart will be drawn.
lineThickness Number (Pixels) Thickness of the lines on the chart.
lineAlpha Number (0-100) Alpha of the lines on the chart.
drawAnchors Boolean (0/1) Whether to draw anchors on the chart? If the anchors are not shown, then the tool tip and links won't work.
anchorSides Number This attribute sets the number of sides the anchor will have. For e.g., an anchor with 3 sides would represent a triangle, with 4 it would be a square and so on.
anchorRadius Number (Pixels) This attribute sets the radius (in pixels) of the anchor. Greater the radius, bigger would be the anchor size.
anchorColor Color Code Lets you set the color of anchors.
anchorAlpha Number (0-100) Lets you set the alpha of anchors.
     
Open, close, high & low point properties
openColor Color Code Color for opening value anchor.
closeColor Color Code Color for closing value anchor.
highColor Color Code Color for high value anchor.
lowColor Color Code Color for low value anchor.
showOpenAnchor Boolean (0/1) Whether to show anchor for opening value?
showCloseAnchor Boolean (0/1) Whether to show anchor for closing value?
showHighAnchor Boolean (0/1) Whether to show anchor for high value?
showLowAnchor Boolean (0/1) Whether to show anchor for low value?
showOpenValue Boolean (0/1) Whether to show the opening value textfield?
showCloseValue Boolean (0/1) Whether to show the closing value textfield?
showHighLowValue Boolean (0/1) Whether to show the high/low value textfield?
 
Period block properties
periodLength Number How many data points would each period block encapsulate?
periodColor Color Code Color for the period block.
periodAlpha Number (0-100) Alpha for the period block.
 
Background Cosmetics
bgColor Color Code This attribute sets the background color for the chart. You can set any hex color code as the value of this attribute. To specify a gradient as background color, separate the hex color codes of each color in the gradient using comma. Example: FF5904,FFFFFF. Remember to remove # and any spaces in between. See the gradient specification page for more details.
bgAlpha Number (0-100) Sets the alpha (transparency) for the background. If you've opted for gradient background, you need to set a list of alpha(s) separated by comma. See the gradient specification page for more details.
bgRatio Numbers separated by comma If you've opted for a gradient background, this attribute lets you set the ratio of each color constituent. See the gradient specification page for more details.
bgAngle Number (0-360) Angle of the background color, in case of a gradient. See the gradient specification page for more details.
showBorder Boolean (0/1) Whether to show a border around the chart or not?
borderColor Color Code Border color of the chart.
borderThickness Number (Pixels) Border thickness of the chart.
borderAlpha Number (0-100) Border alpha of the chart.
bgSWF URL of SWF To place any Flash movie as background of the chart, enter the (path and) name of the background SWF. It should be in the same domain as the chart.
bgSWFAlpha Number (0-100) Helps you specify alpha for the loaded background SWF.
logoURL String You can load an external logo (JPEG/PNG/SWF) on the chart once it has rendered. This attribute lets you specify the URL of the same. Owing to Flash Player security settings, you can only specify logo that are on the sub-domain as the SWF file of the chart.
logoPosition String ( TL, TR, BL, BR, CC )

Where to position the logo on the chart:

  • TL - Top-left
  • TR - Top-right
  • BR - Bottom right
  • BL - Bottom left
  • CC - Center of screen
logoAlpha Number (0-100) Once the logo has loaded on the chart, you can configure its opacity using this atribute.
logoScale Number (0-100) You can also change the scale of externally loaded logo at run-time by specifying a value for this parameter.
logoLink String If you want to link the logo to an external URL, specify the link in this attribute. The link can be in FusionCharts link format, allowing you to link to new windows, pop-ups, frames etc.
     
Font Properties
baseFont Font Name This attribute lets you set the font face (family) of all the text (data labels, values etc.) on chart. If you specify outCnvBaseFont attribute also, then this attribute controls only the font face of text within the chart canvas bounds.
baseFontSize Number This attribute sets the base font size of the chart i.e., all the values and the names in the chart which lie on the canvas will be displayed using the font size provided here.
baseFontColor Color Code This attribute sets the base font color of the chart i.e., all the values and the names in the chart which lie on the canvas will be displayed using the font color provided here.
     
Tool tip properties
showToolTip Boolean (0/1) Whether to show tool tip for the annotations?
toolTipBgColor Color Code Background color for the tool tip
toolTipBorderColor Color Code Border Color for the tool tip.
showToolTipShadow Boolean (0/1) Whether to show shadow for tool-tips on the chart.
 
Chart Paddings & Margins
captionPadding Number (Pixels) This attribute lets you control the horizontal space (in pixels) between the caption and left side of chart canvas.
valuePadding Number (Pixels) This attribute lets you control the horizontal space between value textboxes and chart.
chartLeftMargin Number (Pixels) Amount of empty space that you want to put on the left side of your chart. Nothing is rendered in this space.
chartRightMargin Number (Pixels) Amount of empty space that you want to put on the right side of your chart. Nothing is rendered in this space.
chartTopMargin Number (Pixels) Amount of empty space that you want to put on the top of your chart. Nothing is rendered in this space.
chartBottomMargin Number (Pixels) Amount of empty space that you want to put on the bottom of your chart. Nothing is rendered in this space.
canvasLeftMargin Number (Pixels) Left margin of canvas. Canvas will start from that position.
canvasRightMargin Number (Pixels) Right margin of canvas. Canvas will end at that position.

<set>element

Attribute Name Type / Range Description
value Number Numerical value for the point. This value would be plotted on the chart.

<trendlines> --> <line> element

Attribute Name Type / Range Description
startValue Number The starting value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the startValue would be 102.
endValue Number The ending y-axis value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the endValue would be 109. If you do not specify a value for endValue, it would automatically assume the same value as startValue.
color Color Code Color of the trend line and its associated text.
thickness Number (Pixels) If you've opted to show the trend as a line, this attribute lets you define the thickness of trend line.
isTrendZone Boolean (0/1) Whether the trend would display a line, or a zone (filled colored rectangle).
alpha Number Alpha of the trend line.
dashed Boolean (0/1) If you've opted to show the trend as a line, this attribute lets you define whether the trend line would appear as dashed?
dashLen Number (Pixels) If you've opted to show trend line as dash, this attribute lets you control the length of each dash.
dashGap Number (Pixels) If you've opted to show trend line as dash, this attribute lets you control the length of each dash gap.

The chart also accepts the following XML elements, which have not been discussed here:

  • <annotations> - Discussed in the section Annotations
  • <styles> - Discussed in the section STYLEs