function process()
 {
     parent::process();
     $this->graph->setAntiAliasing(false);
     $this->setPmvTitle($this->graph);
     $this->plot = new Pie($this->y);
     $this->setPmvBackgroundGradient($this->graph);
     $this->plot->setCenter(0.3, 0.5);
     $this->plot->legend->setAlign(LEGEND_RIGHT);
     if ($this->set3D) {
         $this->plot->setSize(0.55, 0.7);
         $this->plot->set3D(25);
         $this->plot->setAbsSize(240, 155);
         if ($this->width > 400) {
             $this->plot->setCenter(0.25, 0.5);
             $this->plot->legend->setPosition(2, 0.45);
         } else {
             $this->plot->legend->setPosition(1.6, 0.45);
         }
     } else {
         $this->plot->legend->setPosition(1.6, 0.15);
         $this->plot->setAbsSize(220, 220);
         $this->plot->setCenter(0.35, 0.55);
     }
     $this->plot->setBorder(new Black());
     //Color(96, 115, 165));
     $this->plot->setLabelPosition(10);
     $this->plot->label->setPadding(2, 2, 2, 2);
     $this->plot->label->setFont($this->font9);
     $this->plot->setLegend($this->x);
     $this->plot->legend->setTextFont($this->font10);
 }
 function process()
 {
     parent::process();
     $this->setPmvTitle($this->graph);
     $this->setPmvBackgroundGradient($this->graph);
     /**
      * group (bar + line)
      */
     $group = new PlotGroup();
     $this->setPmvGroupProperties($group);
     $group->axis->right->setColor(new Red());
     $group->axis->right->label->setFont(new Font2());
     /**
      * line
      */
     $plot = new LinePlot($this->y2, LINEPLOT_MIDDLE);
     $plot->setColor(new Red());
     $plot->setThickness(1);
     $plot->setYAxis(PLOT_RIGHT);
     $group->legend->add($plot, $this->y2Legend, LEGEND_MARK);
     $group->add($plot);
     /**
      * vertical bar
      */
     $plot = new BarPlot($this->y1);
     $plot->grid->setType(LINE_DASHED);
     $this->setPmvPadding($plot);
     $this->setPmvBackgroundGradient($plot);
     $this->setPmvBarBorderProperties($plot);
     $this->setPmvBarShadowProperties($plot);
     $this->setPmvLabelProperties($plot, $this->y1);
     $this->setPmvBarGradient($plot);
     $this->setPmvBarSize($plot);
     //$plot->xAxis->setColor( new Color(  50, 97, 243) );
     //$plot->yAxis->setColor( new Color(  50, 97, 243) );
     //$plot->xAxis->label->setFont($this->font20);
     $group->axis->bottom->setLabelText($this->x);
     $group->axis->bottom->setPadding(0, 0, 100, 0);
     // display one axis label on two because too long for Mar 04 Apr 04 etc.
     if (isset($this->interval)) {
         $group->axis->bottom->label->setInterval(2);
     }
     $group->legend->add($plot, $this->y1Legend, LEGEND_BACKGROUND);
     $group->add($plot);
     /**
      * add group to graph
      */
     $this->graph->add($group);
 }
 function process()
 {
     parent::process();
     $this->plot = new BarPlot($this->y);
     $this->plot->grid->setType(LINE_DASHED);
     $this->setPmvPadding($this->plot);
     $this->setPmvTitle($this->plot);
     $this->setPmvBackgroundGradient($this->plot);
     $this->setPmvBarShadowProperties($this->plot);
     $this->setPmvLabelProperties($this->plot, $this->y);
     $this->setPmvBarBorderProperties($this->plot);
     $this->setPmvBarSize($this->plot);
     $this->setPmvBarGradient($this->plot);
     $this->plot->xAxis->setColor(new Color(50, 97, 243));
     $this->plot->yAxis->setColor(new Color(50, 97, 243));
     $this->plot->xAxis->label->setFont($this->font8);
     $this->plot->xAxis->setLabelText($this->x);
 }
 function process()
 {
     parent::process();
     $this->setPmvTitle($this->graph);
     $this->setPmvBackgroundGradient($this->graph);
     /**
      * group (bar + line)
      */
     $group = new PlotGroup();
     $this->setPmvGroupProperties($group);
     $group->axis->bottom->setLabelText($this->x);
     // Add a bar plot
     $plot = new BarPlot($this->y1, 1);
     $this->setPmvBarShadowProperties($plot);
     $this->setPmvLabelProperties($plot, $this->y1);
     $this->setPmvBarGradient($plot);
     $this->setPmvBarSize($plot);
     if (!$this->showLabelBar2 && strlen($this->y1[0]) > 2) {
         $plot->label->setInterval(2);
     }
     $group->legend->add($plot, $this->y1Legend, LEGEND_BACKGROUND);
     $group->add($plot);
     if (isset($this->y2)) {
         // Add a second bar plot
         $plot = new BarPlot($this->y2, 1);
         if ($this->showLabelBar2) {
             $this->setPmvLabelProperties($plot, $this->y2);
             $plot->label->move(-5, 4);
             $plot->move(-5, 0);
         } else {
             $plot->move(-2, 0);
         }
         $this->setPmvBackgroundGradient($plot);
         $this->setPmvBarBorderProperties($plot);
         $plot->setBarGradient(new LinearGradient(new Color(126, 126, 176), new Color(158, 158, 222), 0));
         $this->setPmvBarSize($plot);
         $group->legend->add($plot, $this->y2Legend, LEGEND_BACKGROUND);
         $group->add($plot);
     }
     $group->legend->setTextFont($this->font9);
     $this->graph->add($group);
     $this->graph->draw();
 }