I'm using libchart to create a pie chart. The pie chart has the following "Points":
$dataSet->addPoint(new Point("Income Tax", $income_tax));
$dataSet->addPoint(new Point("Value Added Tax", $value_added_tax));
$dataSet->addPoint(new Point("Other Taxes", $other taxes));
...while $income_tax, $value_added_tax, and $other taxes are PHP variables. Thus, the pie chart is supposed to be dynamic, depending on the value of each variable.
The problem is: libchart always assigns color depending on the percentage of each point. The biggest percentage is always dark green, the next biggest percentage is light green, and the smallest is always yellow.
The color of Income Tax, for example, always changes depending on its percentage. When Income Tax has the biggest percentage, it is dark green. When Income Tax has the smallest value, it becomes yellow.
Is there a way to "fix" certain color on certain "point"? For example, I want Income Tax to be dark green no matter how large (or how small it is). What is the syntax?
Many thanks.