I need to create a custom d3 layout that is somewhat close to a treemap but in a triangular style. Here\'s a screenshot so that you can understand:
Just copy and paste the d3.layout.pyramid function into a new file and rename functions as necessary so it doesn't conflict with the d3 library. Likely everything will be private so only the outermost function will need to be renamed. You probably won't have to namespace it to "d3". That is to say, this should work:
var myPyramidLayout = function () {
...
}