in Spider Chart change axis ranges - Javascript highcharts

Javascript examples for highcharts:Chart Axis

Description

in Spider Chart change axis ranges

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.9.1.js"></script> 
      <script type="text/javascript">
$(function () {/* ww w  .  j  a  v  a 2 s.  com*/
   $('#container').highcharts({
       chart: {
           polar: true,
           type: 'line'
       },
       title: {
           text: 'Budget vs spending',
           x: -80
       },
       pane: {
          size: '80%'
       },
       xAxis: {
           categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
                   'Information Technology', 'Administration'],
           tickmarkPlacement: 'on',
           lineWidth: 0
       },
       yAxis: {
           gridLineInterpolation: 'polygon',
           lineWidth: 0
       },
       tooltip: {
          shared: true,
           pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
       },
       legend: {
           align: 'right',
           verticalAlign: 'top',
           y: 100,
           layout: 'vertical'
       },
       series: [{
           name: 'Allocated Budget',
           data: [100, 19000, 60000, 35000, 17000, 10000000],
           pointPlacement: 'on'
       }, {
           name: 'Actual Spending',
           data: [50, 39000, 42000, 31000, 26000, 1000000],
           pointPlacement: 'on'
       }]
   });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
      <script src="https://code.highcharts.com/modules/exporting.js"></script> 
      <div id="container" style="width: 700px; height: 400px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials