Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible for the LVGL chart to show decimal values. This can be achieved by setting the y_range of the chart to include decimal values and then setting the y_tick to the desired interval. For example:

lv_chart_set_y_range(chart, LV_CHART_AXIS_PRIMARY_Y, 0.0, 1.0); // Set the y range to include decimal values between 0 and 1
lv_chart_set_y_tick(chart, LV_CHART_AXIS_PRIMARY_Y, 0.1); // Set the y tick to 0.1 interval

This will allow the chart to display decimal values on the y-axis at the desired interval.