How to change the angle of the weight?

Hi lvgl team.
im develop my product by lvgl,now there is a issue i cant resolve.i draw a bar ,and i want to change the angle of the bar.but i have not find the api of change the angle of bar,only i find is the api of change the imge angle,so if there is some api that i can rorate the angle of weight?

what’s the value of the angle? 90 or other any angle?
if he angle is 90 Vertical bars can be created if the width of the object is smaller than its height.

if other any angle, Futuristic Ebike UILthis demo will be helpfull