title: Custom context menu in d3 and svg
body: <p>I would like to have custom context menu appearing when I right click on an svg circle.
  For now I have found <a href="https://stackoverflow.com/a/7855120/1041692">this</a> answer that helps me to handle the right click with the following code:</p>
  <pre><code>.on(&quot;contextmenu&quot;, function(data, index) {
     //handle right click
  
     //stop showing browser menu
     d3.event.preventDefault()
  });
  </code></pre>
  <p>Now I would like to know how I can show a box containing some HTML.</p>
  <p>Thanks in advance.</p>