Y axis label error lv.chart

Hello.

I found that the value set if the range exceeds 30,000 will give an incorrect value on the y axis label. Is there no way to fix it?

# Initialize 

import display_driver
import lvgl as lv

# Create a button with a label 

chart = lv.chart(lv.scr_act())
chart.align_to(lv.scr_act(), lv.ALIGN.TOP_MID, 100, 25)
chart.set_size(250,250)
chart.set_type(lv.chart.TYPE.LINE)
chart.set_update_mode(lv.chart.UPDATE_MODE.SHIFT)
chart.set_point_count(20)
chart.set_div_line_count(0,0)
#chart.set_range(lv.chart.AXIS.PRIMARY_Y, 10000, 20000) #  Y Axis label ok
chart.set_range(lv.chart.AXIS.PRIMARY_Y, 30000, 40000) #  Y Axis label error
chart.set_axis_tick(lv.chart.AXIS.PRIMARY_Y, 10, 5, 5, 5, True, 80)

series = chart.add_series(lv.color_hex(0x00eeff), lv.chart.AXIS.PRIMARY_Y)

https://sim.lvgl.io/v8.1/micropython/ports/javascript/index.html?script_direct=df06116bafb6d8f1432d89c91f203fc65b44cda9

Thank you.

Hi @norzam !

You can try enabling LV_USE_LARGE_COORD on “lv_conf.h” and rebuild lv_micropython.

Hi @amirgon

Thanks for the help, enabling LV_USE_LARGE_COORD solved my problem. Everything is working properly now.