fixed d3 view check if data exists