Lines Matching refs:chart
20 start_point = chart.get_x_start_point(ser)
31 def add_data(timer,chart): argument
35 chart.set_next_value2(ser, x, y)
46 chart = lv.chart(lv.scr_act()) variable
47 chart.set_size(200, 150)
48 chart.align(lv.ALIGN.CENTER, 0, 0)
49 chart.add_event_cb(draw_event_cb, lv.EVENT.DRAW_PART_BEGIN, None)
50 chart.set_style_line_width(0, lv.PART.ITEMS) # Remove the lines
52 chart.set_type(lv.chart.TYPE.SCATTER)
54 chart.set_axis_tick(lv.chart.AXIS.PRIMARY_X, 5, 5, 5, 1, True, 30)
55 chart.set_axis_tick(lv.chart.AXIS.PRIMARY_Y, 10, 5, 6, 5, True, 50)
57 chart.set_range(lv.chart.AXIS.PRIMARY_X, 0, 200)
58 chart.set_range(lv.chart.AXIS.PRIMARY_Y, 0, 1000)
60 chart.set_point_count(50)
62 ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y)
77 timer.set_cb(lambda src: add_data(timer,chart))