Author: spadkins
Date: Thu Feb  7 06:28:28 2008
New Revision: 10700

Modified:
   p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm

Log:
remove pink. doesn't show up well.

Modified: p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm
==============================================================================
--- p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm 
(original)
+++ p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm Thu Feb 
 7 06:28:28 2008
@@ -798,9 +798,10 @@
     # $c->xAxis()->setLinearScale(0, 2, $x);
 
 #############  
-    my @color_set = ("0xFF0000", "0xFF00",     "0xFFFD00", "0xFF00FF", 
"0x6E641E", "0xA5BF8",  "0xFFC0CB",
+    my @color_set = ("0xFF0000", "0xFF00",     "0xFFFD00", "0xFF00FF", 
"0x6E641E", "0xA5BF8",
                      "0x44A816", "0x8B0000",   "0x6495ED", "0xFF8C00", 
"0xA4E8B",  "0xDEB887", "0x9932CC",
                      "0xAFC8",   "0x55FF0000", "0x30D40",  "0x708090", 
"0xBDB76B", "0xADD8E6");
+                     #"0xFFC0CB", - This is no more needed - RNS 070831-000229
 #############
 
     my $x = $self->get_x($spec);
@@ -836,9 +837,9 @@
                 $y = $stacked_y;
             }
             #$dataset = $layer->addDataSet($y, -1, $y_labels->[$i]);
-################           
+################            
             #we choose colors from @color_set
-            if($i <= 19) {   
+            if($i <= 18) {                    # RNS 070831-000229 
                 if ($#$data_set_colors != -1) {
                     $dataset = $layer->addDataSet($y, $data_set_colors->[$i], 
$y_labels->[$i]);
                 } else {
@@ -848,7 +849,7 @@
             else {
                 #if number of y_labels is greater than 20, colors will be 
repeated
                 #we have declared only 20 colors
-                $dataset = $layer->addDataSet($y, hex($color_set[($i-20)]), 
$y_labels->[$i]);
+                $dataset = $layer->addDataSet($y, hex($color_set[($i-19)]), 
$y_labels->[$i]);   # RNS 070831-000229
             }
 ###############            
             $dataset->setDataSymbol($self->sym($i, [EMAIL PROTECTED])) if 
($spec->{points});

Reply via email to