graph fits canvas