memory curve with d3