color changes to make them more distinguishable

This commit is contained in:
Martynas Mickevicius
2010-06-17 16:01:56 +03:00
parent f1b5ab52ef
commit 7074f1b90e
3 changed files with 28 additions and 28 deletions

View File

@@ -9,24 +9,26 @@ class PMA_Chart
/* /*
* Colors for the different slices in the pie chart. * Colors for the different slices in the pie chart.
*/ */
protected $colors = array( protected $colors = array(
'#70484A', '#BCE02E',
'#705948', '#E0642E',
'#6D4870', '#E0D62E',
'#70485E', '#2E97E0',
'#485E70', '#B02EE0',
'#484A70', '#E02E75',
'#487059', '#5CE02E',
'#48706D', '#E0B02E',
'#594870', '#000000',
'#5E7048', '#0022E0',
'#839CAF', '#726CB1',
'#95775F', '#481A36',
'#5F7E95', '#BAC658',
'#706D48', '#127224',
'#4A7048', '#825119',
'#AF9683', '#238C74',
'#4C489B',
'#1D674A',
); );
/* /*
@@ -44,9 +46,9 @@ class PMA_Chart
*/ */
protected $height = 250; protected $height = 250;
function __construct() function __construct($options = null)
{ {
$this->handleOptions($options);
} }
/* /*

View File

@@ -1,6 +1,6 @@
<?php <?php
require_once('pma_chart.php'); require_once 'pma_chart.php';
/* /*
* Base class for every chart implemented using OFC. * Base class for every chart implemented using OFC.
@@ -8,13 +8,13 @@ require_once('pma_chart.php');
*/ */
class PMA_OFC_Chart extends PMA_Chart class PMA_OFC_Chart extends PMA_Chart
{ {
protected $flashBaseUrl = 'js/'; protected $flashBaseUrl = 'flash/';
protected $chart = null; protected $chart = null;
function __construct() function __construct($options = null)
{ {
parent::__construct(); parent::__construct($options);
} }
function get_embed_code($data) function get_embed_code($data)

View File

@@ -1,6 +1,6 @@
<?php <?php
require_once('pma_ofc_chart.php'); require_once 'pma_ofc_chart.php';
/* /*
* Implementation of pie chart using OFC. * Implementation of pie chart using OFC.
@@ -9,11 +9,9 @@ class PMA_OFC_Pie extends PMA_OFC_Chart
{ {
function __construct($titleText, $data, $options = null) function __construct($titleText, $data, $options = null)
{ {
parent::__construct(); parent::__construct($options);
$this->handleOptions($options); require_once './libraries/chart/ofc/open-flash-chart.php';
include './libraries/chart/ofc/open-flash-chart.php';
// create and style chart title // create and style chart title
$title = new title($titleText); $title = new title($titleText);