I need to create a d3.js chart using PHP formatted array for JSON. The format is like: The array code and format that I currently have is below. The format of the array clearly needs to be changed, but I’m not sure how to do that to suite the above format. Answer The best approach may be to create your