-
naruka17April 4, 2018 at 11:14 am #8897
Hi,
In my weighted tree tooltip window is not coming on node if I use scroll bar. could you please help me to fix it?
Thanks
ChetanvizulyApril 4, 2018 at 11:27 am #8898Hello Chetan,
You will want to modify the data tip code in the test container to take into account document.body.scrollTop or window.pageYOffset property to take into account the scrolling.
Cheers,
Tom
naruka17April 18, 2018 at 8:39 am #9469Can you please share code or line where I can modify my code.
naruka17April 18, 2018 at 8:50 am #9470I found issue in your code as well. Not able to attach screen shot.
vizulyApril 18, 2018 at 11:34 am #9474Hello,
You will want to modify this routine in the weightedtree_test.js file. The key change is this line:
y = y + window.pageYOffest; function createDataTip(x,y,h1,h2,h3) { var html = datatip.replace("HEADER1", h1); html = html.replace("HEADER2", h2); html = html.replace("HEADER3", h3); y = y + window.pageYOffset; d3.select("body") .append("div") .attr("class", "vz-weighted_tree-tip") .style("position", "absolute") .style("top", y + "px") .style("left", (x - 125) + "px") .style("opacity",0) .html(html) .transition().style("opacity",1); }
Cheers,
Tom
PatrickMay 13, 2018 at 3:42 pm #10337I wish to enlarge the text size for those tool-tips, and, perhaps don’t use upper-case. Is that done in the same place, or should it be done where the
vz-weighted_tree-tip
is defined?vizulyMay 14, 2018 at 8:31 am #10342Hello Patrick,
You can override the CSS styles for the three different headers in the tool tip with your own font size or text-transform.
.tooltip .header1
.tooltip .header2
.tooltip .header3Or you can directly set the styles on those elements in the the createDataTip() function of weightedtree_test.js
I hope that helps.
Cheers,
Tom
-
|
You must be logged in to reply to this topic.