Lv chart x and y refresh

Description

I use a scatter type that contains 288 points. Only y values change. Values of corresponding x never change. Calculating x axis is quite complex, therefore I’m trying to avoid repeating that process.

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

STM32H7A3

What LVGL version are you using?

8.3

What do you want to achieve?

I am trying to find a way to calculate x values once and then refresh/update the corresponding y values only.

The fastest way I can think of us calculating and saving data as an array. But that would contain 288 float numbers and I’m trying to avoid it.

It is not suitable to use chart for your case. You should use canvas, draw x/y as you like.