Diagram viewer supports display flow name.

Maybe Math.max(yPointArray[0], yPointArray[1])