You need to set some margin to enable drawing outside of the chart e.g. lv_chart_set_margin(chart, 40);
lv_chart_set_margin(chart, 40);
See the docs here.