

def __init__(self):
    fmt = ElementFormat(None, 14, 0)
    data = RectangleData(testdata)
    self.layout = Layout([LineChart(data, Style(), 'chart', {
        'normal': State.parse('normal:(0,0+40+40)-(1,1-40-40)[100-,50-]'),
    }), BottomHorizontalAxis(data, 'xaxis', {
        'normal': State.parse('normal:<chart>(0,1)-(1,1+0+20)'),
    }), LeftVerticalAxis(data, 'yaxis', {
        'normal': State.parse('normal:<chart>(0,0-20+0)-(0,1)'),
    }), CenteredLine(fmt, 'Some test data', 'title', {
        'normal': State.parse('normal:<chart>(0,0-30)-(1,0)'),
    })])
    super().__init__()

dataset/ETHPy150Open tailhook/pyzza/examples/charts/main.py Main.__init__/original