ChartJS radar scale points - Javascript Chart.js

Javascript examples for Chart.js:Chart Configuration

Description

ChartJS radar scale points

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-2.1.0.js"></script> 
      <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.1-beta.2/Chart.min.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){// www .j  ava2s.c  o m
    });

      </script> 
   </head> 
   <body> 
      <canvas id="radarCanvas" height="200" width="200"></canvas> 
      <script language="javascript">var radarChartData = {
labels: ["ATT", "SPD", "POW", "DEF", "STA", "TEC"],
datasets: [ {
fillColor: "rgba(0,120,0,0.2)",
strokeColor: "rgba(0,120,0,1)",
pointColor: "rgba(10,10,10,1)",
pointStrokeColor: "#ccc",
pointHighlightFill: "#333",
pointHighlightStroke: "rgba(255,255,0,1)",
data: [
12,15,17,16,11,13] } ] };
window.onload = function(){
var ctx = document.getElementById("radarCanvas").getContext("2d");
window.myRadar = new Chart(ctx).Radar(radarChartData, {
responsive: false,
    pointDot:false,
    showTooltips: false,
    scaleOverride: true,
    scaleSteps: 4,
    scaleStepWidth: 5,
    scaleStartValue: 0
}); }

      </script>  
   </body>
</html>

Related Tutorials