I think the best approach may be using the Below() function as a chart expression.
The expression for D1 would be:
and for D2
Alternatively, you could generate D1/D2 etc in the script, but I would need to know if there are multiple rows per date or a single row per date.
The attached qvw demonstrates both techniques.