Let's say I want to show how many people graduated from my university. I know their fields of study and their degrees. I want to offer different views on this data, for example a chart, a flat table, and something similar to this:
This table is like a matrix view with sums. I'm just wondering where to put the headings or names of the two dimensions.
I've seen a lot of tables which use the solution that I marked red in the image which means putting both in the otherwise empty table cell in the top left corner. But I think it doesn't look good and it ruins the "cleanness" with the unaligend words and the slanted line.
Also often you see the blue solution, putting the headings as a container around (above/beside) the columns/rows. The row-heading is sometimes rotated by 90 degrees. I still don't think this is the perfect solution.
Is there a well accepted or standard way to do this? Which option is preferable?
Note: In my actual case, I don't know how many rows and columns I get, but it's something between 3 and 10 each, so still readable in this format. Moreover, it is important to show the two headings, as it is not clear from the data itself what is meant.