Add the expression for the diagram attributes