Highcharts Demo

author(s): Torstein Hønsi

by Chitkala More

HTML

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

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

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'line'
    },
     credits: {
       enabled: false
     },
  	exporting: {
    		enabled: false
  	},
    title: {
        text: ''
    },
    subtitle: {
        text: 'Status Update Dates',
     //   y: 390
    },
     xAxis: {
        categories: ['Jan','Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
         type: 'datetime',
    dateTimeLabelFormats: { // don't display the dummy year
            month: '%e. %b',
            year: '%b'
         },
    }, 
    yAxis: {     
        title: {
            text: 'Goal Progress'
        },
        min:'0',
        max:'100',
        tickInterval:'10',
        gridLineDashStyle: 'dash'
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'Goal Progress',  
     
 /*        data: [ 
             [new Date(2018, 1, 1).toLocaleString('default', { date: 'short' }), 10],
            [new Date(2018, 2, 12).toLocaleString('default', { date: 'short' }), 30],
            [new Date(2018, 3, 13).toLocaleString('default', { date: 'short' }), 40],
            [new Date(2018, 4, 14).toLocaleString('default', { date: 'short' }), 60],
            [new Date(2018, 4, 15).toLocaleString('default', { date: 'short' }), 45],
            [new Date(2018, 4, 16).toLocaleString('default', { date: 'short' }), 85],
            [new Date(2018, 4, 19).toLocaleString('default', { date: 'short' }), 78],
            [new Date(2018, 5, 4).toLocaleString('default', { date: 'short' }), 87],
            [new Date(2018, 5, 9).toLocaleString('default', { date: 'short' }), 80],
            [new Date(2018, 5, 14).toLocaleString('default', { date: 'short' }), 70],
            [new Date(2018, 5, 19).toLocaleString('default', { date: 'short' }), 65], 
         [Date.UTC(2018, 5, 24).toLocaleString('default', { date: 'short' }),...