Create polar bar chart - Javascript highcharts

Javascript examples for highcharts:Bar Chart

Description

Create polar bar 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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {/*from w w  w  . j  a  v a  2  s .c  om*/
    Highcharts.getOptions().colors = Highcharts.map(Highcharts.getOptions().colors, function (color) {
          return Highcharts.Color(color)
             .setOpacity(0.5)
             .get('rgba');
       });
    $('#container').highcharts({
        series: [ {
                name: 'Joe',
                data: [3, 4, 4, 2, 5,3, 4, 4, 2, 5, 2, 5, 3],
                stack: 'male', pointPadding: 0.1
            }, {
                name: 'Janet1',
                data: [3, 0, 4, 4, 3, 3, 0, 4, 4, 3, 4, 3, 3],
                stack: 'female1', pointPadding: 0.7
            }],
        chart: {
            polar: true,
            type: 'column',
            backgroundColor: '#4A525E'
        },
        xAxis: [{
            lineWidth: 5,
            offset: 110,
            categories: ['6','7','8','9','10','11','12','13','14','15','16','17','18'],
            tickInterval: 1,
            tickmarkPlacement: 'on',
            gridLineWdith: 0,
        }],
        yAxis: {
            min: -10,
            endOnTick: false,
            showLastLabel: true,
            title: {
                text: null
            },
            labels: {
                align: 'center'
            }
        },
        plotOptions: {
            column:{
              grouping: false,
                shadow: false
            }
        }
    });
});

      </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/data.js"></script> 
      <script src="https://code.highcharts.com/modules/exporting.js"></script> 
      <div id="container" style="width: 600px; height: 400px; margin: 0 auto"></div> 
      <div style="display:none"></div>  
   </body>
</html>

Related Tutorials