Home
last modified time | relevance | path

Searched refs:stacked_area_chart (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.5.0/examples/widgets/chart/
Dlv_example_chart_8.c10 static stacked_area_chart_t stacked_area_chart; variable
77 stacked_area_chart.obj = lv_chart_create(lv_scr_act()); in lv_example_chart_8()
78 lv_obj_set_size(stacked_area_chart.obj, 200, 150); in lv_example_chart_8()
79 lv_obj_center(stacked_area_chart.obj); in lv_example_chart_8()
80 lv_chart_set_type(stacked_area_chart.obj, LV_CHART_TYPE_LINE); in lv_example_chart_8()
81 lv_chart_set_div_line_count(stacked_area_chart.obj, 5, 7); in lv_example_chart_8()
82 lv_obj_add_event_cb(stacked_area_chart.obj, draw_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL); in lv_example_chart_8()
85 lv_chart_set_range(stacked_area_chart.obj, LV_CHART_AXIS_PRIMARY_Y, 0, 100); in lv_example_chart_8()
86 lv_chart_set_axis_tick(stacked_area_chart.obj, LV_CHART_AXIS_PRIMARY_Y, 3, 0, 5, 1, true, 30); in lv_example_chart_8()
89 lv_obj_set_style_size(stacked_area_chart.obj, 0, LV_PART_INDICATOR); in lv_example_chart_8()
[all …]
Dlv_example_chart_8.py11 stacked_area_chart = StackedAreaChart() variable
77 stacked_area_chart.obj = lv.chart(lv.scr_act())
78 stacked_area_chart.obj.set_size(200, 150)
79 stacked_area_chart.obj.center()
80 stacked_area_chart.obj.set_type( lv.chart.TYPE.LINE)
81 stacked_area_chart.obj.set_div_line_count(5, 7)
82 stacked_area_chart.obj.add_event_cb( draw_event_cb, lv.EVENT.DRAW_PART_BEGIN, None)
85 stacked_area_chart.obj.set_range(lv.chart.AXIS.PRIMARY_Y,0,100)
86 stacked_area_chart.obj.set_axis_tick(lv.chart.AXIS.PRIMARY_Y, 3, 0, 5, 1, True, 30)
89 stacked_area_chart.obj.set_style_size(0, lv.PART.INDICATOR)
[all …]