refactor d3 factory into a provider
comment out ga for now