Diagram viewer supports display flow name.

Maybe Math.min(xPointArray[0], xPointArray[1])