D3のコードをES5からES6に書き直す場合はthisの扱いに注意
はじめにES5書かれていたd3のコードをES6に書き直した際に、文法的には間違っていないのにエラーが発生したのでメモ。問題selectAll()で取得した要素をeach()でループ処理する際に、各要素を適切に取得できていなかった。エラー箇所...
2019/03/05
はじめにES5書かれていたd3のコードをES6に書き直した際に、文法的には間違っていないのにエラーが発生したのでメモ。問題selectAll()で取得した要素をeach()でループ処理する際に、各要素を適切に取得できていなかった。エラー箇所...