<?php
	$g = new chart;
	
	foreach ($elemy as $k => $v)
		foreach ($v as $kk => $vv)
		{
	    	$g->xValue[$k][] = $elemx[$k][$kk];
	    	$g->DataValue[$k][] = $vv;
		}
	
	$g->Title = "Wykres pozycji w google";
	$g->SubTitle = ' ';//$domain_name;
	$g->Width = ($xcount*45) + 280;
	$g->Height = 400;
	$g->ShowBullets = TRUE;
	
	$g->LineShowCaption = FALSE; // TO BE FIXED YET
	$g->LineShowTotal = FALSE;   // DEPENDS ON LineShowCaption to be TRUE
	//$g->LineCaption[0] = "Period 1";
	//$g->LineCaption[1] = "Period 2";
	$g->LineCount = $lines;
	
	$g->xCount = $xcount;
	//$g->xCaption = "Difference: ".$dif;
	$g->xShowValue = TRUE; 
	$g->xShowGrid = FALSE;
	
	$g->yCount = 10;
	$g->yCaption = "Pozycja w google (im mniejsza tym lepiej)";
	$g->yShowValue = TRUE;
	$g->yShowGrid = FALSE;
	
	$g->DataDecimalPlaces = 0;
	$g->DataMax = $ymax;
	$g->DataMin = 0;
	$g->DataShowValue = TRUE; //dane przy punktach na liniach
	$g->MakeLinePointChart();
?>