def generate_graph_with_template(data, title, yaxis_title, xaxi_title):
    """
    This common layout can be used to create Plotly graph layout.
    INPUT:
        data - a graph required JSON data i.e list
        title - a tile of the chart
        yaxis_title - Y title
        xaxix_title - X title
    OUTPUT:
        layout for particular graph.
    """
    return {
        'data': [data],

        'layout': {
            'title': title,
            'yaxis': {
                'title': yaxis_title
            },
            'xaxis': {
                'title': xaxi_title
            }
        }
    }