<script type="text/javascript">

var chartTEMP = Highcharts.chart('container-TEMP', {

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

    title: 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: 10,
        max: 30,
        title: {
            text: 'température',
			style: { 
				fontFamily: 'Arial, Helvetica, sans-serif',
				color: "#333333", 
				fontSize: "18px" 
			},
			y: -85
        },
        lineWidth: 0,
        tickInterval: 5,
		tickLength:4,
		tickAmount: 2,
		gridLineColor: "#000000",
		tickColor: "#000000",
        tickPosition: 'inside',
		minorTickInterval: 1,
		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_T); ?>,
			color: <?php echo($AQCM05_T_color); ?>
		}],
        name: 'T',
        dataLabels: {
            y: 10,
			format: '<div style=text-align:center><span style=font-size:26px; color:black>{point.y:.1f}</span></br><span style="font-size:16px;" "font-family: Arial, Helvetica, sans-serif;">°C</span></div>'
        },
        tooltip: {
            valueSuffix: ' °C'
        }
    }]

}, 
function (chartt) {

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

</script>
