Created
April 7, 2017 21:34
-
-
Save theinventor/ab8b8afab90dad6be753349730c21fcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Highcharts.chart('.RedYellowChart', { | |
chart: { | |
plotBackgroundColor: null, | |
plotBorderWidth: 0, | |
plotShadow: false | |
}, | |
title: { | |
text: 'Browser<br>shares<br>2015', | |
align: 'center', | |
verticalAlign: 'middle', | |
y: 40 | |
}, | |
tooltip: { | |
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' | |
}, | |
plotOptions: { | |
pie: { | |
dataLabels: { | |
enabled: true, | |
distance: -50, | |
style: { | |
fontWeight: 'bold', | |
color: 'white' | |
} | |
}, | |
startAngle: -90, | |
endAngle: 90, | |
center: ['50%', '75%'] | |
} | |
}, | |
series: [{ | |
type: 'pie', | |
name: 'Browser share', | |
innerSize: '50%', | |
data: [ | |
['Firefox', 10.38], | |
['IE', 56.33], | |
['Chrome', 24.03], | |
['Safari', 4.77], | |
['Opera', 0.91], | |
{ | |
name: 'Proprietary or Undetectable', | |
y: 0.2, | |
dataLabels: { | |
enabled: false | |
} | |
} | |
] | |
}] | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment