Dual Axes Line and Column Chart Tutorial With Examples

Today, We want to share with you Dual Axes Line and Column Chart Tutorial With Examples.In this post we will show you Dynamic Spline HighChart Example with Multiple Y Axis, hear for How to show dual axes line and column charts using highcharts with example we will give you demo and example for implement.In this post, we will learn about Combination chart using highcharts dual axes line and column charts with an example.

Dual Axes Line and Column Chart Tutorial With Examples

There are the Following The simple About Highcharts: Dual axis line and column with multiple series Full Information With Example and source code.

As I will cover this Post with live Working example to develop Dynamic Spline HighChart Example with Multiple X Axis, so the Highcharts editor custom templates with combo dual axes feature is used for this example is following below.

Read Also:  Waterfall Chart Tutorial With Examples and Demo

Highcharts Dual Axes, Line and Column 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 Dual axes, line and column 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 = {
                zoomType: 'xy'
            }
            var graphTitle = {
                text: 'Average Monthly Temperature and Rainfall in Surat'
            }
            var graphchildtitle = {
                text: 'Source: Pakainfo.com'
            }
            var graphxaxis = [{
                categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                    'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
                crosshair: true
            }]
            var graphyaxis = [{ // Primary yAxis
                labels: {
                    format: '{value}°C',
                    style: {
                        color: Highcharts.getOptions().colors[1]
                    }
                },
                title: {
                    text: 'Temperature',
                    style: {
                        color: Highcharts.getOptions().colors[1]
                    }
                }
            }, { // Secondary yAxis
                title: {
                    text: 'Rainfall',
                    style: {
                        color: Highcharts.getOptions().colors[0]
                    }
                },
                labels: {
                    format: '{value} mm',
                    style: {
                        color: Highcharts.getOptions().colors[0]
                    }
                },
                opposite: true
            }]
            var graphtooltip = {
                shared: true
            }
            var graphlegend = {
                layout: 'vertical',
                align: 'left',
                x: 120,
                verticalAlign: 'top',
                y: 100,
                floating: true,
                backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#3d3d3d'
            }
            var graphseries = [{
                name: 'Rainfall',
                type: 'column',
                yAxis: 1,
                data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
                tooltip: {
                    valueSuffix: ' mm'
                }

            }, {
                name: 'Temperature',
                type: 'spline',
                data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
                tooltip: {
                    valueSuffix: '°C'
                }
            }]
            $('#chart-full-content').highcharts({
                chart: graphtype,
                title: graphTitle,
                subtitle:graphchildtitle,
                xAxis: graphxaxis,
                yAxis:graphyaxis,
                tooltip: graphtooltip,
                legend:graphlegend,
                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 :

Read Also:  Pie with Monochrome Fill Chart Tutorial With Examples

Summary

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

I hope you get an idea about highcharts multiple charts same container.
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.