Phase diagram is important concept in metallurgy. To draw binary phase diagram you need knowledge of free energy vs composition curve at different temperature starting from 0 K to highest melting point between two elements.
There is a software which can help you draw some phase diagram of defined elements. See this video and enjoy