(function(){ function makeid() { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < 5; i++){ text += possible.charAt(Math.floor(Math.random() * possible.length)); } return text; } var container_id = 'gfs_stats_graph_container_' + makeid(); document.write("
"); if(!window.Highcharts){ document.write(""); document.write(""); } window.addEventListener('load', function(){ var fontSize = '13px'; Highcharts.chart(container_id, { chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, type: 'pie' }, title: { text: 'Guests Rate Our Guides:' }, exporting: { enabled: false }, tooltip: { pointFormat: '{series.name}: {point.percentage:.1f}%', style: { fontSize: fontSize }, formatter: function() { return '' + this.key + ': ' + Highcharts.numberFormat(this.percentage, 2) + '%'; } }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.2f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black', fontSize: fontSize } } } }, series: [{ showInLegend: false, colorByPoint: true, data: [{"name":"Excellent","y":93.01},{"name":"Good","y":5.67},{"name":"Fair","y":0.95},{"name":"Poor","y":0.38}] }], colors: ['#7cb5ec', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1'] }); }); })();