For my final project, I am accessing an API, and I want to display data from that API in a web-page (the API provides data on forecast electricity generation from solar PV in the UK, it's provided by Sheffield University, hence the names).
You can see the output from the attached screenshot:
On the left you can see the square brackets - which should have the data from
On the right you can see Chrome's inspector window - showing no errors and in fact logging that the $.getJSON(... call has been completed with both my "success" message and the current figure for
contents is updated, and this gets passed to the
My question is - how do I fix this?