add moving averages to nvd3.js chart