Gauge with Dual Axes chart Tutorial With Examples

Today, We want to share with you Gauge with Dual Axes chart Tutorial With Examples.In this post we will show you Gauge chart with dual axes example using highcharts, hear for How to implement dual axes gauge chart using highcharts with example we will give you demo and example for implement.In this post, we will learn about highcharts activity gauge with an example.

Gauge with Dual Axes chart Tutorial With Examples

There are the Following The simple About solid gauge chart highcharts Full Information With Example and source code.

As I will cover this Post with live Working example to develop Highcharts gauge chart with multiple axes example, so the highcharts bullet chart is used for this example is following below.

Highcharts Gauge with Dual 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 - Gauge with Dual 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/highcharts-more.js"></script>
    <script src="https://code.highcharts.com/modules/exporting.js"></script>
    <script type="text/javascript">
        $(function () {
            var graphtype = {
                type: 'gauge',
                alignTicks: false,
                plotBackgroundColor: null,
                plotBackgroundImage: null,
                plotBorderWidth: 0,
                plotShadow: false
            }
            var graphTitle = {
                text: 'Speedometer with dual axes'
            }
            var chartpane = {
                startAngle: -150,
                endAngle: 150
            }
            var graphyaxis = [{
                min: 0,
                max: 200,
                lineColor: '#339',
                tickColor: '#339',
                minorTickColor: '#339',
                offset: -25,
                lineWidth: 2,
                labels: {
                    distance: -20,
                    rotation: 'auto'
                },
                tickLength: 5,
                minorTickLength: 5,
                endOnTick: false
            }, {
                min: 0,
                max: 124,
                tickPosition: 'outside',
                lineColor: '#933',
                lineWidth: 2,
                minorTickPosition: 'outside',
                tickColor: '#933',
                minorTickColor: '#933',
                tickLength: 5,
                minorTickLength: 5,
                labels: {
                    distance: 12,
                    rotation: 'auto'
                },
                offset: -20,
                endOnTick: false
            }]
            var graphseries = [{
                name: 'Speed',
                data: [80],
                dataLabels: {
                    formatter: function () {
                        var kmh = this.y,
                            mph = Math.round(kmh * 0.621);
                        return '<span style="color:#339">' + kmh + ' km/h</span><br/>' +
                            '<span style="color:#933">' + mph + ' mph</span>';
                    },
                    backgroundColor: {
                        linearGradient: {
                            x1: 0,
                            y1: 0,
                            x2: 0,
                            y2: 1
                        },
                        stops: [
                            [0, '#DDD'],
                            [1, '#FFF']
                        ]
                    }
                },
                tooltip: {
                    valueSuffix: ' km/h'
                }
            }]
            $('#chart-full-content').highcharts({
                chart:graphtype,
                title: graphTitle,
                pane: chartpane,
                yAxis: graphyaxis,
                series: graphseries
            },
              // Add some life
            function (chart) {
                setInterval(function () {
                    var point = chart.series[0].points[0],
                        newVal,
                        inc = Math.round((Math.random() - 0.5) * 20);
                    newVal = point.y + inc;
                    if (newVal < 0 || newVal > 200) {
                        newVal = point.y - inc;
                    }
                    point.update(newVal);
                }, 3000);
            });
        });
    </script>
</head>
<body>
    <div id="chart-full-content" style="min-width: 335px; max-width: 425px; height: 300px; margin: 0 auto"></div>
</body>
</html>

Web Programming Tutorials Example with Demo

Read :

Also Read This 👉   3D Scatter Chart Tutorial With Examples

Summary

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

I hope you get an idea about highcharts web 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.