Inverse Y-axis Chart

These chart types belong to PowerCharts XT.

The inverse y-axis charts are similar to the normal column charts, except that the y-axis and the data plots (column and area) in these charts are inverted. The lower limit and upper limit value positions are swapped in the inverse y-axis chart.

The inverse data plots (column and area) will be applicable to the charts with positive y-axis range (> = 0).

The FusionCharts Suite XT includes the following three types of inverse axis charts:

  • Inverse Y-axis Column Chart

  • Inverse Y-axis Area Chart

  • Inverse Y-axis Line Chart

Inverse Y-axis Column Chart

Let's create an inverse y-axis chart showcasing Average page load time of hsm.com. In the sample you will observe that when you render the chart, the lower limit value is rendered at the top and the upper limit value is rendered at the bottom - which renders the inverse data plots.

To create an inverse y-axis chart follow the steps given below:

  • In the JSON data, set the attributes and their corresponding values in "<attributeName>": "<value>" format.

  • Specify the chart type using the type attribute. To render an inverse y-axis column chart, set inverseMSColumn2D.

  • Set the container object using renderAt attribute.

  • Specify the dimension of the chart using width and height attributes.

  • Set the type of data (JSON/XML) you want to pass to the chart object using dataFormat attribute.

For a detailed list of attributes, refer to the chart attributes page of inverse y-axis column chart.

The inverse y-axis chart looks like a shown below:

FusionCharts will load here..
{
    "chart": {
        "theme": "fusion",
        "caption": "Average Page Load Time (hsm.com)",
        "subCaption": "Last Week",
        "xAxisName": "Day",
        "yAxisName": "Time (In Sec)",
        "numberSuffix": "s",
        "showXAxisLine": "1",
        "showLegend": "0"
    },
    "categories": [
        {
            "category": [
                {
                    "label": "Mon"
                },
                {
                    "label": "Tue"
                },
                {
                    "label": "Wed"
                },
                {
                    "label": "Thu"
                },
                {
                    "label": "Fri"
                },
                {
                    "label": "Sat"
                },
                {
                    "label": "Sun"
                }
            ]
        }
    ],
    "dataset": [
        {
            "seriesname": "Loading Time",
            "allowDrag": "0",
            "data": [
                {
                    "value": "6"
                },
                {
                    "value": "5.8"
                },
                {
                    "value": "5"
                },
                {
                    "value": "4.3"
                },
                {
                    "value": "4.1"
                },
                {
                    "value": "3.8"
                },
                {
                    "value": "3.2"
                }
            ]
        }
    ]
}
<chart theme="fusion" caption="Average Page Load Time (hsm.com)" subcaption="Last Week" xaxisname="Day" yaxisname="Time (In Sec)" numbersuffix="s" showxaxisline="1" showlegend="0">
    <categories>
        <category label="Mon" />
        <category label="Tue" />
        <category label="Wed" />
        <category label="Thu" />
        <category label="Fri" />
        <category label="Sat" />
        <category label="Sun" />
    </categories>
    <dataset seriesname="Loading Time" allowdrag="0">
        <set value="6" />
        <set value="5.8" />
        <set value="5" />
        <set value="4.3" />
        <set value="4.1" />
        <set value="3.8" />
        <set value="3.2" />
    </dataset>
</chart>
<html>
<head>
	<title>My first chart using FusionCharts Suite XT</title>
	<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
	<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
	<script type="text/javascript">
		FusionCharts.ready(function(){
			var chartObj = new FusionCharts({
    type: 'InverseMSColumn2D',
    dataFormat: 'json',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataSource: {
        "chart": {
            "theme": "fusion",
            "caption": "Average Page Load Time (hsm.com)",
            "subCaption": "Last Week",
            "xAxisName": "Day",
            "yAxisName": "Time (In Sec)",
            "numberSuffix": "s",
            "showXAxisLine": "1",
            "showLegend": "0"

        },
        "categories": [{
            "category": [{
                "label": "Mon"
            }, {
                "label": "Tue"
            }, {
                "label": "Wed"
            }, {
                "label": "Thu"
            }, {
                "label": "Fri"
            }, {
                "label": "Sat"
            }, {
                "label": "Sun"
            }]
        }],
        "dataset": [{
            "seriesname": "Loading Time",
            "allowDrag": "0",
            "data": [{
                "value": "6"
            }, {
                "value": "5.8"
            }, {
                "value": "5"
            }, {
                "value": "4.3"
            }, {
                "value": "4.1"
            }, {
                "value": "3.8"
            }, {
                "value": "3.2"
            }]
        }]
    }
});
			chartObj.render();
		});
	</script>
	</head>
	<body>
		<div id="chart-container">FusionCharts XT will load here!</div>
	</body>
