Chart drawing is missing

Description

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

What LVGL version are you using?

V8.3

What do you want to achieve?

Use chart to draw a normal curve

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*
static void timer_explain_cb(lv_timer_t *cb)
{
    //get_Judge_ECG_in();
    lv_obj_t *chart = cb->user_data;
    lv_chart_series_t * ser = lv_chart_get_series_next(chart, NULL);
    


if(ecgcs_n<465)
{
    APP_LOG_INFO("*****ecgcs_n == %d     ecgdata[ecgcs_n] == %d  ******",ecgcs_n,ecgdata[ecgcs_n]);
    lv_chart_set_next_value(chart, ser, ecgdata[ecgcs_n]);
    lv_chart_refresh(chart);
    ecgcs_n++;
}
else ecgcs_n = 0;
}
lv_obj_t *chart = lv_chart_create(init_page);
lv_chart_set_type(chart,LV_CHART_TYPE_LINE);
    lv_obj_set_style_line_width(chart,2,LV_PART_ITEMS);
lv_obj_set_style_bg_opa(chart,255,LV_PART_ITEMS);
lv_obj_set_size(chart,340,200);
    lv_obj_set_pos(chart,63,93);
    lv_chart_set_update_mode(chart,LV_CHART_UPDATE_MODE_CIRCULAR);
    lv_chart_series_t * ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXIS_PRIMARY_Y);
    lv_chart_set_range(chart, LV_CHART_AXIS_PRIMARY_Y, -400, 100);
lv_chart_set_point_count(chart, 340);
    if(timer_explain == NULL)
    {
        timer_explain = lv_timer_create(timer_explain_cb,100,chart);
    }

*/

Screenshot and/or video