def METHOD_NAME(data):
  	dataset=XYSeriesCollection()
    	try:
		series=XYSeries(displayControl.getDataChoices()[0].getName())
    	except:
        	series=XYSeries(displayControl.getDataChoices()[0].getDescription())
    	ods=data.getDomainSet()
    	levs=ods.getSamples(False)[2]
    	values=data.getValues()[0]
    	for lev,val in zip(levs,values):
        	series.add(lev,val)
    	dataset.addSeries(series)
    	return dataset