Make rendering function generic, simplify

Instead of depending on a specific category (rag, threats, owners) have
the functions read from a list of dimensions and be called with a
dimension_index