Basic Bar Chart Tutorial With Example and demo

Today, We want to share with you Basic Bar Chart Tutorial With Examples.In this post we will show you How to create basic bar chart using highcharts, hear for Create single series basic bar chart using highcharts with example we will give you demo and example for implement.In this post, we will learn about angular ” highcharts – bar chart with an example.

Basic Bar Chart Tutorial With Examples

There are the Following The simple About highcharts stacked bar chart percentage Full Information With Example and source code.

As I will cover this Post with live Working example to develop Highcharts basic bar charts with examples, so the highcharts bar chart with json data is used for this example is following below.

Read Also:  Wind Rose Chart Tutorial With Examples

Highcharts Basic Bar 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 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: 'bar'
            }
            var graphTitle = {
                text: 'Historic World Population by Region'
            }
            var graphchildtitle = {
                text: 'Source: <a href="https://en.wikipedia.org/wiki/World_population">Wikipedia.org</a>'
            }
            var graphxaxis = {
                categories: ['Rajkot', 'JAmmnabagar', 'Mubai', 'Surat', 'Kalavad'],
                title: {
                    text: null
                }
            }
            var graphyaxis = {
                min: 0,
                title: {
                    text: 'Population (millions)',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            }
            var graphtooltip = {
                valueSuffix: ' millions'
            }
            var graphplotoptions = {
                bar: {
                    dataLabels: {
                        enabled: true
                    }
                }
            }
            var graphlegend = {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -40,
                y: 80,
                floating: true,
                borderWidth: 1,
                backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#3d3d3d'),
                shadow: true
            }
            var chartcredits = {
                enabled: false
            }
            var graphseries = [{
                name: 'Year 2000',
                data: [107, 31, 635, 203, 2]
            }, {
                name: 'Year 2034',
                data: [133, 156, 947, 408, 6]
            }, {
                name: 'Year 2023',
                data: [1052, 954, 4250, 740, 38]
            }]
            $('#chart-full-content').highcharts({
                chart:graphtype,
                title: graphTitle,
                subtitle: graphchildtitle,
                xAxis:graphxaxis,
                yAxis: graphyaxis,
                tooltip: graphtooltip,
                plotOptions: graphplotoptions,
                legend:graphlegend,
                credits:chartcredits,
                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:  Spline with Inverted Axes Chart Tutorial

Summary

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

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