Radial bar chart

author(s): Pawel Dalek

by Thimo Grauerholz

HTML

<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>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>

<!-- Flag sprites service provided by Martijn Lafeber,
    https://github.com/lafeber/world-flags-sprite/blob/master/LICENSE -->
<link rel="stylesheet" href="https://github.com/downloads/lafeber/world-flags-sprite/flags16.css" />

<figure class="highcharts-figure">
    <div id="container"></div>
    <p class="highcharts-description">
        A polar bar chart is similar to a bar chart, but the y-axis is circular.
        In this demo we see the total Winter Olympics medals earned for the top 10
        countries.
    </p>
</figure>

CSS

#container {
    height: 600px;
}

.highcharts-figure, .highcharts-data-table table {
    min-width: 320px; 
    max-width: 800px;
    margin: 1em auto;
}

.highcharts-data-table table {
	font-family: Verdana, sans-serif;
	border-collapse: collapse;
	border: 1px solid #EBEBEB;
	margin: 10px auto;
	text-align: center;
	width: 100%;
	max-width: 500px;
}
.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}
.highcharts-data-table th {
	font-weight: 600;
    padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
    padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}
.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

.ld-label {
	width:200px;
	display: inline-block;
}

.ld-url-input {
	width: 500px; 
}

.ld-time-input {
	width: 40px;
}

JavaScript

Highcharts.chart('container', {
  "colors": ["#FFD700", "#C0C0C0", "#CD7F32"],
  "chart": {
    "type": "column",
    "inverted": true,
    "polar": true
  },
  "title": {
    "text": "Winter Olympic medals per existing country (TOP 10)"
  },
  "tooltip": {
    "outside": true
  },
  "pane": {
    "size": "85%",
    "endAngle": 270
  },
  "xAxis": {
    "tickInterval": 1,
    "labels": {
      "align": "right",
      "useHTML": true,
      "allowOverlap": true,
      "step": 1,
      "y": 4,
      "style": {
        "fontSize": "12px"
      }
    },
    "lineWidth": 0,
    "categories": ["Ok", "Off", "Warning", "Danger"]
  },
  "yAxis": {
    "lineWidth": 0,
    "tickInterval": 25,
    "reversedStacks": false,
    "endOnTick": true,
    "showLastLabel": true
  },
  "plotOptions": {
    "column": {
      "stacking": "normal",
      "borderWidth": 0,
      "pointPadding": 0,
      "groupPadding": 0.15
    }
  },
  "series": [{
    "name": "",
    "data": [13, 1, 1, 4]
  }]
});