I am new to D3, I am trying various stuff to explore the library. I have the following button and I want to change its text:
<button id="showhide" onclick="myFunction()">Show me the graph</button>
I tried various stuff like:
d3.select("showhide").html("asdsa");
d3.select("showhide").innerHTML("asdsa");
d3.select("showhide").text("asdsa");
but none of them works. I know how to do it using DOM or jQuery, I am wondering how to do it using D3js.