Most of the graph linked uses Heritage Index of Economic Freedom. https://www.heritage.org/index/about
Generally they have many categories. Rate the market conditions on a scale (some of the measures are quantitative). Average the ratings together to get one number comparing countries