summaryrefslogtreecommitdiffstats
path: root/src/palette
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-26 16:06:37 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-26 16:06:37 +0000
commit63399c71690adb48721726697e08b73c05f1e484 (patch)
tree8abd82f70e8ced98870989bf90ba5b5626a07385 /src/palette
parent2bd43bb5d0a869a10accb3202c7599f377c738e4 (diff)
downloadzetacomponents-graph-63399c71690adb48721726697e08b73c05f1e484.zip
zetacomponents-graph-63399c71690adb48721726697e08b73c05f1e484.tar.gz
- Added two new palettes (ezGreen and ezRed)
- Added more examples for newsletter
Diffstat (limited to 'src/palette')
-rw-r--r--src/palette/ez_green.php82
-rw-r--r--src/palette/ez_red.php82
2 files changed, 164 insertions, 0 deletions
diff --git a/src/palette/ez_green.php b/src/palette/ez_green.php
new file mode 100644
index 0000000..8774970
--- /dev/null
+++ b/src/palette/ez_green.php
@@ -0,0 +1,82 @@
+<?php
+/**
+ * File containing the ezcGraphPaletteEzGreen class
+ *
+ * @package Graph
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Light green color pallet for ezcGraph based on green eZ colors
+ *
+ * @package Graph
+ */
+class ezcGraphPaletteEzGreen extends ezcGraphPalette
+{
+ /**
+ * Axiscolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $axisColor = '#2E3436';
+
+ /**
+ * Array with colors for datasets
+ *
+ * @var array
+ */
+ protected $dataSetColor = array(
+ '#9CAE86',
+ '#87B06B',
+ '#5C9A75',
+ '#467A6E',
+ '#4F6C57',
+ );
+
+ /**
+ * Array with symbols for datasets
+ *
+ * @var array
+ */
+ protected $dataSetSymbol = array(
+ ezcGraph::BULLET,
+ );
+
+ /**
+ * Name of font to use
+ *
+ * @var string
+ */
+ protected $fontName = 'sans-serif';
+
+ /**
+ * Fontcolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $fontColor = '#2E3436';
+
+ /**
+ * Backgroundcolor for chart
+ *
+ * @var ezcGraphColor
+ */
+ protected $chartBackground = '#FFFFFF';
+
+ /**
+ * Padding in elements
+ *
+ * @var integer
+ */
+ protected $padding = 1;
+
+ /**
+ * Margin of elements
+ *
+ * @var integer
+ */
+ protected $margin = 0;
+}
+
+?>
diff --git a/src/palette/ez_red.php b/src/palette/ez_red.php
new file mode 100644
index 0000000..bd4d731
--- /dev/null
+++ b/src/palette/ez_red.php
@@ -0,0 +1,82 @@
+<?php
+/**
+ * File containing the ezcGraphPaletteEzRed class
+ *
+ * @package Graph
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Light red color pallet for ezcGraph based on red eZ colors
+ *
+ * @package Graph
+ */
+class ezcGraphPaletteEzRed extends ezcGraphPalette
+{
+ /**
+ * Axiscolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $axisColor = '#2E3436';
+
+ /**
+ * Array with colors for datasets
+ *
+ * @var array
+ */
+ protected $dataSetColor = array(
+ '#B50D2C',
+ '#C42926',
+ '#C34009',
+ '#CA3C04',
+ '#D86300',
+ );
+
+ /**
+ * Array with symbols for datasets
+ *
+ * @var array
+ */
+ protected $dataSetSymbol = array(
+ ezcGraph::BULLET,
+ );
+
+ /**
+ * Name of font to use
+ *
+ * @var string
+ */
+ protected $fontName = 'sans-serif';
+
+ /**
+ * Fontcolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $fontColor = '#2E3436';
+
+ /**
+ * Backgroundcolor for chart
+ *
+ * @var ezcGraphColor
+ */
+ protected $chartBackground = '#FFFFFF';
+
+ /**
+ * Padding in elements
+ *
+ * @var integer
+ */
+ protected $padding = 1;
+
+ /**
+ * Margin of elements
+ *
+ * @var integer
+ */
+ protected $margin = 0;
+}
+
+?>
OpenPOWER on IntegriCloud