</html>

Click here to edit the above inverse y-axis column chart

Inverse Y-axis Area Chart

You have seen how an inverse y-axis column chart looks. To render an inverse y-axis area chart, change the value of the type attribute from inverseMSColumn2D to inverseMSArea. The rest of the data structure remains the same.

For a detailed list of attributes, refer to the chart attributes page of inverse y-axis area chart.

An inverse y-axis multi-series area chart looks like this:

FusionCharts will load here..
{
    "chart": {
        "theme": "fusion",
        "caption": "Daily bounce rate",
        "subCaption": "Last week",
        "xAxisName": "Day",
        "yAxisName": "Percentage",
        "numberSuffix": "%"
    },
    "categories": [
        {
            "category": [
                {
                    "label": "Mon"
                },
                {
                    "label": "Tue"
                },
                {
                    "label": "Wed"
                },
                {
                    "label": "Thu"
                },
                {
                    "label": "Fri"
                },
                {
                    "label": "Sat"
                },
                {
                    "label": "Sun"
                }
            ]
        }
    ],
    "dataset": [
        {
            "seriesname": "food.hsm.com",
            "data": [
                {
                    "value": "27"
                },
                {
                    "value": "22"
                },
                {
                    "value": "25"
                },
                {
                    "value": "27"
                },
                {
                    "value": "21"
                },
                {
                    "value": "29"
                },
                {
                    "value": "22"
                }
            ]
        },
        {
            "seriesname": "cloth.hsm.com",
            "data": [
                {
                    "value": "42"
                },
                {
                    "value": "38"
                },
                {
                    "value": "39"
                },
                {
                    "value": "36"
                },
                {
                    "value": "43"
                },
                {
                    "value": "44"
                },
                {
                    "value": "35"
                }
            ]
        }
    ]
}
<chart theme="fusion" caption="Daily bounce rate" subcaption="Last week" xaxisname="Day" yaxisname="Percentage" numbersuffix="%">
    <categories>
        <category label="Mon" />
        <category label="Tue" />
        <category label="Wed" />
        <category label="Thu" />
        <category label="Fri" />
        <category label="Sat" />
        <category label="Sun" />
    </categories>
    <dataset seriesname="food.hsm.com">
        <set value="27" />
        <set value="22" />
        <set value="25" />
        <set value="27" />
        <set value="21" />
        <set value="29" />
        <set value="22" />
    </dataset>
    <dataset seriesname="cloth.hsm.com">
        <set value="42" />
        <set value="38" />
        <set value="39" />
        <set value="36" />
        <set value="43" />
        <set value="44" />
        <set value="35" />
    </dataset>
</chart>
<html>
<head>
	<title>My first chart using FusionCharts Suite XT</title>
	<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
	<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
	<script type="text/javascript">
		FusionCharts.ready(function(){
			var chartObj = new FusionCharts({
    type: 'inversemsarea',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataFormat: 'json',
    dataSource: {
        "chart": {
            "theme": "fusion",
            "caption": "Daily bounce rate",
            "subCaption": "Last week",
            "xAxisName": "Day",
            "yAxisName": "Percentage",
            "numberSuffix": "%"
        },
        "categories": [{
            "category": [{
                "label": "Mon"
            }, {
                "label": "Tue"
            }, {
                "label": "Wed"
            }, {
                "label": "Thu"
            }, {
                "label": "Fri"
            }, {
                "label": "Sat"
            }, {
                "label": "Sun"
            }]
        }],
        "dataset": [{
            "seriesname": "food.hsm.com",
            "data": [{
                "value": "27"
            }, {
                "value": "22"
            }, {
                "value": "25"
            }, {
                "value": "27"
            }, {
                "value": "21"
            }, {
                "value": "29"
            }, {
                "value": "22"
            }]
        }, {
            "seriesname": "cloth.hsm.com",
            "data": [{
                "value": "42"
            }, {
                "value": "38"
            }, {
                "value": "39"
            }, {
                "value": "36"
            }, {
                "value": "43"
            }, {
                "value": "44"
            }, {
                "value": "35"
            }]
        }]
    }
}
);
			chartObj.render();
		});
	</script>
	</head>
	<body>
		<div id="chart-container">FusionCharts XT will load here!</div>
	</body>
