26#define LV_CHART_POINT_NONE (INT32_MAX)
28#define LV_CHART_POINT_NONE (INT16_MAX)
30LV_EXPORT_CONST_INT(LV_CHART_POINT_NONE);
43 LV_CHART_TYPE_SCATTER,
45typedef uint8_t lv_chart_type_t;
51 LV_CHART_UPDATE_MODE_SHIFT,
52 LV_CHART_UPDATE_MODE_CIRCULAR,
54typedef uint8_t lv_chart_update_mode_t;
60 LV_CHART_AXIS_PRIMARY_Y = 0x00,
61 LV_CHART_AXIS_SECONDARY_Y = 0x01,
62 LV_CHART_AXIS_PRIMARY_X = 0x02,
63 LV_CHART_AXIS_SECONDARY_X = 0x04,
66typedef uint8_t lv_chart_axis_t;
72 lv_coord_t * x_points;
73 lv_coord_t * y_points;
77 uint8_t x_ext_buf_assigned : 1;
78 uint8_t y_ext_buf_assigned : 1;
79 uint8_t x_axis_sec : 1;
80 uint8_t y_axis_sec : 1;
87 lv_chart_series_t * ser;
96 uint32_t minor_cnt : 15;
97 uint32_t major_cnt : 15;
98 uint32_t label_en : 1;
106 lv_chart_tick_dsc_t tick[4];
111 lv_coord_t pressed_point_id;
117 lv_chart_type_t type : 3;
118 lv_chart_update_mode_t update_mode : 1;
128 LV_CHART_DRAW_PART_DIV_LINE_INIT,
129 LV_CHART_DRAW_PART_DIV_LINE_HOR,
130 LV_CHART_DRAW_PART_DIV_LINE_VER,
131 LV_CHART_DRAW_PART_LINE_AND_POINT,
132 LV_CHART_DRAW_PART_BAR,
133 LV_CHART_DRAW_PART_CURSOR,
134 LV_CHART_DRAW_PART_TICK_LABEL,
135} lv_chart_draw_part_type_t;
153void lv_chart_set_type(
lv_obj_t * obj, lv_chart_type_t type);
159void lv_chart_set_point_count(
lv_obj_t * obj, uint16_t cnt);
168void lv_chart_set_range(
lv_obj_t * obj, lv_chart_axis_t axis, lv_coord_t min, lv_coord_t max);
175void lv_chart_set_update_mode(
lv_obj_t * obj, lv_chart_update_mode_t update_mode);
183void lv_chart_set_div_line_count(
lv_obj_t * obj, uint8_t hdiv, uint8_t vdiv);
190void lv_chart_set_zoom_x(
lv_obj_t * obj, uint16_t zoom_x);
197void lv_chart_set_zoom_y(
lv_obj_t * obj, uint16_t zoom_y);
204uint16_t lv_chart_get_zoom_x(
const lv_obj_t * obj);
211uint16_t lv_chart_get_zoom_y(
const lv_obj_t * obj);
225void lv_chart_set_axis_tick(
lv_obj_t * obj, lv_chart_axis_t axis, lv_coord_t major_len, lv_coord_t minor_len,
226 lv_coord_t major_cnt, lv_coord_t minor_cnt,
bool label_en, lv_coord_t draw_size);
233lv_chart_type_t lv_chart_get_type(
const lv_obj_t * obj);
240uint16_t lv_chart_get_point_count(
const lv_obj_t * obj);
248uint16_t lv_chart_get_x_start_point(
const lv_obj_t * obj, lv_chart_series_t * ser);
257void lv_chart_get_point_pos_by_id(
lv_obj_t * obj, lv_chart_series_t * ser, uint16_t
id,
lv_point_t * p_out);
263void lv_chart_refresh(
lv_obj_t * obj);
276lv_chart_series_t * lv_chart_add_series(
lv_obj_t * obj, lv_color_t color, lv_chart_axis_t axis);
283void lv_chart_remove_series(
lv_obj_t * obj, lv_chart_series_t * series);
291void lv_chart_hide_series(
lv_obj_t * chart, lv_chart_series_t * series,
bool hide);
299void lv_chart_set_series_color(
lv_obj_t * chart, lv_chart_series_t * series, lv_color_t color);
308void lv_chart_set_x_start_point(
lv_obj_t * obj, lv_chart_series_t * ser, uint16_t
id);
316lv_chart_series_t * lv_chart_get_series_next(
const lv_obj_t * chart,
const lv_chart_series_t * ser);
331lv_chart_cursor_t * lv_chart_add_cursor(
lv_obj_t * obj, lv_color_t color, lv_dir_t dir);
339void lv_chart_set_cursor_pos(
lv_obj_t * chart, lv_chart_cursor_t * cursor,
lv_point_t * pos);
348void lv_chart_set_cursor_point(
lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_chart_series_t * ser,
369void lv_chart_set_all_value(
lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t value);
377void lv_chart_set_next_value(
lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t value);
386void lv_chart_set_next_value2(
lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t x_value, lv_coord_t y_value);
395void lv_chart_set_value_by_id(
lv_obj_t * obj, lv_chart_series_t * ser, uint16_t
id, lv_coord_t value);
406void lv_chart_set_value_by_id2(
lv_obj_t * obj, lv_chart_series_t * ser, uint16_t
id, lv_coord_t x_value,
416void lv_chart_set_ext_y_array(
lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t array[]);
425void lv_chart_set_ext_x_array(
lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t array[]);
433lv_coord_t * lv_chart_get_y_array(
const lv_obj_t * obj, lv_chart_series_t * ser);
441lv_coord_t * lv_chart_get_x_array(
const lv_obj_t * obj, lv_chart_series_t * ser);
448uint32_t lv_chart_get_pressed_point(
const lv_obj_t * obj);
Definition lv_obj_class.h:49