def createSchLinePlot(): print('schLinePlot') if (request.method == 'POST'): data = request.get_json() predictDate = data['predictDate'] plotCreator = Plot() graphJSON = plotCreator.createSchLinePlot(predictDate) print(request.url) #localhost:5000/electric/pattern return graphJSON