Can you know how to not mark if one variable on the chart is zero?

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the FAQ and read the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Description

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

zephyr/nrf52

What LVGL version are you using?

maybe 8.2

What do you want to achieve?

If the variable value in the chart is 0, I hope it will not be marked.
Now, it is indicated as a picture and is experiencing inconvenience.

What have you tried so far?

lv_chart_set_range (chart2, lv_chart_axis_primary_y, 0, 30);
I tried to raise the min, but it wasn’t what I wanted.

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:

lv_chart_set_range(chart2, LV_CHART_AXIS_PRIMARY_Y, 0, 30);
//
lv_chart_set_next_value(chart2, ser2, 0);
lv_chart_set_next_value(chart2, ser2, 10);

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

image

I do not speak English so that grammar and words can be a lot wrong. sorry.

Thank you in advance

You can set that point’s value to LV_CHART_POINT_NONE.

1 Like

Thank you for always. :+1:
I couldn’t find it in the documents. :sweat_smile:
When it is displayed as ui, it is displayed as -nan, but we will find a solution later.

Great! In the docs you can find it here:
https://docs.lvgl.io/master/widgets/chart.html#modify-the-data

1 Like

Oh! thank you
I need to improve my self-reading skills. :sweat_smile:

Done worry, I also have a kind of “reading-blindness”. Especially when I need to read the texts I have written. :smiley:

1 Like