Javascript examples for Chart.js:Chart Configuration
define max tick in polarArea chart?
<html> <head> <title>line chart with ChartJS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://rawgit.com/nnnick/Chart.js/master/Chart.min.js"></script> <script type="text/javascript"> window.onload=function(){//from ww w . j av a 2 s.co m var ctx = document.getElementById("myChart").getContext("2d"); var polarArea = new Chart(ctx, { data: [12, 19, 3, 17, 28, 24, 7], type: 'polarArea', options: { scale: { ticks: { min: 0, max: 100 } } } }); } </script> </head> <body> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.bundle.min.js"></script> <canvas id="myChart" width="600" height="400"></canvas> </body> </html>