How to delete lv_chart_series_t contents?


I know that you can skip/not show certain points in chart series by setting them to LV_CHART_POINT_NONE. But the information of these points is saved somewhere in memory, thus occupying some parts of it. I would like to be able to free memory from these unused data (e.g. every time the chart points reach their maximum number), so I would like to delete the previous points and start again. Is there any way to do this?

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

I am using the nRF52840DK with a GCC compiler and an ILI9341 display.

What LVGL version are you using?

8.3.9, but after examining the master version, I don’t see any way to perform what I require.

What do you want to achieve?

I want to delete previous data of points in chart series, to free up memory.

What have you tried so far?

I haven’t found a way to delete the points, only hide them. Moreover, I have tried the two update modes available, but I wouldn’t like to use them.

Hey! Any update on this issue?