Mi Performance CHart
by joshkrz
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function() {
// Create the chart
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie'
},
title: {
text: '85.3%',
verticalAlign: 'middle',
style: { "color": "#333333", "fontSize": "28px" },
y: 15
},
subtitle: {
text: 'Bronze',
verticalAlign: 'middle',
style: { "color": "#805F46", "fontSize": "16px", "fontWeight": "bold" },
y: 35,
},
plotOptions: {
pie: {
shadow: false
}
},
credits:{
enabled: false,
},
tooltip: {
enabled: false,
},
series: [{
name: 'Brackets',
data: [
{name:'Score', y:82, color: {
radialGradient: {
cx: 0.5, cy: 0, y1: 0, r: 1.5,
},
stops: [
[0, '#E3B894'],
[0.2, '#B38A6D'],
[0.6, '#805F46'],
],
},
},
{name: 'Remaining', y:18,color:'transparent'}
],
color: '#FF0000',
size: '100%',
innerSize: '80%',
showInLegend:false,
dataLabels: {
enabled: false
}
},
{
name: 'Browsers',
data: [{name:'Unclassified', y:80, color:'#E7E7E7'},{name:'Bronze',y:5,color: {
radialGradient: {
cx: 0.2, cy: 0.07, r: 0.45,
},
stops: [
[0, '#E3B894'],
[0.5, '#B38A6D'],
[1, '#805F46'],
...