Cursor is a very useful feature of chart series (LV_CHART_TYPE_LINE), but I can’t seem to find an API to remove it.
I know that lv_obj_set_style_line_opa can hide all cursors, but if I only want to hide or delete some of them, does anyone have any ideas?
There is not such a function but for version 8.4 you can add this
/**
* delete a cursor
* @param chart pointer to chart object
* @param cursor pointer to the cursor
*/
void lv_chart_delete_cursor(lv_obj_t *obj, lv_chart_cursor_t *cursor)
{
LV_ASSERT_OBJ(obj, MY_CLASS);
LV_ASSERT_NULL(cursor);
lv_chart_t *chart = (lv_chart_t *)obj;
_lv_ll_remove(&chart->cursor_ll, cursor);
lv_mem_free(cursor);
}