File "highcharts08.php"

Full Path: /home/analogde/www/Bookmarks/CHESS_ON/highcharts08.php
File size: 1.65 KB
MIME-type: text/html
Charset: utf-8

<link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>



<script>

$.ajax({
    url: 'charts_datas.php',
    type: 'GET',
    async: true,
    dataType: "json",
    success: function (data) {
       //alert(data);
	   
	   traitement(data);
    }
  });

function  traitement(data)
{ 
/* 
  //$(function () {
    $('#container').highcharts({
	
		chart: {
            type: 'line',
        },
	
        title: {
            text: 'Evolution de votre classement',
            x: -20 //center
        },
        
        xAxis: {
           type:"datetime",
		   tickInterval : 24 * 3600
        },
        yAxis: {
            title: {
                text: 'ELO'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: ''
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
       		
		
		series:[{    
					data:
					[
						[1274457600000, 1200], 
						[1274544000000, 1300], 
						[1274630400000, 1250],
						[1274803200000,1350]
					]
					}]
					
		   
        });			
		
  /*  });*/
/*});*/

	alert("Salut");

}

</script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>