(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: 'column' }, title: { text: 'Guests Rate Our Meals:' }, exporting: { enabled: false }, tooltip: { pointFormat: '{series.name}: {point.percentage:.1f}%', style: { fontSize: fontSize }, formatter: function() { return '' + this.x + ': ' + this.y + '%'; } }, xAxis:{ categories: ["Excellent","Good","Fair","Poor"], labels:{ style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black', fontSize: fontSize } } }, plotOptions: { column: { dataLabels: { enabled: true, crop: false, overflow: 'none', format: '{point.y:.2f}%', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black', fontSize: fontSize } } } }, yAxis: { title: { enabled: false }, max: 100 }, series: [{ showInLegend: false, colorByPoint: true, data: [{"name":"Excellent","y":91.1},{"name":"Good","y":8.05},{"name":"Fair","y":0.42},{"name":"Poor","y":0.42}] }], colors: ['#7cb5ec', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1'] }); }); })();