Configure axes
X-axis refers to the categorical axis in FusionCharts. For the vertical charts it currently appears at bottom of the canvas, whereas, for the horizontal charts, it currently appears on the left of the canvas.
Y-Axis refers to the value axis. For the vertical charts it currently appears at left of the canvas, whereas, for the horizontal charts (bar charts), it currently appears on the bottom of the canvas.
Setting Axes Names
Use the following attributes to configure names of axes:
- Specify the title of the X-axis of the chart using the 
xAxisNameattribute. - Specify the title of the Y-axis of the chart using the 
yAxisNameattribute. 
Refer to the code given below:
{
  "chart": {
    "xAxisName": "Quarter",
    "yAxisName": "Amount {br}(In USD)"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
X-axis Position
With 3.14.0, the position of this axis will be configurable - TOP/BOTTOM for vertical charts, LEFT/RIGHT for horizontal charts.
To change the position of the x-axis to the top, set the value of xAxisPosition attribute to top.
Refer to the code below:
{
  "chart": {
    "xAxisPosition": "top"
  }
}
The default value of
xAxisPositionattribute isbottom.
The chart looks like as shown below:
Click here to edit the above chart.
Changing the position of the x-axis won't change the position of the legend of the chart.
X-axis position for bar charts
For horizontal bar charts, the position of the x-axis can be set to right or left.
By default, the x-axis of bar charts will always be at the left of the chart.
To change the position of the x-axis to the right, set the value of xAxisPosition attribute to right.
Refer to the code below:
{
  "chart": {
    "xAxisPosition": "right"
  }
}
The chart looks like as shown below:
Click here to edit the above chart.
Y-axis position
In FusionCharts Suite XT, previously, the position of the y-axis is always set to left. Starting 3.14.0, you can customize the position of the Y-axis by setting the value of yAxisPosition attribute to right. This will render a chart with y-axis on right.
The behavior of primary and secondary Y-Axis is not affected by this.
Refer to the code given below:
{
  "chart": {
    "yAxisPosition": "right"
  }
}
In the above code, the value of the yAxisPosition attribute has been set to right.
By applying the above attribute, the chart looks like as shown below:
Click here to edit the above chart.
For bar charts, the y-axis will appear on top as shown in the chart below:
Click here to edit the above chart.
Configure Font Cosmetic Properties
Configure cosmetic properties like font, color, and size of the X-axis name using the attributes given below:
Set the font family of X-axis using the
xAxisNameFontattribute.Set the font color of the X-axis in hex code using the
xAxisNameFontColorattribute.Set the font size (between
0and72) of the X-axis using thexAxisNameFontSizeattribute.Set the font style to bold of the X-axis using the
xAxisNameFontBoldattribute.Set the font style to italic of the X-axis using the
xAxisNameFontItalicattribute.
Refer to the code given below:
{
  "chart": {
    "xAxisNameFont": "Arial",
    "xAxisNameFontSize": "12",
    "xAxisNameFontColor": "#993300",
    "xAxisNameFontBold": "1",
    "xAxisNameFontItalic": "1"
  }
}
Configure cosmetic properties like font, color, and size of the Y-axis name using the attributes given below:
Set the font family of Y-axis using the
yAxisNameFontattribute.Set the font color of the Y-axis in hex code using the
yAxisNameFontColorattribute.Set the font size (between
0and72) of the Y-axis using theyAxisNameFontSizeattribute.Set the font style to bold of the Y-axis using the
yAxisNameFontBoldattribute.Set the font style to italic of the Y-axis using the
yAxisNameFontItalicattribute.
Refer to the code given below:
{
  "chart": {
    "yAxisNameFont": "Arial",
    "yAxisNameFontSize": "12",
    "yAxisNameFontColor": "#993300",
    "yAxisNameFontBold": "1",
    "yAxisNameFontItalic": "1"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure cosmetic properties of borders of the names
Use the following attributes to configure cosmetic properties of the borders around names of x-axis:
Set the border color of the name of the X-axis in hex code using the
xAxisNameBorderColorattribute.Set the transparency (between
0for transparent and100for opaque) of the border around the name of the X-axis using thexAxisNameBorderAlphaattribute.Set the padding of the border (in pixels) around the name of the X-axis using the
xAxisNameBorderPaddingattribute.Set the radius of the border (in pixels) around the name of the X-axis using the
xAxisNameBorderRadiusattributeSet the thickness of the border (in pixels) around the name of the X-axis using the
xAxisNameBorderThicknessattribute.Make the border around the name of the X-axis dashed using the
xAxisNameBorderDashedattribute.Set the length of each dash (in pixels) in the dashed border around the name of the X-axis using the
xAxisNameBorderDashLenattribute.Set the gap between two consecutive dashes (in pixels) in the dashed border around the name of the X-axis using the
xAxisNameBorderDashGapattribute.
Refer to the code given below:
{
  "chart": {
    "xAxisNameBorderColor": "#6666FF",
    "xAxisNameBorderAlpha": "50",
    "xAxisNameBorderPadding": "6",
    "xAxisNameBorderRadius": "3",
    "xAxisNameBorderThickness": "2",
    "xAxisNameBorderDashed": "1",
    "xAxisNameBorderDashLen": "4",
    "xAxisNameBorderDashGap": "2"
  }
}
Use the following attributes to configure cosmetic properties of the borders around names of y-axis:
Set the border color of the name of the X-axis in hex code using the
yAxisNameBorderColorattribute.Set the transparency (between
0for transparent and100for opaque) of the border around the name of the X-axis using theyAxisNameBorderAlphaattribute.Set the padding of the border (in pixels) around the name of the X-axis using the
yAxisNameBorderPaddingattribute.Set the radius of the border (in pixels) around the name of the X-axis using the
yAxisNameBorderRadiusattribute.Set the thickness of the border (in pixels) around the name of the X-axis using the
yAxisNameBorderThicknessattribute.Make the border around the name of the X-axis dashed using the
yAxisNameBorderDashedattribute.Set the length of each dash (in pixels) in the dashed border around the name of the X-axis using the
yAxisNameBorderDashLenattribute.Set the gap between two consecutive dashes (in pixels) in the dashed border around the name of the X-axis using the
yAxisNameBorderDashGapattribute.
Refer to the code given below:
{
  "chart": {
    "yAxisNameBorderColor": "#6666FF",
    "yAxisNameBorderAlpha": "50",
    "yAxisNameBorderPadding": "6",
    "yAxisNameBorderRadius": "3",
    "yAxisNameBorderThickness": "2",
    "yAxisNameBorderDashed": "1",
    "yAxisNameBorderDashLen": "4",
    "yAxisNameBorderDashGap": "2"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure the Font Opacity and Background
Use the following attributes to configure the background for names of x-axis:
Set the font family of x-axis name using
xAxisNameFontattribute.Set the x-axis name font size (between
0and72) usingxAxisNameFontSizeattribute.Set the transparency (between
0for transparent and100for opaque) of the name of the x-axis using thexAxisNameFontAlphaattribute.Set the background color (in hex code) of the name of the x-axis using the
xAxisNameBgColorattribute.Set the transparency (between
0for transparent and100for opaque) of the background of the name of the x-axis using thexAxisNameBgAlphaattribute.Set the transparency (between
0for transparent and100for opaque) of the name of the x-axis using thexAxisNameAlphaattribute.
Refer to the code given below:
{
  "chart": {
    "xAxisNameFont": "Arial",
    "xAxisNameFontSize": "14",
    "xAxisNameBgColor": "#3399ff",
    "xAxisNameBgAlpha": "20",
    "xAxisNameFontAlpha": "50",
    "xAxisNameBorderPadding": "10"
  }
}
Use the following attributes to configure the background for names of y-axis:
Set the font family of X-axis name using
yAxisNameFontattribute.Set the x-axis name font size (between
0and72) usingyAxisNameFontSizeattribute.Set the transparency (between
0for transparent and100for opaque) of the name of the X-axis using theyAxisNameFontAlphaattribute.Set the background color (in hex code) of the name of the X-axis using the
yAxisNameBgColorattribute.Set the transparency (between
0for transparent and100for opaque) of the background of the name of the X-axis using theyAxisNameBgAlphaattribute.Set the transparency (between
0for transparent and100for opaque) of the name of the X-axis using theyAxisNameAlphaattribute.
Refer to the code given below:
{
  "chart": {
    "yAxisNameFont": "Arial",
    "yAxisNameFontSize": "14",
    "yAxisNameBgColor": "#3399ff",
    "yAxisNameBgAlpha": "20",
    "yAxisNameFontAlpha": "50",
    "yAxisNameBorderPadding": "10"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure background properties for y-axis values
Use the following attributes to set a semi-transparent background in a chosen color of y-axis values:
- Set the background color of the y-axis values using the 
yAxisValueBgColorattribute. - You can also set the degrees of transparency of the background color using 
yAxisValueBgAlphaattribute. 
Refer to the code below:
{
  "chart": {
    "yAxisValueBgColor": "#ff0000",
    "yAxisValueBgAlpha": "40"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure border properties for y-axis values
Use the following attributes to customize the border of the y-axis values:
Set the border color of the y-axis values using
yAxisValueBorderColorattribute.Set the transparency of the border of the y-axis values using
yAxisValueBorderAlphaattribute.Set the padding (in pixels) of the y-axis values border using
yAxisValueBorderPaddingattribute.Set the border radius (in pixels) of the y-axis values using
yAxisValueBorderRadiusattribute.Set the border thickness (in pixels) of the y-axis values using
yAxisValueBorderThicknessattribute.Make the y-axis values' border dashed using the
yAxisValueBorderDashedattribute.Set the length of each dash (in pixels) for the dashed borders around y-axis values using
yAxisValueBorderDashLenattribute.Set the gap between two consecutive dashes (in pixels) for the dashed borders around the y-axis values using
yAxisValueBorderDashGapattribute.
Refer to the code given below:
{
  "chart": {
    "yAxisValueBorderColor": "#ff0000",
    "yAxisValueBorderAlpha": "60",
    "yAxisValueBorderPadding": "5",
    "yAxisValueBorderRadius": "2",
    "yAxisValueBorderThickness": "3",
    "yAxisValueBorderDashed": "1",
    "yAxisValueBorderDashLen": "2",
    "yAxisValueBorderDashGap": "2"
  }
}
The chart will look like as shown in the image below:
Click here to edit the above chart.
Configure font properties for y-axis values
Use the following attributes to configure the font properties of y-axis values:
Set the font of the y-axis values using
yAxisValueFontattribute.Set the font size (between
0to72) of the y-axis values usingyAxisValueFontSizeattribute.Set the font color (in hex codes) of the y-axis using
yAxisValueFontColorattribute.Set the font of the y-axis values to bold using
yAxisValueFontBoldattribute.Set the font for the y-axis values to italics using
yAxisValueFontItalicattribute.Set the degree of transparency of the y-axis values using
yAxisValueAlphaattribute.
Refer to the code given below:
{
  "chart": {
    "yAxisValueFont": "verdana,sans",
    "yAxisValueFontSize": "10px",
    "yAxisValueFontColor": "#ff0000",
    "yAxisValueFontBold": "1",
    "yAxisValueFontItalic": "1",
    "yAxisValueAlpha": "50"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure Font Properties for Y-axis Names
Use the following attributes to configure font properties of a multi-series combination 2D chart with the primary and secondary y-axis names italicized:
Set the titles of the primary and secondary axes using the
pYAxisNameandsYAxisNameattributes, respectively.Set the fonts of the primary and secondary axes using the
pYAxisNameFontandsYAxisNameFontattributes, respectively.Set the font colors (in hex codes) for the primary and secondary axes using the
pYAxisNameFontColorandsYAxisNameFontColorattributes, respectively.Set the font sizes (between
0and72) for the primary and secondary axes using thepYAxisNameFontSizeandsYAxisNameFontSizeattributes, respectively.Set the fonts for the primary and secondary axes to bold using the
pYAxisNameFontBoldandsYAxisNameFontBoldattributes (set both to1), respectively.Set the fonts for the primary and secondary axes to italic using the
pYAxisNameFontItalicandsYAxisNameFontItalicattributes (set both to1), respectively.Set the degree of transparencies of the primary and secondary axes' name fonts and backgrounds (between
0for transparent and100for opaque) using thepYAxisNameFontAlphaandsYAxisNameFontAlphaattributes, respectively.
Refer to the code given below:
{
  "chart": {
    "pYAxisName": "Amount (In USD)",
    "sYAxisName": "Profit %",
    "pYAxisNameFont": "Arial",
    "pYAxisNameFontSize": "12",
    "pYAxisNameFontColor": "#003366",
    "pYAxisNameFontBold": "1",
    "pYAxisNameFontItalic": "1",
    "pYAxisNameFontAlpha": "50",
    "sYAxisNameFont": "Arial",
    "sYAxisNameFontSize": "12",
    "sYAxisNameFontColor": "#003366",
    "sYAxisNameFontBold": "1",
    "sYAxisNameFontItalic": "1",
    "sYAxisNameFontAlpha": "50"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure background properties of Y-axis names
Use the following attributes to set a semi-transparent background in a chosen color for the primary and secondary y-axis names of a multi-series, combination 2D chart:
Set the degrees of transparencies of the primary and secondary axes' names (between
0for transparent and100for opaque) using thepYAxisNameAlphaandsYAxisNameAlphaattributes, respectively.Set the background colors for the primary and secondary axes' names in hex codes using the
pYAxisNameBgColorandsYAxisNameBgColorattributes, respectively.Set the degrees of transparencies of the primary and secondary axes' name backgrounds (between
0for transparent and100for opaque) using thepYAxisNameBgAlphaandsYAxisNameBgAlphaattributes, respectively.
Refer to the code given below:
{
  "chart": {
    "pYAxisNameBgColor": "#3399ff",
    "pYAxisNameBgAlpha": "20",
    "pYAxisNameBorderPadding": "6",
    "pYAxisNameAlpha": "50",
    "sYAxisNameFont": "Arial",
    "sYAxisNameFontSize": "12",
    "sYAxisNameBgColor": "#3399ff",
    "sYAxisNameBgAlpha": "20",
    "sYAxisNameBorderPadding": "6",
    "sYAxisNameAlpha": "50"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Configure the Border Properties of Y-axis Names
Use the following attributes to customize the primary and secondary y-axis names for a multi-series, combination 2D chart with a dashed border and a chosen color:
Set the background colors for the primary and secondary axes' name borders in hex codes using the
pYAxisNameBorderColorandsYAxisNameBorderColorattributes, respectively.Set the degrees of transparencies of the primary and secondary axes' name borders (between
0for transparent and100for opaque) using thepYAxisNameBorderAlphaandsYAxisNameBorderAlphaattributes, respectively.Set the border padding (in pixels) for the primary and secondary axes' names using the
pYAxisNameBorderPaddingandsYAxisNameBorderPaddingattributes, respectively.Set the border radius (in pixels) for the primary and secondary axes' names using the
pYAxisNameBorderRadiusandsYAxisNameBorderRadiusattributes, respectively.Set the border thickness (in pixels) for the primary and secondary axes' names using the
pYAxisNameBorderThicknessandsYAxisNameBorderThicknessattributes, respectively.Make the name borders for the primary and secondary axes' names dashed using the
pYAxisNameBorderDashedandsYAxisNameBorderDashedattributes (set both to1), respectively.Set the length of each dash (in pixels) for the dashed borders around primary and secondary axes' names using the
pYAxisNameBorderDashLenandsYAxisNameBorderDashLenattributes, respectively.Set the gap between two consecutive dashes (in pixels) for the dashed borders around primary and secondary axes' names using the
pYAxisNameBorderDashGapandsYAxisNameBorderDashGapattributes, respectively.
Refer to the code given below:
{
  "chart": {
    "pYAxisNameBorderColor": "#6666FF",
    "pYAxisNameBorderAlpha": "50",
    "pYAxisNameBorderPadding": "6",
    "pYAxisNameBorderRadius": "0",
    "pYAxisNameBorderThickness": "1",
    "pYAxisNameBorderDashed": "1",
    "pYAxisNameBorderDashLen": "4",
    "pYAxisNameBorderDashGap": "2",
    "sYAxisNameBorderColor": "#6666FF",
    "sYAxisNameBorderAlpha": "50",
    "sYAxisNameBorderPadding": "6",
    "sYAxisNameBorderRadius": "0",
    "sYAxisNameBorderThickness": "1",
    "sYAxisNameBorderDashed": "1",
    "sYAxisNameBorderDashLen": "4",
    "sYAxisNameBorderDashGap": "2"
  }
}
The chart will look like as shown below:
Click here to edit the above chart.
Decouple Scrollbar from X-axis
FusionCharts XT suite now allows you to decouple the scrollbar from the X-axis. Earlier, the scrollbar was always coupled with the X-axis. Now, a new attribute scrollPosition has been introduced, which lets you position the scrollbar irrespective of the position of X-axis.
In charts where the X-axis is located at the bottom or the top (as in a column chart), you can set the value of the
scrollPositionattribute totoporbottom.In charts where the X-axis is located to the left or the right (as in a bar chart), you can set the value of the
scrollPositionattribute toleftorright.
Refer to the code below:
{
    "chart": {
        "scrollPosition": "top"
    }
}
The scroll column 2D chart will look as shown below:
Click here to edit the above chart.