two scopes for d3 directive: data and date