我有以下代码 d3 代码:
tooltip.select("#popupCount").text(function(){
if (varToGraph == "rough_top_cost"){
return " " + textValue + ": $" + addCommas(allCountyData[countyName][varToGraph]) + "\n" +
"Count:"
}})
我希望字数出现在新行上。但是,上面的代码导致所有内容都在一行上。我怎样才能让输出在两行上?
谢谢,啊