Hi Rehab;
You should always have at least one series in any pie graph. Here is the code I use in my framework on the GraphCreate event of the DW Control, as follows ...
ii_rc = THIS.SetDataStyle ( 'gr_data', 1,1, ForeGround!, fn_get_colour_no ( "Slate Blue" ) )
ii_rc += THIS.SetDataStyle ( 'gr_data', 1,2 , ForeGround!, fn_get_colour_no ( "BurlyWood" ) )
ii_rc += THIS.SetDataStyle ( 'gr_data', 1,3 , ForeGround!, fn_get_colour_no ( "Coral" ) )
ii_rc += THIS.SetDataStyle ( 'gr_data', 1,4 , ForeGround!, fn_get_colour_no ( "Orange" ) )
ii_rc += THIS.SetDataStyle ( 'gr_data', 1,5 , ForeGround!, fn_get_colour_no ( "Sea Green" ) )
This results in ...
Note: Above example is in PB 2017's new DOCKABLE Window style.
Mapped by ...
HTH
Regards .. .Chris