Basic Line Chart Tutorial With Examples

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

Basic Line Chart Tutorial With Examples

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

As I will cover this Post with live Working example to develop highcharts line chart jsfiddle, so the highcharts sample data is used for this example is following below.

Highcharts Basic Line Chart Example

index.html

Also Read This 👉   Basic Area Chart Tutorial With Examples

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 line 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 graphTitle= {
                text: 'Monthly Average Temperature',
                x: -20 //center
            }
            var graphchildtitle = {
                text: 'Source: Pakainfo.com',
                x: -20
            }
            var graphxaxis =  {
                categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
            }
            var graphyaxis = {
                title: {
                    text: 'Temperature (°C)'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            }
            var graphtooltip =  {
                valueSuffix: '°C'
            }
            var graphlegend= {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
            }
            var graphseries=[{
                name: 'Surat',
                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]
            }, {
                name: 'Jamamangar',
                data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
            }, {
                name: 'Ahemdabad',
                data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
            }, {
                name: 'Rajkot',
                data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
            }]
            $('#chart-full-content').highcharts({
                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 :

Also Read This 👉   Click to Add Point Chart Tutorial With Examples

Summary

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

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