Set Date and Label for line chart - Javascript highcharts

Javascript examples for highcharts:Line Chart

Description

Set Date and Label for line chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Custom logo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){//w  w w.j  a v a 2s. c  o  m
$(function () {
    $('#container').highcharts({
        credits: {
            enabled: false
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        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]
        }]
    });
});
    });

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div style="position:relative;"> 
         <a style="display: block;" href="http://remisture.no"> 
            <img style="position:absolute; top: 0; right: 0; z-index: 1;" width="40" src="https://upload.wikimedia.org/wikipedia/en/thumb/3/3a/Burger_King_Logo.svg/1024px-Burger_King_Logo.svg.png"> 
         </a> 
         <div id="container" style="height: 400px"></div> 
      </div>  
   </body>
</html>

Related Tutorials