Chart Documentation Issue

I am trying to place a chart on my screen using the example code found here:
Chart (lv_chart) — LVGL documentation
However, the example code fails to compile - specifically:

lv_chart_add_series(chart, LV_COLOR_RED);

LV_COLOR_RED is not defined anywhere and looking at the header for lv_chart_add_series, it should also take a parameter of type lv_chart_axis_t which does not seem to be described anywhere.

Am I referring to the wrong documentation or is the documentation out of date?

Best Regards

Andy

What version of LVGL you use ?
It seems like LVGL_8 uses another names of colors.

Sorry, I meant to say that I am using the latest commit from the lv_sim_visual_studio repo.

Andy

So, if you use code from master-branch you should check docs for lvgl_v8 instead of lvgl_v7

Okay, so I was looking at the V7 documentation :frowning:
Thanks for your help - much appreciated :+1:

Andy