293 Star 1.6K Fork 379

GVP合宙Luat / LuatOS

 / 详情

[🐛Bug]: LVGL中的chart无法使用显示Y轴坐标的demo

已拒绝
创建于  
2024-03-19 17:55

描述一下这个bug / Describe the bug

输入图片说明
输入图片说明
输入图片说明
请问这个LVGL中的图表显示Y和Y轴坐标是使用不了吗,还是方法没使用对,直接就报错了,大佬们求解决下。

复现步骤 / To Reproduce

使用LVGL创建图表chart,然后在lvgl.obj_align(chart, nil, lvgl.ALIGN_CENTER, 0, 0)后插入lvgl.chart_set_y_tick_text(chart, 'first\nsec\nthird', '3', lvgl.CHART_AXIS_PRIMARY_Y)

如果正常,应该是什么样 / Expected behavior

输入图片说明
正常的话应该有显示。

截图 / Screenshots

输入图片说明

日志 / Logs

[2024-03-19 17:51:41.916] D/lvgl w 240 h 320 buff 2400 mode 0
[2024-03-19 17:51:41.916] I/user.lvgl true
[2024-03-19 17:51:42.002] E/main Luat:
[2024-03-19 17:51:42.002] E/main main.lua:126: attempt to call a nil value (field 'chart_set_y_tick_text')
[2024-03-19 17:51:42.002] E/main Lua VM exit!! reboot in 15000ms
[2024-03-19 17:51:42.970] I/main LuatOS@ESP32C3 base 22.12 bsp V1004 32bit
[2024-03-19 17:51:42.970] I/main ROM Build: Mar 24 2023 12:10:24
[2024-03-19 17:51:42.977] I/fs script zone as luadb
[2024-03-19 17:51:42.979] D/main loadlibs luavm 98296 14504 14504
[2024-03-19 17:51:43.007] D/main loadlibs sys 157400 58332 58332
[2024-03-19 17:51:43.007] I/user.main lvgldemo 1.0.0
[2024-03-19 17:51:43.007] E (527) task_wdt: esp_task_wdt_init(593): TWDT already initialized
[2024-03-19 17:51:43.007] I/user.hello luatos
[2024-03-19 17:51:43.007] D/lcd ic support: gc9306x
[2024-03-19 17:51:43.494] D/lvgl w 240 h 320 buff 2400 mode 0
[2024-03-19 17:51:43.494] I/user.lvgl true
[2024-03-19 17:51:43.573] E/main Luat:
[2024-03-19 17:51:43.573] E/main main.lua:126: attempt to call a nil value (field 'chart_set_y_tick_text')
[2024-03-19 17:51:43.573] E/main Lua VM exit!! reboot in 15000ms

PACK包版本 / Version

LuatOS-SoC_V1005_ESP32C3.soc

验证

  • 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。

评论 (2)

nick cidy 创建了任务

chart_set_y_tick_texts而不是chart_set_y_tick_text,你api用错了

大哥,官网上面改一下好不好,官网上面没有S的 :sob:

Dozingfiretruck 任务状态待办的 修改为已拒绝

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5607411 dozingfiretruck 1596190037 10867918 nick cidy 1656328589
Lua
1
https://gitee.com/openLuat/LuatOS.git
git@gitee.com:openLuat/LuatOS.git
openLuat
LuatOS
LuatOS

搜索帮助