added functionallity to choose graph type and draw via configuration