Inverted Axes Chart Tutorial With Examples

Today, We want to share with you Inverted Axes Chart Tutorial With Examples.In this post we will show you How to invert axes in area chart using highcharts, hear for Area chart with inverted axes using highcharts we will give you demo and example for implement.In this post, we will learn about highcharts change axis scale with an example.

Inverted Axes Chart Tutorial With Examples

There are the Following The simple About y axis line in highcharts Full Information With Example and source code.

As I will cover this Post with live Working example to develop Invert axes of area chart using highcharts with example, so the highcharts axis scaling is used for this example is following below.

Highcharts Inverted Axes Chart Example

index.html

Angular is a platform for building mobile & desktop web Based user friendly and light weight applications.Angular,It’s TypeScript-based open-source Angularjs web application framework.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Highcharts Inverted axes chart - www.pakainfo.com</title>
    <script src="https://www.pakainfo.com/jquery/js/jquery-1.12.4.js"></script>
    <script src="https://www.pakainfo.com/jquery/js/highcharts.js"></script>
    <script src="https://code.highcharts.com/modules/exporting.js"></script>
    <script type="text/javascript">
        $(function () {
            var graphtype = {
                type: 'area',
                inverted: true
            }
            var graphTitle = {
                text: 'Average fruit consumption during one week'
            }
            var graphchildtitle = {
                style: {
                    position: 'absolute',
                    right: '0px',
                    bottom: '10px'
                }
            }
            var graphlegend = {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -150,
                y: 100,
                floating: true,
                borderWidth: 1,
                backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#3d3d3d'
            }
            var graphxaxis = {
                categories: [
                    'Monday',
                    'Tuesday',
                    'Wednesday',
                    'Thursday',
                    'Friday',
                    'Saturday',
                    'Sunday'
                ]
            }
            var graphyaxis = {
                title: {
                    text: 'Number of units'
                },
                labels: {
                    formatter: function () {
                        return this.value;
                    }
                },
                min: 0
            }
            var graphplotoptions = {
                area: {
                    fillOpacity: 0.5
                }
            }
            var graphseries = [{
                name: 'Bill Gates',
                data: [3, 4, 3, 5, 4, 10, 12]
            }, {
                name: 'Margerita Sisodariya',
                data: [1, 3, 4, 3, 3, 5, 4]
            }]
            $('#chart-full-content').highcharts({
                chart:graphtype,
                title: graphTitle,
                subtitle: graphchildtitle,
                legend:graphlegend,
                xAxis:graphxaxis,
                yAxis: graphyaxis,
                plotOptions: graphplotoptions,
                series: graphseries
            });
        });
    </script>
</head>
<body>
    <div id="chart-full-content" style="min-width: 335px; height: 425px; margin: 0 auto"></div>
</body>
</html>

Web Programming Tutorials Example with Demo

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about highcharts inverted bar chart.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.


Related FAQ

Here are some more FAQ related to this Article:

  1.   Fixed Placement Columns Chart Tutorial With Examples
  2.   Activity Gauge Chart Tutorial With Examples
  3.   Dual Axes Line and Column Chart Tutorial With Examples
  4.   Click to Add Point Chart Tutorial With Examples
  5.   Area with Negative Values Chart Tutorial
  6.   Polar Chart Tutorial With Examples For Beginners
  7.   Spline with Inverted Axes Chart Tutorial
  8.   Pie Chart with Drill Down Tutorial With Examples
  9.   Bar with Negative Stack Chart Tutorial
  10.   General Drawing Tutorial With Examples