<script type="text/javascript">

var chartIAQ = Highcharts.chart('container-IAQ', {

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

    title: {
        text: '<?php echo( $AQCM05_NOX ); ?>',
		style: { 
			fontFamily: 'Arial, Helvetica, sans-serif',
			color: "#333333", 
			fontSize: "14px" 
		},
        floating: true,
        align: 'left',
        x: 115,
        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: 500,
		title: {
            useHTML: true,
			text: "qualité de l'air" + whiteSpacer(1) + "<sub>(COV)</sub>",
			style: { 
				fontFamily: 'Arial, Helvetica, sans-serif',
				color: "#333333", 
				fontSize: "18px" 
			},
			y: -85
        },
		gridLineColor: "#000000",
		tickInterval: 500,
		tickLength:0,
		tickColor: "#000000",
        tickPosition: 'outside',
		minorTickInterval: 50,
		minorTickLength:5,
		minorTicks:false,
        minorTickPosition: 'outside',
		minorTickColor: "#000000",
        lineWidth: 0,
        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_COV_IAQ); ?>,
			color: <?php echo($AQCM05_COV_IAQ_color); ?>
		}],
        name: 'IAQ',
        dataLabels: {
            y: 00,
			format: '<div style=text-align:center><span style=font-size:24px; color:black>{y}/500</span></br></br></div>'
        },
        tooltip: {
            valueSuffix: '/500'
        }
    }]

}, 
function (chartt) {

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

</script>
