In Excel, diagrams can be created automatically from the values in a table. However, the X and Y axes are not always displayed the way you need them to be. Don't worry: the axes can be swapped with just a few clicks.
Read more about chart design in Excel here.
How to swap the X and Y axes in the Excel diagram