Basic Area Chart Tutorial With Examples

Today, We want to share with you Basic Area Chart Tutorial With Examples.In this post we will show you How to implement basic area chart using highcharts, hear for Simple basic area chart using highcharts we will give you demo and example for implement.In this post, we will learn about highcharts bar chart multiple series with an example.

Basic Area Chart Tutorial With Examples

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

As I will cover this Post with live Working example to develop Area chart using highcharts with example, so the highcharts area chart gradient is used for this example is following below.

Highcharts Basic Area 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.

Also Read This πŸ‘‰   VU Meter Chart Tutorial With Examples

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Highcharts Basic Area 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'
            }
            var graphTitle = {
                text: 'US and USSR nuclear stockpiles'
            }
            var graphchildtitle = {
                text: 'Source: <a href="http://thebulletin.metapress.com/content/c4120650912x74k7/fulltext.pdf">' +
                    'thebulletin.metapress.com</a>'
            }
            var graphxaxis = {
                allowDecimals: false,
                labels: {
                    formatter: function () {
                        return this.value; // clean, unformatted number for year
                    }
                }
            }
            var graphyaxis = {
                title: {
                    text: 'Nuclear weapon states'
                },
                labels: {
                    formatter: function () {
                        return this.value / 1414 + 'k';
                    }
                }
            }
            var graphtooltip = {
                pointFormat: '{series.name} produced <b>{point.y:,.0f}</b><br/>warheads in {point.x}'
            }
            var graphplotoptions = {
                area: {
                    pointStart: 1940,
                    marker: {
                        enabled: false,
                        symbol: 'circle',
                        radius: 2,
                        states: {
                            hover: {
                                enabled: true
                            }
                        }
                    }
                }
            }
            var graphseries = [{
                name: 'USA',
                data: [null, null, null, null, null, 6, 11, 32, 110, 235, 369, 640,
                    1005, 1436, 2063, 3057, 4618, 6444, 9822, 15468, 20434, 24126,
                    27387, 29459, 31056, 31982, 32040, 31233, 29224, 27342, 26662,
                    26956, 27912, 28999, 28965, 27826, 25579, 25722, 24826, 24605,
                    24304, 23464, 23708, 24099, 24357, 24237, 24401, 24344, 23586,
                    22380, 21004, 17287, 14747, 13076, 12555, 12144, 11009, 10950,
                    10871, 10824, 10577, 10527, 10475, 10421, 10358, 10295, 10104]
            }, {
                name: 'USSR/ganesh',
                data: [null, null, null, null, null, null, null, null, null, null,
                    5, 25, 50, 120, 150, 200, 426, 660, 869, 1060, 1605, 2471, 3322,
                    4238, 5221, 6129, 7089, 8339, 9399, 10538, 11643, 13092, 14478,
                    15915, 17385, 19055, 21205, 23044, 25393, 27935, 30062, 32049,
                    33952, 35804, 37431, 39197, 45414, 43414, 41414, 39414, 37414,
                    35414, 33414, 31414, 29414, 27414, 25414, 24414, 23414, 22414,
                    21414, 24140, 20340, 24140, 24140, 17100, 16414]
            }]
            $('#chart-full-content').highcharts({
                chart:graphtype,
                title: graphTitle,
                subtitle: graphchildtitle,
                xAxis:graphxaxis,
                yAxis: graphyaxis,
                tooltip: graphtooltip,
                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 :

Also Read This πŸ‘‰   Pie Chart Tutorial With Examples with Demo

Summary

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

I hope you get an idea about highcharts simple bar chart example.
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.