Highcharts Pie Demo
Pie with Graphical datalabels
by Ben Clayton
HTML
<script src="//code.highcharts.com/highcharts.js"></script>
<script src="//code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
JavaScript
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie',
margin: [30, 0, 0, 0]
},
title: {
text: 'Population'
},
plotOptions: {
series: {
dataLabels: {
useHTML:true,
enabled: true,
//rotation: -90,
color: '#FFFFFF',
align: 'right',
x: -30,
y: 0,
distance:-1,
formatter: function(){
console.log(this);
return this.colorIndex ? '<span style="color:red;">'+this.y+'</span></br><img...