D3js X axis text not displaying

Hi,

Can somebody please give me a hint why the X axis text is not diplaying?

##Try this for display:

Your text must have -“x” and “y” and “fill” attributes

  • The font size and font-family are extra…

.text(“Energy - KWh”).attr(“font-family”, “Arial”).attr(“fill”, “black”).attr(“font-size”, “16px”).attr(“x”, 100).attr(“y”, -100)

1 Like