The problem is sizeof(dsc->text) yields a pointer size (=4U) while the actual buffer length specified in lv_chart.cdraw_x_ticks() function is 16 (hardcoded):
Perhaps .textSize property should be added to lv_obj_draw_part_dsc_t in addition to the buffer pointer .text.
Demo code as is currently can render only 3 chart tick label characters.
LVGL rev 8.1-Dev (current)
I think I found a problem in lv_demo_widgets.c.
chart_event_cb()
andshop_chart_event_cb()
functions contain this line providing chart tick labels:The problem is
sizeof(dsc->text)
yields a pointer size (=4U) while the actual buffer length specified in lv_chart.cdraw_x_ticks()
function is 16 (hardcoded):Perhaps
.textSize
property should be added tolv_obj_draw_part_dsc_t
in addition to the buffer pointer.text
.Demo code as is currently can render only 3 chart tick label characters. LVGL rev 8.1-Dev (current)