跳至主要內容

类: Chart

大约 2 分钟

类: Chart

类属性

属性 type

类型: LV-CONST

访问: 可读, 可写

该属性是对 LVGL C API lv_chart_get_type, lv_chart_set_type 的封装, 具体用法请参考 LVGL文档open in new window

属性 pointCount

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_chart_get_point_count, lv_chart_set_point_count 的封装, 具体用法请参考 LVGL文档open in new window

属性 updateMode

类型: LV-CONST

访问: 只写

该属性是对 LVGL C API lv_chart_set_update_mode 的封装, 具体用法请参考 LVGL文档open in new window

属性 pressedPoint

类型: number

访问: 只读

该属性是对 LVGL C API lv_chart_get_pressed_point 的封装, 具体用法请参考 LVGL文档open in new window

属性 firstPointCenterOffset

类型: number

访问: 只读

该属性是对 LVGL C API lv_chart_get_first_point_center_offset 的封装, 具体用法请参考 LVGL文档open in new window

类方法

方法 setRange

原型: setRange ()

该方法是对 LVGL C API lv_chart_set_range 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 setDivLineCount

原型: setDivLineCount ()

该方法是对 LVGL C API lv_chart_set_div_line_count 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 refresh

原型: refresh ()

该方法是对 LVGL C API lv_chart_refresh 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

上次编辑于:
贡献者: alee