Export static image not keeping trace texttemplate="%{percent:.1%f}"

Iā€™m trying to make a report and I tried both options in PDF reports (from html with saved images and on the fly images). I expected something like this

image

but I got something like

image

How can I keep the format of the trace??? I even asked another thing on stackoverflow because I was trying using the parameter of static chart