Home
last modified time | relevance | path

Searched refs:chart1 (Results 1 – 3 of 3) sorted by relevance

/lvgl-3.7.0/examples/widgets/chart/
Dlv_example_chart_2.py48 chart1.set_next_value(ser1, lv.rand(20, 90))
51 chart1.set_next_value(ser2, lv.rand(40, 60))
60 chart1 = lv.chart(lv.scr_act()) variable
61 chart1.set_size(200, 150)
62 chart1.center()
63 chart1.set_type(lv.chart.TYPE.LINE) # Show lines and points too
65 chart1.add_event_cb(draw_event_cb, lv.EVENT.DRAW_PART_BEGIN, None)
66 chart1.set_update_mode(lv.chart.UPDATE_MODE.CIRCULAR)
69 ser1 = chart1.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y)
70 ser2 = chart1.add_series(lv.palette_main(lv.PALETTE.BLUE), lv.chart.AXIS.SECONDARY_Y)
[all …]
Dlv_example_chart_2.c4 static lv_obj_t * chart1; variable
94 lv_chart_set_next_value(chart1, ser1, lv_rand(20, 90)); in add_data()
96 if(cnt % 4 == 0) lv_chart_set_next_value(chart1, ser2, lv_rand(40, 60)); in add_data()
107 chart1 = lv_chart_create(lv_scr_act()); in lv_example_chart_2()
108 lv_obj_set_size(chart1, 200, 150); in lv_example_chart_2()
109 lv_obj_center(chart1); in lv_example_chart_2()
110 lv_chart_set_type(chart1, LV_CHART_TYPE_LINE); /*Show lines and points too*/ in lv_example_chart_2()
112 lv_chart_set_div_line_count(chart1, 5, 7); in lv_example_chart_2()
114 lv_obj_add_event_cb(chart1, draw_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL); in lv_example_chart_2()
115 lv_chart_set_update_mode(chart1, LV_CHART_UPDATE_MODE_CIRCULAR); in lv_example_chart_2()
[all …]
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c73 static lv_obj_t * chart1; variable
560 chart1 = lv_chart_create(chart1_cont); in analytics_create()
561 lv_group_add_obj(lv_group_get_default(), chart1); in analytics_create()
562 lv_obj_add_flag(chart1, LV_OBJ_FLAG_SCROLL_ON_FOCUS); in analytics_create()
563 lv_obj_set_grid_cell(chart1, LV_GRID_ALIGN_STRETCH, 1, 1, LV_GRID_ALIGN_STRETCH, 1, 1); in analytics_create()
564 lv_chart_set_axis_tick(chart1, LV_CHART_AXIS_PRIMARY_Y, 0, 0, 5, 1, true, 80); in analytics_create()
565 lv_chart_set_axis_tick(chart1, LV_CHART_AXIS_PRIMARY_X, 0, 0, 12, 1, true, 50); in analytics_create()
566 lv_chart_set_div_line_count(chart1, 0, 12); in analytics_create()
567 lv_chart_set_point_count(chart1, 12); in analytics_create()
568 lv_obj_add_event_cb(chart1, chart_event_cb, LV_EVENT_ALL, NULL); in analytics_create()
[all …]