Graph draws correctly and name div is updated, but transition is broken