b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 2.4) [ class tree: main ] [ index: main ] [ all elements ]

Source for file _pie_chart.inc.php

Documentation is available at _pie_chart.inc.php

  1. <?php
  2. if!defined('EVO_MAIN_INIT') ) die'Please, do not access this page directly.' );
  3.  
  4.     $chart'chart_type' 'pie';
  5.  
  6.     $chart'series_color' array (
  7.             'ff0000',
  8.             'ff9900',
  9.             'ffff00',
  10.             '00ff99',
  11.             '00ffff',
  12.             '0099ff',
  13.             '3333ff',
  14.             '9900ff',
  15.         );
  16.  
  17.     $chart'canvas_bg' array (
  18.             'width'  => 780,
  19.             'height' => 350,
  20.             'color'  => $AdminUI->get_color'payload_background' )
  21.         );
  22.  
  23.     $chart'chart_rect' array (
  24.             'x'      => 60,
  25.             'y'      => 50,
  26.             'width'  => 250,
  27.             'height' => 250
  28.         );
  29.  
  30.     $chart'legend_rect' array (
  31.             'x'      => 440,
  32.             'y'      => 50,
  33.             'width'  => 300,
  34.             'height' => 250,
  35.             'margin' => 6
  36.         );
  37.  
  38.  
  39.     $chart 'legend_bg' array (
  40.             'bg_color'          =>  "ffffff",
  41.             'bg_alpha'          =>  100,
  42.             // 'border_color'      =>  "000000",
  43.             // 'border_alpha'      =>  100,
  44.             // 'border_thickness'  =>  1
  45.         );
  46.  
  47.     $chart 'legend_label' array(
  48.             // 'layout'  =>  "horizontal",
  49.             // 'font'    =>  string,
  50.             // 'bold'    =>  boolean,
  51.             'size'    =>  14,
  52.             // 'color'   =>  string,
  53.             // 'alpha'   =>  int
  54.         );
  55.  
  56.     /*$chart[ 'chart_border' ] = array (
  57.                 'color'=>"000000",
  58.                 'top_thickness'=>1,
  59.                 'bottom_thickness'=>1,
  60.                 'left_thickness'=>1,
  61.                 'right_thickness'=>1
  62.         );*/
  63.  
  64.     $chart'chart_bg' array (
  65.             'positive_color' => "ffffff",
  66.             // 'negative_color'  =>  string,
  67.             'positive_alpha' => 0,
  68.             // 'negative_alpha'  =>  int
  69.         );
  70.  
  71.  
  72.     $chart 'series_explode' =  array 15 );
  73.  
  74.     /*$chart[ 'axis_category' ] = array (
  75.             'font'  =>"arial",
  76.             'bold'  =>true,
  77.             'size'  =>11,
  78.             'color' =>'000000',
  79.             'alpha' =>75,
  80.             'orientation' => 'diagonal_up',
  81.             // 'skip'=>2
  82.          );*/
  83.  
  84.     /* $chart[ 'axis_value' ] = array (    // 'font'   =>"arial",
  85.             // 'bold'   =>true,
  86.             'size'   => 11,
  87.             'color'  => '000000',
  88.             'alpha'  => 75,
  89.             'steps'  => 4,
  90.             'prefix' => "",
  91.             'suffix' => "",
  92.             'decimals'=> 0,
  93.             'separator'=> "",
  94.             'show_min'=> false ); */
  95.  
  96.     $chart'chart_value' array (
  97.             // 'prefix'         =>  string,
  98.             // 'suffix'         =>  " views",
  99.             // 'decimals'       =>  int,
  100.             // 'separator'      =>  string,
  101.             'position'       =>  "outside",
  102.             'hide_zero'      =>  true,
  103.             'as_percentage'  =>  false// this would give a total of 100%
  104.             'font'           =>  "arial",
  105.             'bold'           =>  true,
  106.             'size'           =>  15,
  107.             'color'          =>  "000000",
  108.             'alpha'          =>  75
  109.         );
  110.  
  111. ?>

Documentation generated on Sat, 06 Mar 2010 03:38:22 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).