1

I want to use the d3 treemap layout in react .I have imported D3 in my react app . But I cannot use the d3 functions as it is . Find the code in this link codesandbox

1 Answer 1

1

Covert the D3 version to version 3.* and this code will render!

https://codesandbox.io/s/fancy-waterfall-mpwr1?fontsize=14

Sign up to request clarification or add additional context in comments.

2 Comments

that's great !! do you know how to use this as a breadcrumb driven visualization . When you click on the breadcrumb it goes only one level up even if we want to go to the root node .
Currently, in the D3 v3 version of the treemap, the 'breadcrumb' does navigate 'up' or 'back' 1 level when clicked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.