Hello,
If I provide this simple data to a chart, the chart data shows up correctly.
Please note that the above JSON has STRINGS for the keys.
However, if I provide a number as a key, I get an "Unexpected number at line number 2156" error.
Any help?
If I provide this simple data to a chart, the chart data shows up correctly.
var
data = [
{
"state"
:
"NY"
,
"abc"
:12312},
{
"state"
:
"AZ"
,
"abc"
:12312},
{
"state"
:
"CA"
,
"abc"
:12312},
{
"state"
:
"VT"
,
"abc"
:12312}
];
However, if I provide a number as a key, I get an "Unexpected number at line number 2156" error.
var
data = [
{
"state"
:
"MH"
,
"1"
:12312},
{
"state"
:
"MH"
,
"1"
:12312},
{
"state"
:
"MH"
,
"1"
:12312},
{
"state"
:
"MH"
,
"1"
:12312}
];
Any help?