How to draw a curves chart better?

Is there a better way to draw curves in lvgl? For example, the official library functions, I use cubic spline interpolation to draw lines, I feel intermittent, what needs to be modified?
image

use 8.3.11