</html>

Click here to edit the above inverse y-axis area chart.

Inverse Y-axis Line Chart

To render an inverse y-axis area chart, change the value of the type attribute from inverseMSArea to inverseMSLine. The rest of the data structure remains the same.

For a detailed list of attributes, refer to the chart attributes page of inverse y-axis line chart.

An inverse y-axis multi-series line chart looks like this:

FusionCharts will load here..
{
    "chart": {
        "theme": "fusion",
        "caption": "Average Page Load Time (hsm.com)",
        "subCaption": "Last Week",
        "xAxisName": "Day",
        "yAxisName": "Time (In Sec)",
        "numberSuffix": "s",
        "lineThickness": "2",
        "showLegend": "0",
        "toolTipColor": "#ffffff",
        "toolTipBorderThickness": "0",
        "toolTipBgColor": "#000000",
        "toolTipBgAlpha": "80",
        "toolTipBorderRadius": "2",
        "toolTipPadding": "5"
    },
    "categories": [
        {
            "category": [
                {
                    "label": "Mon"
                },
                {
                    "label": "Tue"
                },
                {
                    "label": "Wed"
                },
                {
                    "label": "Thu"
                },
                {
                    "label": "Fri"
                },
                {
                    "label": "Sat"
                },
                {
                    "label": "Sun"
                }
            ]
        }
    ],
    "dataset": [
        {
            "seriesname": "Loading Time",
            "allowDrag": "0",
            "data": [
                {
                    "value": "6"
                },
                {
                    "value": "5.8"
                },
                {
                    "value": "5"
                },
                {
                    "value": "4.3"
                },
                {
                    "value": "4.1"
                },
                {
                    "value": "3.8"
                },
                {
                    "value": "3.2"
                }
            ]
        }
    ]
}
<chart theme="fusion" caption="Average Page Load Time (hsm.com)" subcaption="Last Week" xaxisname="Day" yaxisname="Time (In Sec)" numbersuffix="s" linethickness="2" showlegend="0" tooltipcolor="#ffffff" tooltipborderthickness="0" tooltipbgcolor="#000000" tooltipbgalpha="80" tooltipborderradius="2" tooltippadding="5">
    <categories>
        <category label="Mon" />
        <category label="Tue" />
        <category label="Wed" />
        <category label="Thu" />
        <category label="Fri" />
        <category label="Sat" />
        <category label="Sun" />
    </categories>
    <dataset seriesname="Loading Time" allowdrag="0">
        <set value="6" />
        <set value="5.8" />
        <set value="5" />
        <set value="4.3" />
        <set value="4.1" />
        <set value="3.8" />
        <set value="3.2" />
    </dataset>
</chart>
<html>
<head>
	<title>My first chart using FusionCharts Suite XT</title>
	<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
	<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
	<script type="text/javascript">
		FusionCharts.ready(function(){
			var chartObj = new FusionCharts({
    type: 'inversemsline',
    dataFormat: 'json',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataSource: {
        "chart": {
            "theme": "fusion",
            "caption": "Average Page Load Time (hsm.com)",
            "subCaption": "Last Week",
            "xAxisName": "Day",
            "yAxisName": "Time (In Sec)",
            "numberSuffix": "s",

            //Cosmetics
            "lineThickness": "2",
            "showLegend": "0",
            "toolTipColor": "#ffffff",
            "toolTipBorderThickness": "0",
            "toolTipBgColor": "#000000",
            "toolTipBgAlpha": "80",
            "toolTipBorderRadius": "2",
            "toolTipPadding": "5"
        },
        "categories": [{
            "category": [{
                "label": "Mon"
            }, {
                "label": "Tue"
            }, {
                "label": "Wed"
            }, {
                "label": "Thu"
            }, {
                "label": "Fri"
            }, {
                "label": "Sat"
            }, {
                "label": "Sun"
            }]
        }],
        "dataset": [{
            "seriesname": "Loading Time",
            "allowDrag": "0",
            "data": [{
                "value": "6"
            }, {
                "value": "5.8"
            }, {
                "value": "5"
            }, {
                "value": "4.3"
            }, {
                "value": "4.1"
            }, {
                "value": "3.8"
            }, {
                "value": "3.2"
            }]
        }]
    }
}
);
			chartObj.render();
		});
	</script>
	</head>
	<body>
		<div id="chart-container">FusionCharts XT will load here!</div>
	</body>
</html>

Click here to edit the above inverse y-axis line chart.