Changing default legend colors

Oct 12, 2011 at 12:38 PM
Edited Oct 12, 2011 at 3:37 PM

Hello,

Currently using release 63267. There have been some enhancements about the chart styling.

However, when I change the color of the columns ina Bar3D graph, the legend is not taking them into consideration.

For example:

 

 

foreach ( $year as $key => $col_row )
{
	$series1->getDataPointFill($key)->setFillType(PHPPowerPoint_Style_Fill::FILL_GRADIENT_LINEAR)
				                 ->setStartColor(new PHPPowerPoint_Style_Color('FFdeebf9'))
				                 ->setEndColor(new PHPPowerPoint_Style_Color('FFa6caf0'))
				                 ->setRotation(0);

	$series2->getDataPointFill($key)->setFillType(PHPPowerPoint_Style_Fill::FILL_GRADIENT_LINEAR)
				                 ->setStartColor(new PHPPowerPoint_Style_Color('FFdcebdc'))
				                 ->setEndColor(new PHPPowerPoint_Style_Color('FFc1ddc1'))
				                 ->setRotation(0);
}

 

 

These are blue and green colors.

The legend is still using the default Chart colors : blue, red...etc.

Is there a way to modify the colors of the small legend rectangles ?