You will have to take control over the XML file generation.
modules\Charts\Dashlets\OutcomeByMonthDashlet\Outc omeByMonthDashlet.php
inherits
include\Dashlets\DashletGenericChart.php
and uses
include\SugarCharts\SugarChart.php to generate the XML
PHP Code:
function xmlProperties(){
// open the properties tag
$properties = $this->tab("<properties>",1);
// grab the property and value from the chart_properties variable
foreach ($this->chart_properties as $key => $value){
$properties .= $this->tab("<$key>$value</$key>",2);
}
if (!empty($this->colors_list)){
// open the colors tag
$properties .= $this->tab("<colors>",2);
foreach ($this->colors_list as $color){
$properties .= $this->tab("<color>$color</color>",3);
}
// close the colors tag
$properties .= $this->tab("</colors>",2);
}
// close the properties tag
$properties .= $this->tab("</properties>",1);
return $properties;
}
I am not sure that you can force a specific color for a specific value in the charts as it is today, you might have to do some changes to the code
Bookmarks