Separated data preparation from graph drawing.