[ Index ] |
|
Code source de phpMyVisites 2.3 |
1 <?php 2 /* 3 * phpMyVisites : website statistics and audience measurements 4 * Copyright (C) 2002 - 2006 5 * http://www.phpmyvisites.net/ 6 * phpMyVisites is free software (license GNU/GPL) 7 * Authors : phpMyVisites team 8 */ 9 10 // $Id: GraphVerticalBar.class.php 29 2006-08-18 07:35:21Z matthieu_ $ 11 12 13 require_once INCLUDE_PATH . "/libs/artichow/BarPlot.class.php"; 14 require_once INCLUDE_PATH . "/core/include/graphs/PmvGraph.class.php"; 15 16 class GraphVerticalBar extends PmvGraph 17 { 18 function GraphVerticalBar( $width, $height) 19 { 20 parent::PmvGraph($width, $height); 21 } 22 23 function setData( $a_data ) 24 { 25 $this->x = $a_data['axis']; 26 $this->y = $a_data['data']; 27 $this->title = $a_data['title']; 28 } 29 30 function process() 31 { 32 parent::process(); 33 34 $this->plot = new BarPlot($this->y); 35 36 $this->plot->grid->setType( LINE_DASHED ); 37 38 $this->setPmvPadding($this->plot); 39 $this->setPmvTitle( $this->plot ); 40 $this->setPmvBackgroundGradient($this->plot); 41 $this->setPmvBarShadowProperties( $this->plot ); 42 $this->setPmvLabelProperties( $this->plot, $this->y ); 43 $this->setPmvBarBorderProperties( $this->plot ); 44 $this->setPmvBarSize( $this->plot ); 45 $this->setPmvBarGradient( $this->plot ); 46 47 $this->plot->xAxis->setColor( new Color( 50, 97, 243) ); 48 $this->plot->yAxis->setColor( new Color( 50, 97, 243) ); 49 $this->plot->xAxis->label->setFont($this->font8); 50 51 $this->plot->xAxis->setLabelText($this->x); 52 } 53 54 function display() 55 { 56 $this->graph->add($this->plot); 57 $this->draw(); 58 } 59 } 60 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |