Hi Manas,
I've created d3 trees in obiee by following these steps:
1. construct an obiee query that outputs columns for parent and child,
2. add a "narrative view" to your query results, and in that view, "push" the output of your query into a javascript object (Ben's links below describe how to do that)
3. add javascript to the "postfix" which transforms the flat query output into a tree, computes the tree layout, and then updates the layout when you click on a node to expand or collapse it.
I hope that helps, but if you need more ideas, I recommend you post to Stack Overflow (
http://stackoverflow.com ) with the d3.js tag.
Good luck
Sara