b2evolution PHP Cross Reference Blogging Systems

Source: /inc/users/views/inc/_bar_chart.inc.php - 111 lines - 2468 bytes - Text - Print

   1  <?php
   2  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
   3  
   4      $chart[ 'chart_type' ] = 'stacked column';
   5  
   6      $chart[ 'series_color' ] = array (
   7              '990066',
   8              'ff66cc',
   9              '003399',
  10              '6699ff',
  11              '666666',
  12              'cccccc'
  13          );
  14  
  15      $chart[ 'series_gap' ] = array ( 'set_gap'=>0, 'bar_gap'=>0 );
  16  
  17      $chart[ 'axis_category' ] = array (
  18              'font'  =>"arial",
  19              'bold'  =>true,
  20              'size'  =>11,
  21              'color' =>'000000',
  22              'alpha' =>75,
  23              'orientation' => 'diagonal_up',
  24              // 'skip'=>2

  25          );
  26  
  27      $chart[ 'axis_value' ] = array (
  28              // 'font'   =>"arial",

  29              // 'bold'   =>true,

  30              'size'   => 11,
  31              'color'  => '000000',
  32              'alpha'  => 75,
  33              'steps'  => 4,
  34              'prefix' => "",
  35              'suffix' => "",
  36              'decimals'=> 0,
  37              'separator'=> "",
  38              'show_min'=> false );
  39  
  40      $chart[ 'canvas_bg' ] = array (
  41              'width'  => 780,
  42              'height' => 355,
  43              'color'  => $AdminUI->get_color( 'payload_background' )
  44          );
  45  
  46      $chart[ 'chart_rect' ] = array (
  47              'x'      => 50,
  48              'y'      => 5,
  49              'width'  => 720,
  50              'height' => 250
  51          );
  52  
  53      $chart[ 'legend_rect' ] = array (
  54              'x'      => 50,
  55              'y'      => 320,
  56              'width'  => 720,
  57              'height' => 8,
  58              'margin' => 6
  59          );
  60  
  61  
  62      $chart[ 'chart_bg' ] = array (
  63              'positive_color' => "ffffff",
  64              // 'negative_color'  =>  string,

  65              'positive_alpha' => 100,
  66              // 'negative_alpha'  =>  int

  67          );
  68  
  69      $chart [ 'legend_bg' ] = array (
  70              'bg_color'          =>  "ffffff",
  71              'bg_alpha'          =>  100,
  72              // 'border_color'      =>  "000000",

  73              // 'border_alpha'      =>  100,

  74              // 'border_thickness'  =>  1

  75          );
  76  
  77      $chart [ 'legend_label' ] = array(
  78              // 'layout'  =>  "horizontal",

  79              // 'font'    =>  string,

  80              // 'bold'    =>  boolean,

  81              'size'    =>  10,
  82              // 'color'   =>  string,

  83              // 'alpha'   =>  int

  84          );
  85  
  86  
  87      $chart[ 'chart_border' ] = array (
  88              'color'=>"cccccc",
  89              'top_thickness'=>1,
  90              'bottom_thickness'=>1,
  91              'left_thickness'=>1,
  92              'right_thickness'=>1
  93          );
  94  
  95      $chart[ 'chart_value' ] = array (
  96              // 'prefix'         =>  string,

  97              // 'suffix'         =>  " views",

  98              // 'decimals'       =>  int,

  99              // 'separator'      =>  string,

 100              'position'       =>  "cursor",
 101              'hide_zero'      =>  true,
 102              // 'as_percentage'  =>  boolean,

 103              'font'           =>  "arial",
 104              'bold'           =>  true,
 105              'size'           =>  14,
 106              'color'          =>  "000000",
 107              'alpha'          =>  75
 108          );
 109  
 110  
 111  ?>

title

Description

title

Description

title

Description

title

title

Body