Highcharts Demo

author(s): Torstein Hønsi

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'areaspline'
    },
    title: {
        text: 'Credit Loan'
    },
    subtitle: {
        text: 'New/Existing Loans'
    },
    xAxis: {
        
            title: '',
            type: 'datetime',
						labels: {
              format: '{value:%d.%m.%y}'
              }
    },
    yAxis: {
        title: {
            text: 'millions'
        },
        labels: {
            formatter: function () {
                return this.value/1000000;
            }
        }
    },
    tooltip: {
        split: true,
        valueSuffix: ' millions'
    },
    plotOptions: {
        areaspline: {

    //        stacking: 'areaspline',
    
            lineColor: '#666666',
            lineWidth: 1,
            marker: {
                lineWidth: 1,
                lineColor: '#666666',

            }
        }
    },
    series: [{
        name: 'New Loan',
        
        data: [
        [Date.UTC(2018, 6,  7), 155317288],
        [Date.UTC(2018, 11,  29), 155317288],
        [Date.UTC(2018, 11,  29), 80000000],
        [Date.UTC(2019, 5,  6), 80000000],
        
        ]
    },
    {
        name: 'Existing Loan',
        data: [
        [Date.UTC(2018, 6,  7), 75317288],
        [Date.UTC(2018, 11,  29), 75317288],        
                
        ]
    }]
});
javascripthighchartshighcharts-ng