Calc, graph, how to change x axis to y and opposite

Hello!
I got a graph from the table.
I would like the data from x- axis to put as Y, and opposite.
Please, can somone tell me how?
Many thanks!

Right click on graph and select Data Ranges. On Data Range tab change “Data series in columns” to “Data series in rows” (or vice versa depending which graph type you have selected). Then on the same tab depending on your data check “First row as label” or “First column as label”.