Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 15708)
+++ schedule/Module/calendar.php	(revision 15710)
@@ -88,94 +88,42 @@
 									newdata=newline.join(",");
 									document.getElementById('data').innerHTML=newdata;
-									/*if(source==<?php echo $rows['SourceID']; ?>)
-									{
-										if(chart.series)
-										{
-											<?php $s=$rows['SourceID']; ?>*/
-												//chart.addSeries({data:[23,41,51,61]});
-												 function addSeries(chart) {      
-													var newSeries = new Highcharts.Series();
-													newSeries.name = 'Tokyo';
-													newSeries.data = [2,4,5,6,8,9];
-													newSeries.zIndex = -1;
-													 
-													 for (var i = 0; i < newSeries.data.length; i++) {
-														 var datum = newSeries.data[i];
-														 datum.marker = {
-															 enabled: false, 
-															 states: {
-																 hover: {
-																	 enabled: false,
-																	 lineColor: '#ff0000'
-																 }
-															 }
-														};
-													 }
-													
-													chart.addSeries(newSeries);     
-													
-												};
-										/*}
-									}
-									/*for (var i = 0; i < newSeries.data.length; i++) {
-											 var datum = newSeries.data[i];
-											 datum.marker = {
-												 enabled: false, 
-												 states: {
-													 hover: {
-														 enabled: false,
-														 lineColor: '#ff0000'
-													 }
-												 }
-											};
-									for(var c=0;c<newline.length;c++)
-									{
-										arr[c];
-									};*/
-									var chart = new Highcharts.Chart({
+									$(function () {
+										var data = '[{"name":"Station 1","data":"1360191600,398.625"},{"name":"Station 1","data":"1360192500,398.625"},{"name":"Station 1","data":"1360193400,398.25"},{"name":"Station 1","data":"1360194300,397.375"},{"name":"Station 1","data":"1360195200,397.5"},{"name":"Station 1","data":"1360196100,397.5"},{"name":"Station 1","data":"1360199700,396.75"},{"name":"Station 1","data":"1360200600,397"}]';
+
+
+										var options = {
+											chart: {
+												renderTo: 'container'
+											},
+											xAxis: {
+												type:'datetime'
+											},
+											series: []
+										};
+
+										data = JSON.parse(data);
+										var names = [];
+										$.each(data, function (i, ligne) {
+											var ind = names.indexOf(ligne.name),
+												splited = ligne.data.split(','),
+												x = parseFloat(splited[0]),
+												y = parseFloat(splited[1]);
+											if (ind == -1) {
+												ind = names.push(ligne.name) - 1;
+												options.series.push({
+													data: [],
+													name: ligne.name
+												});
+											} 
+											if(!isNaN(x) && !isNaN(y)){
+												options.series[ind].data.push([x,y]);    
+											}
+										});
+										
+										console.log(options);
+
+										var chart = new Highcharts.Chart(options);
+									});
 									
-									
-										chart: {
-											renderTo: 'container' /* display to div Graph*/
-									   },
-										
-										xAxis: {
-										labels: {
-													rotation: -45,
-													align: 'right',
-													},
-											categories:["","","","","","","","19:00","20:00","21:00","22:00","23:00","24:00","1:00","2:00","3:00","4:00","5:00","6:00","7:00"]},
-										series:[], /* array of Data  */
-										
-										remove:function()
-										{
-											return false;
-										},
-										
-										 exporting: {							/*--------------------*/
-										  buttons: {							/*					  */
-											exportButton: {					/*		Export		  */
-												menuItems: null,			/*		  to		  */
-												   onclick: function() {		/*			PNG.file  */
-														this.exportChart();		/*--------------------*/
-													}
-												}
-											}
-										},
-										
-										plotOptions:
-										{
-										series: {
-												marker: {
-													enabled: true,
-													
-												}
-												 
-										}
-										},
-									
-										
-										
-									});
 									/*$('#add').click(function(){
 										
