<script type="text/javascript">

Highcharts.setOptions({
	global: {
		useUTC: false
	}
});

var chartDELTAP = Highcharts.chart('container_DELTA_P', {

	chart: {
		type: 'spline',
		height: 200,
		width: 320,
		marginLeft: 35,
		marginRight:5,
		marginTop:22,
		marginBottom:42,
		spacingLeft:0,
		plotBorderColor: '#000000',
		plotBorderWidth: 1,
		borderWidth: 0
	},
	
    credits: {
        enabled: false
    },

	plotOptions: 
	{
		spline: 
		{
			marker: {
				enabled: false
			}
		},
        series: {
			animation: false,
            states: {
                hover: {
                    enabled: false
                }
            }
        }
	},

   credits: {
        enabled: false
    },

   legend: {
		enabled: false
	},
	
	tooltip: {
		enabled: false
	},
	
    title: {
        text: 'P sur 24 h',
		style: { 
			fontFamily: 'Arial, Helvetica, sans-serif',
			color: "#000000", 
			fontSize: "20px" 
		},
        floating: true,
        align: 'center',
        
		x:20,
		y: 7
    },

	xAxis: {
		startOnTick: true,
		endOnTick: true,
		tickColor:"#000000",
		tickLength:5,
		tickInterval: 1*3600*1000,
		gridLineColor:"#C9C9CB",
		gridLineWidth: 1,
		min: <?php echo 1000*$start;?>,
		max: <?php echo 1000*$stop;?>,
		type: 'datetime',
		labels:{
			style: { 
				fontFamily: 'Arial, Helvetica, sans-serif',
				color: "#000000",
				fontSize: "10px"
			}
		},
		dateTimeLabelFormats: {
			month: '%e. %b',
			year: '%b'
		}
	},

	yAxis: 
	{ 
		offset: 0,
		min: <?php echo $P_min; ?>,
		max: <?php echo $P_max; ?>,
		tickInterval: <?php echo $Tick_intervalle; ?>,
		tickColor:"#000000",
		tickLength:5,
		tickWidth: 1,
		allowDecimals: false,
		showFirstLabel:true,
		showLastLabel: true,
		gridLineColor: "#C9C9CB",
		gridLineWidth: 1,
		gridLineDashStyle: 'Solid',
		minorTicks: true,
		minorTickInterval: 1,
		minorGridLineColor:"#C9C9CB",
		minorGridLineDashStyle: 'Solid',
		minorGridLineWidth:1,
		labels:{
			align: 'right',
			x: -10,
			y: 5,
			style: { 
				fontFamily: 'Arial, Helvetica, sans-serif',
				color: "#000000",
				fontSize: "10px"
			}
		},
		title: {
			text: '',
			x:60,
			y:-15,
			align: "high",
			style: { 
				color: "#000000",
				fontSize: "20px"
				},
			rotation: 0
		}
				
	},
			
	series: 
	[
		{
			<?php echo "
			type: 'spline',
			name: 'DELTA_P', 
			visible: true,
			color: '" . $couleur_courbes . "',
			lineWidth: " . $HC_lineWidth . ", 
			data: " . $series_data_P_moy . "
			"; ?>
		}
	]

	
});

</script>
