Searched refs:chart1 (Results 1 – 3 of 3) sorted by relevance
/lvgl-3.4.0/examples/widgets/chart/ |
D | lv_example_chart_2.py | 48 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 …]
|
D | lv_example_chart_2.c | 4 static lv_obj_t * chart1; variable 91 lv_chart_set_next_value(chart1, ser1, lv_rand(20, 90)); in add_data() 93 if(cnt % 4 == 0) lv_chart_set_next_value(chart1, ser2, lv_rand(40, 60)); in add_data() 104 chart1 = lv_chart_create(lv_scr_act()); in lv_example_chart_2() 105 lv_obj_set_size(chart1, 200, 150); in lv_example_chart_2() 106 lv_obj_center(chart1); in lv_example_chart_2() 107 lv_chart_set_type(chart1, LV_CHART_TYPE_LINE); /*Show lines and points too*/ in lv_example_chart_2() 109 lv_chart_set_div_line_count(chart1, 5, 7); in lv_example_chart_2() 111 lv_obj_add_event_cb(chart1, draw_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL); in lv_example_chart_2() 112 lv_chart_set_update_mode(chart1, LV_CHART_UPDATE_MODE_CIRCULAR); in lv_example_chart_2() [all …]
|
/lvgl-3.4.0/demos/widgets/ |
D | lv_demo_widgets.c | 71 static lv_obj_t * chart1; variable 542 chart1 = lv_chart_create(chart1_cont); in analytics_create() 543 lv_group_add_obj(lv_group_get_default(), chart1); in analytics_create() 544 lv_obj_add_flag(chart1, LV_OBJ_FLAG_SCROLL_ON_FOCUS); in analytics_create() 545 lv_obj_set_grid_cell(chart1, LV_GRID_ALIGN_STRETCH, 1, 1, LV_GRID_ALIGN_STRETCH, 1, 1); in analytics_create() 546 lv_chart_set_axis_tick(chart1, LV_CHART_AXIS_PRIMARY_Y, 0, 0, 5, 1, true, 80); in analytics_create() 547 lv_chart_set_axis_tick(chart1, LV_CHART_AXIS_PRIMARY_X, 0, 0, 12, 1, true, 50); in analytics_create() 548 lv_chart_set_div_line_count(chart1, 0, 12); in analytics_create() 549 lv_chart_set_point_count(chart1, 12); in analytics_create() 550 lv_obj_add_event_cb(chart1, chart_event_cb, LV_EVENT_ALL, NULL); in analytics_create() [all …]
|