Numbers create a chart with transposed data
I found it out. It was actually simple. I just had to go to the table containing the data and click on the little icon at the top-left of the table.

I added a couple of pictures to clarify what I had to click.
Notice the arrow on the first arrow that shows the button you have to click.