Highcharts Demo
author(s): Kamil Kulig
by praveen_kr
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 200px; width: 281px;"></div>
JavaScript
Highcharts.chart('container', {
chart: {
borderWidth: 1,
borderColor: '#eee',
plotBackgroundColor: null,
//plotBorderWidth: 1,
plotShadow: false,
type: 'pie',
width: 281,
height: 200,
//spacingLeft: 0 // plotLeft
},
title:{
text:'',
verticalAlign: 'middle',
floating: true,
align: 'center',
style: {
fontSize: '14px',
fontFamily: 'Arial',
fontWeight: 'normal',
color: '#333333',
textShadow: false, //bug fixed IE9 and EDGE
}
},
tooltip: {
pointFormat: '<b>{point.percentage:.1f}%</b> of all {series.total} cups'
},
plotOptions: {
pie: {
size: 125,
alignTo: 'connectors',
//center: [50, 50],
allowPointSelect: true,
cursor: 'pointer',
innerSize: '60%',
dataLabels: {
enabled: true,
distance: 15,
connectorShape: 'crookedLine',
crookDistance: '70%',
// alignTo: 'plotEdges',
format: '{point.name}</b>: {point.y}',
style: {
fontSize: '9px',
fontFamily: 'Arial',
fontWeight: 'normal',
color: '#333333',
textShadow: false, //bug fixed IE9 and EDGE
}
}
}
},
series: [{
name: 'Teams',
//dataLabels: {
// connectorShape: 'crookedLine',
// crookDistance: '70%'
// } ,
colorByPoint: true,
data: [{
name: 'Us',
y: 64.9
}, {
name: 'Europe',
y: 18.9
}, {
...