draw dec graph