Can decide graph should be shown or not