Chart.js to create Polar Scatter Chart - Javascript Chart.js

Javascript examples for Chart.js:Polar Chart

Description

Chart.js to create Polar Scatter Chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.js"></script> 
      <link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"> 
      <script type="text/javascript">
    $(window).load(function(){/*  w  ww .j  a  v  a  2  s . c o m*/
var ctx = document.getElementById('myChart').getContext('2d');
new Chart(ctx, {
        data: {
        labels: ["January", "February", "March", "April", "May"],
        datasets: [{
            label: "My First dataset",
            borderColor: 'rgb(255, 99, 132)',
            data: [2, 10, 5, 6, 15],
        }]
    },
    type: 'polarArea',
    options: {}
});
    });

      </script> 
   </head> 
   <body> 
      <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.bundle.js"></script> 
      <canvas id="myChart"></canvas>  
   </body>
</html>

Related Tutorials