Query:
I have successfully incorporated a version of a d3.js
tree obtained from this source.
In my specific scenario, the tree does not occupy the entire screen but is nicely contained within a div
, as it forms only a segment of the dashboard I designed.
Below is the CSS styling for the div
housing the tree:
#tree-container {
border-style: solid;
border-width: 3px;
border-color: #b0c4de;
float:left;
position:relative;
top:2px;
margin-top: 5px;
margin-left: 10px;
}
My objective is to allow users to resize the div
by clicking and dragging the mouse pointer along its border.
My Attempt So Far?
Following advice given in the accepted response posted here:
$('#tree-container').resizable({
handles: 'n,w,s,e',
minWidth: 200,
maxWidth: 400
});
This approach has been unsuccessful, resulting in an error message:
Uncaught TypeError: undefined is not a function
Even trying this variation:
$('#tree-container').resize({
handles: 'n,w,s,e',
minWidth: 200,
maxWidth: 400
});
does not generate an error, yet remains ineffective.
The following method also failed to yield results:
$('#tree-container').resize({
handles: 'n,w,s,e'
});
Any suggestions on how to address this issue?