highcharts

In this example below you will see how to do a highcharts with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by 马更新, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 马更新 ©

Technologies

  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>highcharts</title>
  
  
  
  
  
</head>

<body>

  <div id="container" style="min-width:800px;height:400px;"></div>
  <script src='http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js'></script>
<script src='http://cdn.hcharts.cn/highcharts/4.0.1/highcharts.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/magengxin/highcharts-WJgqLr */
 $(function () {   
        $('#container').highcharts({  
            chart: {  
                type: 'column'  
            },  
            title: {  
                text: 'My first Highcharts chart'  
            },  
            xAxis: {  
                categories: ['my', 'first', 'chart']  
            },  
            yAxis: {  
                title: {  
                    text: 'something'  
                }  
            },  
            series: [{  
                name: 'Jane',  
                data: [1,2,3]  
            }, {  
                name: 'John',  
                data: [5, 7, 3]  
            }]  
        });  
    });

Comments