Creating shapes in plotly.go

app.layout = html.Div([

    id = 'Threshold plot',
    figure = {
        'data': [
                x = X,
                y = Y,
                mode = 'lines+markers'
        'layout' : go.Layout(
            title = 'Graph of time taken by batches of job',
            xaxis = {'title' : 'Batch_ID'},
            yaxis = {'title' : 'Time in minutes'}

Hi this is my code to plot a graph using dash and plotly.go how can I make a static line or a shape in the go.layout