[]
This function returns a data set used for representing a pie sparkline.
PIESPARKLINE(Percentage, [color1, color2, ...])
The argument can accept cell value, range or percent value and string value for color.
Returns sparkline.
activeSheet.setFormula(2, 2, '=PIESPARKLINE(B3:B8,"#919F81","#D7913E","CEA722","#B58091","#8974A9","#728BAD")');