<script type="text/javascript">

var chartHCHO = Highcharts.chart('container-HCHO', {

    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: 0,
        max: 200,
		title: {
            useHTML: true,
			text: "formaldéhyde" + whiteSpacer(1) + "<sub>(HCHO)</sub>",
			style: { 
				fontFamily: 'Arial, Helvetica, sans-serif',
				color: "#333333", 
				fontSize: "18px" 
			},
			y: -85
        },

        lineWidth: 0,
        minorTickInterval: null,
        tickAmount: 2,
        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_HCHO); ?>,
			color: <?php echo($AQCM05_HCHO_color); ?>
		}],
        name: 'HCHO',
        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;">ug/m3</span></div>'
        },
        tooltip: {
            valueSuffix: ' ug/m3'
        }
    }]

}, 
function (chartt) {

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

</script>
