}
array_shift($count);
array_shift($matchdate);
//  echo "matchdate";
//       print_r($matchdate);
//      print_r($count);
require_once "/var/www/ChartDirector/lib/phpchartdir.php";
# Create a XYChart object of size 250 x 250 pixels
$c = new XYChart(780, 390);
# Set the plotarea at (30, 20) and of size 200 x 200 pixels
$c->setPlotArea(40, 10, 700, 290, 0xe9fae7, 0xffffff);
# Add a title to the pie chart
$c->addTitle($display_date);
# Add a line chart layer using the given data
$lineObj = $c->addLineLayer($count, 0x70e17513);
$lineObj->set3D();
$c->yAxis->setTickDensity(30);
$c->xAxis->setTickDensity(75);
# Set the labels on the x axis.
$c->xAxis->setLabels($matchdate);
# Add a title to the y axis
$c->yAxis->setTitle("Searches");
# Add a title to the x axis
$c->xAxis->setTitle("Days");
$labelsObj = $c->xAxis->setLabels($matchdate);
$labelsObj->setFontAngle(70);
$labelsObj->setFontStyle("arial.ttf");
$labelsObj->setFontSize(9);
$filename = $path . "/provider/charts/defaultimages/" . $imagename;
$c->makeChart($filename);