D3js X axis text not displaying

D3js X axis text not displaying
0

#1

Hi,

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


#2

##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)