ChartJS Polar Area Chart Scale - Javascript Chart.js

Javascript examples for Chart.js:Polar Chart

Description

ChartJS Polar Area Chart Scale

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://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script> 
      <script type="text/javascript">
    window.onload=function(){//from w  ww  .ja v  a  2s . c o  m
var options = {
    scale: {
        display: false
    }
};
var dataLiteracy = {
    labels: [
        "1", "2", "3", "4", "5"
    ],
    datasets: [{
        label: "My dataset",
        backgroundColor: "rgba(179,181,198,0.2)",
        borderColor: "rgba(179,181,198,1)",
        pointBackgroundColor: "rgba(179,181,198,1)",
        pointBorderColor: "#fff",
        pointHoverBackgroundColor: "#fff",
        pointHoverBorderColor: "rgba(179,181,198,1)",
        data: [
            2, 3, 4, 1, 2
        ]
    }]
};
var ctx = document.getElementById("canvas");
var myRadarChart = new Chart(ctx, {
    type: 'radar',
    data: dataLiteracy,
    options: options
});
console.log(myRadarChart);
    }

      </script> 
   </head> 
   <body> 
      <canvas id="canvas" height="200"></canvas>  
   </body>
</html>

Related Tutorials