score:0

this error

"typeerror: 'organization' object is not subscriptable django charts.js"

suggests that you are trying to get an element out of an organization object that isn't a dictionary, list, or a tuple.

i suspect the likely cause of this may be stemming from the following (though you can confirm this with the full error trace which should tell you the line of code that is causing the error):

for org in orgz:
  labels.append(org['country'])
  labels.append(org['total_scores'])

you should try to debug the values of this and verify that they are correct.


Related Query

More Query from same tag