def METHOD_NAME(self):
    for i in range(CHART_POINTS_NUM+1):
        t = i * (1024 // CHART_POINTS_NUM)
        step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
        self.chart.set_value_by_id2(self.ser1, i, t, step)
        self.chart.refresh()