Lines Matching refs:chart
32 lv_obj_t * chart = timer->user_data; in add_data() local
33 …lv_chart_set_next_value2(chart, lv_chart_get_series_next(chart, NULL), lv_rand(0, 200), lv_rand(0,… in add_data()
41 lv_obj_t * chart = lv_chart_create(lv_scr_act()); in lv_example_chart_7() local
42 lv_obj_set_size(chart, 200, 150); in lv_example_chart_7()
43 lv_obj_align(chart, LV_ALIGN_CENTER, 0, 0); in lv_example_chart_7()
44 lv_obj_add_event_cb(chart, draw_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL); in lv_example_chart_7()
45 lv_obj_set_style_line_width(chart, 0, LV_PART_ITEMS); /*Remove the lines*/ in lv_example_chart_7()
47 lv_chart_set_type(chart, LV_CHART_TYPE_SCATTER); in lv_example_chart_7()
49 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_PRIMARY_X, 5, 5, 5, 1, true, 30); in lv_example_chart_7()
50 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_PRIMARY_Y, 10, 5, 6, 5, true, 50); in lv_example_chart_7()
52 lv_chart_set_range(chart, LV_CHART_AXIS_PRIMARY_X, 0, 200); in lv_example_chart_7()
53 lv_chart_set_range(chart, LV_CHART_AXIS_PRIMARY_Y, 0, 1000); in lv_example_chart_7()
55 lv_chart_set_point_count(chart, 50); in lv_example_chart_7()
57 …lv_chart_series_t * ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXI… in lv_example_chart_7()
60 lv_chart_set_next_value2(chart, ser, lv_rand(0, 200), lv_rand(0, 1000)); in lv_example_chart_7()
63 lv_timer_create(add_data, 100, chart); in lv_example_chart_7()