tried a different d3 approach. still broken