Lines Matching refs:chart
4 static lv_obj_t * chart; variable
25 lv_coord_t * data_array = lv_chart_get_y_array(chart, ser); in event_cb()
62 chart = lv_chart_create(lv_scr_act()); in lv_example_chart_6()
63 lv_obj_set_size(chart, 200, 150); in lv_example_chart_6()
64 lv_obj_align(chart, LV_ALIGN_CENTER, 0, -10); in lv_example_chart_6()
66 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_PRIMARY_Y, 10, 5, 6, 5, true, 40); in lv_example_chart_6()
67 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_PRIMARY_X, 10, 5, 10, 1, true, 30); in lv_example_chart_6()
69 lv_obj_add_event_cb(chart, event_cb, LV_EVENT_ALL, NULL); in lv_example_chart_6()
70 lv_obj_refresh_ext_draw_size(chart); in lv_example_chart_6()
72 …cursor = lv_chart_add_cursor(chart, lv_palette_main(LV_PALETTE_BLUE), LV_DIR_LEFT | LV_DIR_BOTTOM); in lv_example_chart_6()
74 ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXIS_PRIMARY_Y); in lv_example_chart_6()
77 lv_chart_set_next_value(chart, ser, lv_rand(10, 90)); in lv_example_chart_6()
80 lv_chart_set_zoom_x(chart, 500); in lv_example_chart_6()
84 lv_obj_align_to(label, chart, LV_ALIGN_OUT_TOP_MID, 0, -5); in lv_example_chart_6()