SVG

svgグラフのツールチップ内で改行をしたい

ツールチップ内で改行がシンプルにできない。ツールチップ内でブロック要素のtextタグを複数用意して1行ごとに1つのtextタグを使用。 http://ordinary-programming.blogspot.jp/2014/03/d3js.html http://hnakamur.github.io/blog/2013/03/02/multi-series-l…

setAttribute

setAttributeしたい時はjQuery使えないっぽい getElementByIdとかquerySelectorAllとか使うquerySelectorAllはリストを返す http://qiita.com/3upjp/items/bf575019a5894decb51b https://developer.mozilla.org/ja/docs/Web/API/document.querySelectorAll