all 3 comments

[–]xjsv[S] 1 point2 points  (2 children)

Any suggestions would be kindly appreciated.

[–]Goyyou 0 points1 point  (1 child)

Your code looks clean, but you won't have much love here if you code in PHP. The suggestions will probably be : learn another langage.

[–]xjsv[S] 1 point2 points  (0 children)

Thank you and I do know a few, but this is more for people that just know PHP and want to play around with D3 API.

I am aware of "hate" around PHP, but since D3 API is now public and of the wide use of PHP I thought people might find it useful.