Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Footnotes or legend based on data

$
0
0

Is there an example of making footnotes or a legend based on the table data?

For example, suppose I had data for 100 games, 70 of which can be designated home/away ("H" or "A" in the "Site" column) and 30 of which occur at neutral sites ("N" in the "Site" column). Suppose there are only five neutral sites for those 30 games.

Instead of having an entire column to spell out the neutral site for each game, 70% of which will be blank and plenty of repeats in the others, then how could I just simply annotate "N1", "N2", "N3", etc. in the "Site" column and then at the bottom of the table include a legend that shows:
N1 = Washington Stadium
N2 = Adams Stadium
N3 = Jefferson Stadium
etc.

Ideally the solution would be "data-agnostic" to where it doesn't matter if there are 2 or 20 neutral sites, it will calculte the footnotes/legend the same way.

Thoughts?


Viewing all articles
Browse latest Browse all 2364

Trending Articles