To present evidence that red panda populations are becoming less diverse over time, you would want to illustrate how the nucleotide diversity changes as the generations progress.
Thus, the correct choice identifying the independent and dependent variables you would use in your graph is:
Independent = Generation and Dependent = Nucleotide Diversity