Ask Your Question
0

Is it possible for the LVGL chart to show decimal values?

asked 2022-01-19 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-06-27 05:00:00 +0000

devzero gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-19 11:00:00 +0000

Seen: 19 times

Last updated: Jun 27 '21