$x -= $nb_day * $daypoint;
             $x_label = date("M", mktime(0, 0, 0, date("m") - ($j + 1), date("d"), date("Y")));
             $image->setItemData($x, $x_label);
         }
         break;
 }
 $image->enable("ItemData");
 # Upper and lower indices and scale step
 $image->setY($upper_limit + 0.0001, 0, ceil($upper_limit / 5));
 #############################################################
 # How many data values do we have:
 # 24 hrs = 1440 min / collection interval ie.
 # 1440 / 15 mins = 96 values
 # I want to show legend only every 2 hours ie. 12 points
 #############################################################
 $image->paintXY();
 # Axis legend
 $image->paintScale("Time", "Number of licenses", "FF_FONT1");
 # Graph color
 $image->setGraphcolor(100, 100, 200);
 $image->paintData();
 ################################################################################
 # We will now draw a line that indicates the number of available licenses ie.
 # at the top of the graph we will draw a solid line
 ################################################################################
 # Clear the data from the bar graph
 $image->clearData();
 $image->setDiagramType("Line");
 $image->setData(0, $upper_limit);
 $image->setData($i, $upper_limit);
 $image->setGraphcolor(255, 0, 0);