On the Insert tab, hover the cursor over Chart and select Bar from the menu.
If you want to switch the row and columns. On the Linked Chart button, click the three dot button and select Open Source from the menu.
A Google Sheets window will open.
Click the chart and click the three dots and select Edit Chart from the menu.
On the Setup tab, check the check box for switch rows or columns.