Highchart not display

Because I used the array form:

data: [['DDSB',39],['DPSB',9],['DSB',26],['MV',35],['PSB',52]]

not the string form:

"[['DDSB',39],['DPSB',9],['DSB',26],['MV',35],['PSB',52]]"

JSON does not use single quotes, so your “JSON” wasn’t parsed into a valid array.

http://www.json.org/

OK NOW CHECK THIS BUT STILL CHART IS SAME

You’re still using a string, not an array, but now you can do this:

data: JSON.parse(result)

which should work as expected.

1 Like

hi … you told me that you expect this result … [[“DDSB”,39],[“DPSB”,9],[“DSB”,26],[“MV”,35],[“PSB”,52]]

and now i get this same result if you open the image… secondaly when i use this data: JSON.parse(result) then chart is not display … when i remove this json.parse then chart is display with wrong formatting

@robfallows Chart is successfully display… thanks for help :relieved: :slight_smile:

1 Like