Código PHP:
require_once 'phplot.php';
$data = array(
array('fecha 1', 8), array('fecha 2', 7), array('fecha 3', 5),
array('fecha 4', 8), array('fecha 5', 6), array('fecha 6', 5),
array('fecha 7', 4), array('fecha 8', 2), array('fecha 9', 3),
array('fecha 10', 1), array('fecha 11', 5), array('fecha 12', 6),
array('fecha 13', 4), array('fecha 14', 2),
);
$plot = new PHPlot(700, 600);
$plot->SetImageBorderType('plain');
$plot->SetPlotType('bars');
$plot->SetDataType('text-data');
$plot->SetDataValues($data);
$plot->SetYTickIncrement(1);
$plot->SetPlotAreaWorld(NULL, 0, NULL, 8);
# Turn off X tick labels and ticks because they don't apply here:
$plot->SetXTickLabelPos('none');
$plot->SetXTickPos('none');
$plot->DrawGraph();