How to set text color for my d3 chart title? How to set text color for my d3 chart title? javascript javascript

How to set text color for my d3 chart title?


All the while I was doing .style("fill", "darkOrange")

Then I found out the correct answer is

.style('fill', 'darkOrange')