How to create a pie chart in LVGL?


I would like to create a pie chart where the circle is filled rather than using an arc.

What MCU/Processor/Board and compiler are you using?

LVGL simulator on VScode.

What LVGL version are you using?

LVGL v8.0.0

What do you want to achieve?

I would like to create a pie chart similar to this:
I would also like to know if it is possible to use a different colour for each portion of the pie instead of using only one colour.

What have you tried so far?

I have created an arc with reference to the documentation (link:Arc (lv_arc) — LVGL documentation) but it does not produce the result I am looking for.

Since you are using v8 you can check out the meter widget.
It has a pie chart example in the documentation.

I haven’t used this myself, but it looks very close to what you want to achieve.

Oh, so there is a pie chart example. This will work fine. Thank you for your help!