adding D3 directive style