Topic: regarding Amcharts

as i am developing a module using Amcharts.

all charts of amcharts are new for me and i have dynamically implemented few of them.

my query is, lets say pie charts that i have to implement.
and i want to apply my own colors which can be given dynamically from database. that is, i store color codes in db and i want to set those colors from database to pie charts.

but the problem is that i can't set those colors fetched from database even i put # before the color code.
then Amcharts randomly takes it's own colors from it's JS.

can anyone suggest me that how can i set my own colors to charts and disable random generation color functionality of Amcharts ?