Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

Starts at just $1 per CPM or $0.10 per CPC.

Google Charts Dynamic Arrays PHP Without SQL

I'm asking this question because all the answers I could find for similar problems were using MySQL whereas I'm not, just a JSON API to get the data, which I then put into arrays that I want to display as a Google graph. All I know is that I have to somehow format the arrays properly in order to get them to display but I have no idea how to do it in my case. I would just like to have a simple pie chart, based on the arrays below. So far I'm getting a blank space on the site. I tried something with Json_encode before but it didn't work so I decided to leave it as it is and come here instead. Here are the arrays after I do print_r:
Array 'name'-

The thing with mine is that these arrays are generated dynamically. Meaning that at any point in time, something can be added or taken away from them by the user. Therefore, these graphs would have to be appropriately adjusted whenever input wto arrays would be updated. I hope you understand what I mean and would really appreciate if someone could help me out with this.

Wow! This is actually working! I've been looking for an answer and testing different things out for a few days yet nothing worked but this does. Thank you so much! This is exactly what I wanted.
Just one last question. I've noticed that for some reason there's an option 'Other' on the pie chart, listed under names, yet there's no such result in the array. Is there any way to get rid of it or is it just the way this chart works?
Thanks again!

If I have to, then I will, sure. I'm asking because it's just that it doesn't make much sense in this scenario because there simply can't be an option 'Other' given that it's a portfolio of stocks so it'll always be filled 100%, without any space for 'Other', if you know what I mean.
Thanks again!