Logistic regression to D3