Lines Matching refs:chart

21     lv_obj_t * chart;  in lv_example_chart_3()  local
22 chart = lv_chart_create(lv_scr_act()); in lv_example_chart_3()
23 lv_obj_set_size(chart, 200, 150); in lv_example_chart_3()
24 lv_obj_center(chart); in lv_example_chart_3()
25 lv_chart_set_type(chart, LV_CHART_TYPE_BAR); in lv_example_chart_3()
26 lv_chart_set_range(chart, LV_CHART_AXIS_PRIMARY_Y, 0, 100); in lv_example_chart_3()
27 lv_chart_set_range(chart, LV_CHART_AXIS_SECONDARY_Y, 0, 400); in lv_example_chart_3()
28 lv_chart_set_point_count(chart, 12); in lv_example_chart_3()
29 lv_obj_add_event_cb(chart, draw_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL); in lv_example_chart_3()
32 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_PRIMARY_X, 10, 5, 12, 3, true, 40); in lv_example_chart_3()
33 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_PRIMARY_Y, 10, 5, 6, 2, true, 50); in lv_example_chart_3()
34 lv_chart_set_axis_tick(chart, LV_CHART_AXIS_SECONDARY_Y, 10, 5, 3, 4, true, 50); in lv_example_chart_3()
37 lv_chart_set_zoom_x(chart, 800); in lv_example_chart_3()
40 …lv_chart_series_t * ser1 = lv_chart_add_series(chart, lv_palette_lighten(LV_PALETTE_GREEN, 2), LV_… in lv_example_chart_3()
41 lv_chart_series_t * ser2 = lv_chart_add_series(chart, lv_palette_darken(LV_PALETTE_GREEN, 2), in lv_example_chart_3()
45 lv_chart_set_next_value(chart, ser1, 31); in lv_example_chart_3()
46 lv_chart_set_next_value(chart, ser1, 66); in lv_example_chart_3()
47 lv_chart_set_next_value(chart, ser1, 10); in lv_example_chart_3()
48 lv_chart_set_next_value(chart, ser1, 89); in lv_example_chart_3()
49 lv_chart_set_next_value(chart, ser1, 63); in lv_example_chart_3()
50 lv_chart_set_next_value(chart, ser1, 56); in lv_example_chart_3()
51 lv_chart_set_next_value(chart, ser1, 32); in lv_example_chart_3()
52 lv_chart_set_next_value(chart, ser1, 35); in lv_example_chart_3()
53 lv_chart_set_next_value(chart, ser1, 57); in lv_example_chart_3()
54 lv_chart_set_next_value(chart, ser1, 85); in lv_example_chart_3()
55 lv_chart_set_next_value(chart, ser1, 22); in lv_example_chart_3()
56 lv_chart_set_next_value(chart, ser1, 58); in lv_example_chart_3()
58 lv_coord_t * ser2_array = lv_chart_get_y_array(chart, ser2); in lv_example_chart_3()
73 lv_chart_refresh(chart); /*Required after direct set*/ in lv_example_chart_3()