How to Change the width of the Chart series?

Version: 8

I found the API lv_chart_set_series_width in the old version, but I didn’t found it in the lv_chart.h or others files in v8.
How to Change the width of the Chart series ? Is there any founctions?

Hi @wnower ,

I believe you should use lv_obj_set_style_line_width(chart, 1, LV_PART_INDICATOR); for a line width of 1 pixel.

See docs here.

Hope that helps.

Kind Regards,

Pete

Hello,

I’m using lvgl 8.3.8,

It doesn’t change the thickness of the chart series if use 1, 2 or more with following function…
Do I miss something?

lv_obj_set_style_line_width(ui->screen_chart_1, 10, LV_PART_INDICATOR);