I’m working with wordpress and my data content with D3js are user dependent.
Each user has a dedicated data directory and I would be able to choose the right one on the fly.
I known the current user_login in PHP but I don’t know how to let D3js aware of that?
1 comment
Comments are closed.
If you have the variable in
PHP
you can simply pass it toJavascript
like this.Then you can use it in
d3
in anyway you like.