I'm looking to showcase the comma-separated values from a JSON file as a list in a mouseover tooltip on each node. Here is my current code snippet:
div.append("div")
.attr("class", "tooltip")
.style("opacity", 1)
.html("Node name : " + d.NodeName + "<br>" + "Keywords list: " + d.keywords)
Here are the keywords in my JSON file:
"keywords":["one","two","three"]
My question is: How can I display these keywords in a bulleted list like this:
Node Name : Test Name
Keywords List :
* one
* two
* three
Currently, the keywords are displayed in one line separated by commas only.