- $pg->x = array(_('Current'), $nowdue, $pastdue1, $pastdue2);
- $pg->title = $rep->title;
- $pg->axis_x = _("Days");
- $pg->axis_y = _("Amount");
- $pg->graphic_1 = $to;
- $pg->type = $graphics;
- $pg->skin = $SysPrefs->graph_skin;
- $pg->built_in = false;
+ $pg->setStream('png');
+ $pg->setLabels(array(_('Current'), $nowdue, $pastdue1, $pastdue2));
+ $pg->addSerie(_("Balances"), $serie);
+ $pg->setTitle($rep->title);
+ $pg->setXTitle(_("Days"));
+ $pg->setYTitle(_("Amount"));
+ $pg->setDTitle(number_format2($total[4]));
+ $pg->setValues(true);