<script type="text/javascript">

var chartHR = Highcharts.chart('container-HR', {

    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: 100,
        title: {
            text: 'humidité relative',
			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_HR); ?>,
			color: <?php echo($AQCM05_HR_color); ?>
		}],
        name: 'HR',
        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;">%</span></div>'
        },
        tooltip: {
            valueSuffix: ' %'
        }
    }]

}, 
function (chartt) {

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

</script>
