有什么方法可以讓標(biāo)簽的start和數(shù)軸的end對齊么?
在做x的標(biāo)簽的時候想到的問題,最后這么完成的
//添加x軸標(biāo)簽
.append("text")
.text("Time(s)")
.attr("dx","23.5em")
//.attr("text-anchor","start")
? 不知道可以用方便的方法么?我這個23.5em是試出來的~
在做x的標(biāo)簽的時候想到的問題,最后這么完成的
//添加x軸標(biāo)簽
.append("text")
.text("Time(s)")
.attr("dx","23.5em")
//.attr("text-anchor","start")
? 不知道可以用方便的方法么?我這個23.5em是試出來的~
2015-09-25
舉報
2016-07-19
.append("text")
.text("Time(s)")
.attr("dx",function(){return scale_x(data.length-2)})
2016-07-18
旋轉(zhuǎn),在平移