Infinity plugin - Unable to create graph from JSON values

Hello,

I used the Infinity plugin to make a call to REST API.
The following is the JSON response with timestamp (epoch) and values.

{
“timeStamp”:[1609455600000,1609456500000,1609457400000,1609458300000,1609459200000,1609460100000,1609461000000],
“values”:[5,10,15,10,10,5,5]
}

I am unable to get the values from both the fields.
Here is how I am trying to access,

Thank you in advance.

Hi,

I call @yesoreyeram who worked on the plugin to help, my first guess is that your json is not well formated, can you try with only one value.

Check this out might help :

Hope it helps.

Good Luck

@wlargou: Thank you for your suggestion.

If I change to format from Time Series to table, I got below response.

All the values are displayed in single line, instead of different rows.
Also, the values are not getting displayed in Time Series format.

Hi,

Make sense, you should have your data structure in JSON as timestamp/value pairs, currently you have all timestamps as an entry and all values at entry.

Good Luck

As @wlargou mentioned, Your json needs to be array of elements something like this

[
  { "timestamp" : 12345, "value" : 0.1 },
  { "timestamp" : 12346, "value" : 0.2 }
]

@vkamath - Unfortunately, current version of plugin doesn’t support the format you have now. May be will see if I can fix this in future versions. Thanks for testing the plugin.

1 Like

Thank you @wlargou and @yesoreyeram for all the help.

1 Like