<script type="text/javascript">

var chartSPL = Highcharts.chart('container-SPL', {

    chart: {
        type: 'solidgauge',
		events: {
			load: requestData
		}
    },

    title: {
        text: ' ',
		style: { 
			fontFamily: 'Arial, Helvetica, sans-serif',
			color: "#333333", 
			fontSize: "14px" 
		},
        floating: true,
        align: 'left',
        x: 135,
        y: 160
    },
	
	subtitle: null,
	
    pane: {
        center: ['50%', '95%'],
        size: '160%',
        startAngle: -90,
        endAngle: 90,
        background: {
            backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
            innerRadius: '60%',
            outerRadius: '100%',
            shape: 'arc'
        }
    },

    tooltip: {
        enabled: false
    },

    // the value axis
    yAxis: {
        min: 0,
        max: 120,
		title: {
            useHTML: true,
			text: "niveau sonore",
			style: { 
				fontFamily: 'Arial, Helvetica, sans-serif',
				color: "#333333", 
				fontSize: "18px" 
			},
			y: -85
        },
        lineWidth: 0,
        tickInterval: 10,
		tickLength:4,
		tickAmount: 7,
		gridLineColor: "#000000",
		tickColor: "#000000",
        tickPosition: 'inside',
		minorTickInterval: 5,
		minorTickLength:2,
		minorTicks:true,
        minorTickPosition: 'inside',
		minorTickColor: "#000000",
        labels: {
            y: 16,
			style: { "color": "#333333", "fontSize": "14px" }
        }
    },

    plotOptions: {
        solidgauge: {
            dataLabels: {
                y: 5,
                borderWidth: 0,
                useHTML: true
            }
        }
    },

    credits: {
        enabled: false
    },

    series: [
	{
		data: [{
			y:     <?php echo($AQCM05_SPL); ?>,
			color: <?php echo($AQCM05_SPL_color); ?>
		}],
        name: 'SPL',
        dataLabels: {
            y: 10,
			format: '<div style=text-align:center><span style=font-size:26px; color:black>{y}</span></br><span style="font-size:16px;" "font-family: Arial, Helvetica, sans-serif;">dBA</span></div>'
        },
        tooltip: {
            valueSuffix: 'dBA'
        }
    }]

}, 
function (chartt) {

    /*
	chartt.renderer.image(<?php echo $emoticon_SPL; ?>,240,0,80,60)
        .add();
	*/
		
}
);

</script>
