def METHOD_NAME(dataset,displayControl):
    chart = ChartFactory.createXYLineChart("Vertical Profile", "Level","W", dataset,HORIZONTAL, True, True, False)
    renderer=chart.getPlot().getRenderer()
    renderer.setBaseStroke(BasicStroke(2.0));
    renderer.setAutoPopulateSeriesStroke(False);
    renderer.setSeriesPaint(0,displayControl.getColor())
    sample=displayControl.getVar("sample")
    xName = str(GridUtil.getParamUnits(sample)[0])
    yName = str(GridUtil.getVerticalUnit(sample))
    xAxis = NumberAxis(xName);
    yAxis = NumberAxis(yName);
    XRange=displayControl.getVar('XRange')
    YRange=displayControl.getVar('YRange')
    if not XRange=="None":
    	print(XRange)
    	yAxis.setRange(XRange)
    if not YRange=="None":
    	print(YRange)
    	xAxis.setRange(YRange)
    yAxis.setInverted(True)
    chart.getPlot().setRangeAxis(xAxis)
    print(xAxis.getRange())
    if YRange=="None":
    	displayControl.setVar('YRange',xAxis.getRange())
    chart.getPlot().setDomainAxis(yAxis)
    print(yAxis.getRange())
    if XRange=="None":
    	displayControl.setVar('XRange',yAxis.getRange())
    chart.setBackgroundPaint(Color.white)
    chart.getPlot().setBackgroundPaint(Color.white)
    chart.getPlot().setDomainGridlinesVisible(True)
    chart.getPlot().setRangeGridlinesVisible(True)
    chart.getPlot().setDomainGridlinePaint(Color.black)
    chart.getPlot().setRangeGridlinePaint(Color.black)
    return chart