add sample with d3