Replace diagram with canvas