adds canvas diagram