Highcharts Demo

author(s): Torstein Hønsi

by Murali Kaliappan

HTML

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

<div id="container" style="height: 400px"></div>

CSS

.highcharts-series path {
    animation: dash 7s linear infinite;
  }
  
  @keyframes dash {
  to {
     stroke-dashoffset: -100;
   }
  }

JavaScript

Highcharts.chart('container', {
    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
        title: {
            enabled: true,
            text: 'Custom with <b>simple</b> <i>markup</i>',
            margin:50,
            style: {                               
                fontSize:15,
                fontWeight:'bold'
            }
        }
    },


    legend: {
        enabled: false
    },

    credits: {
        enabled: false
    },

    series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],zoneAxis: 'x',
        zones: [{
          value: 3,
          dashStyle: 'solid',
        }, {
          value: 7,
          dashStyle: 'dot',
          color: '#dd0c1e'
        }, {
          dashStyle: 'solid',
        }
        ]
    }]
});