Lines Matching refs:chart
9 chart = lv.chart(lv.scr_act())
10 chart.set_size(200, 150)
11 chart.align(lv.ALIGN.CENTER, 0, -10)
13 chart.set_axis_tick(lv.chart.AXIS.PRIMARY_Y, 10, 5, 6, 5, True, 40)
14 chart.set_axis_tick(lv.chart.AXIS.PRIMARY_X, 10, 5, 10, 1, True, 30)
16 chart.add_event_cb(self.event_cb, lv.EVENT.ALL, None)
17 chart.refresh_ext_draw_size()
19 … self.cursor = chart.add_cursor(lv.palette_main(lv.PALETTE.BLUE), lv.DIR.LEFT | lv.DIR.BOTTOM)
21 self.ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y)
28 newser = chart.get_series_next(None)
30 chart.set_zoom_x(500)
34 label.align_to(chart, lv.ALIGN.OUT_TOP_MID, 0, -5)
40 chart = e.get_target()
44 self.last_id = chart.get_pressed_point()
47 chart.get_point_pos_by_id(self.ser, self.last_id, p)
48 chart.set_cursor_point(self.cursor, None, self.last_id)