There is this brilliant YouTube video that will help you:
Thanks for your reply. I already saw that video but that doesn't give me the answer which I wanted. What I want is after importing the data I want to see that custom d3 visualisation in the show me option so that I can add the measures and dimensions into that visualisation and get that d3 visualisation work. So, Is there any way to achieve this in Tableau?
Sadly no. That is not possible.