Lines Matching refs:chart

7     lv_obj_t * chart = lv_event_get_target(e);  in event_cb()  local
10 lv_obj_invalidate(chart); in event_cb()
17 int32_t id = lv_chart_get_pressed_point(chart); in event_cb()
22 lv_chart_series_t * ser = lv_chart_get_series_next(chart, NULL); in event_cb()
25 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb()
27 lv_coord_t * y_array = lv_chart_get_y_array(chart, ser); in event_cb()
42 a.x1 = chart->coords.x1 + p.x - 20; in event_cb()
43 a.x2 = chart->coords.x1 + p.x + 20; in event_cb()
44 a.y1 = chart->coords.y1 + p.y - 30; in event_cb()
45 a.y2 = chart->coords.y1 + p.y - 10; in event_cb()
50 ser = lv_chart_get_series_next(chart, ser); in event_cb()
54 lv_obj_invalidate(chart); in event_cb()
64 lv_obj_t * chart; in lv_example_chart_4() local
65 chart = lv_chart_create(lv_scr_act()); in lv_example_chart_4()
66 lv_obj_set_size(chart, 200, 150); in lv_example_chart_4()
67 lv_obj_center(chart); in lv_example_chart_4()
69 lv_obj_add_event_cb(chart, event_cb, LV_EVENT_ALL, NULL); in lv_example_chart_4()
70 lv_obj_refresh_ext_draw_size(chart); in lv_example_chart_4()
73 lv_chart_set_zoom_x(chart, 800); in lv_example_chart_4()
76 …lv_chart_series_t * ser1 = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AX… in lv_example_chart_4()
77 …lv_chart_series_t * ser2 = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_GREEN), LV_CHART_… in lv_example_chart_4()
80 lv_chart_set_next_value(chart, ser1, lv_rand(60, 90)); in lv_example_chart_4()
81 lv_chart_set_next_value(chart, ser2, lv_rand(10, 40)); in lv_example_chart_4()