Home Forums Chart Support plot multiple dynamic graphs from txt file Reply To: plot multiple dynamic graphs from txt file

#22222

@Priyanka

My json data are in this format:

{
“viewers”: [
{
“id”: 1,
“datapoints”: [
{“tload”: 1234567, “fakeDuration”: 200,”realDuration”: 20, “hlsBandwidth”: 3400, “origin”: “p2p”},
{“tload”: 1334567,”fakeDuration”: 210,”realDuration”: 30,”hlsBandwidth”: 3100, “origin”: “cdn”}
]},
{
“id”: 2,
“datapoints”: [
{ “tload”: 1244567, “newDuration”: 200, “realDuration”: 20, “Bandwidth”: 3400,”origin”: “p2p” },
{“tload”: 1335567,”newDuration”: 210,”realDuration”: 30,”Bandwidth”: 3100, “origin”: “cdn”}
]
}
]
}

I want to generate a dynamic graph for each “id” with some thing like this:
Example of the graph

on the graph I marked the points which their origin is “p2p”.