Assuming you know the index of the element you want to remove, you can then use splice()
to remove it.
So given:
var chartDataArray = [
{
"label" : "Citrix PV Ethernet Adapter",
"data": [[1,0], [2,0.01], [3,0.02], [4,0.01], [5,0.01]]
},
{
"label" : "Virtual Adapter _1",
"data" : [[1,0], [2,0], [3,0], [4,0], [5,0]]
},
{
"label" : "Citrix PV Ethernet Adapter 2",
"data": [[3,0.02], [4,0.01], [5,0.01]]
},
{
"label" : "Virtual Adapter _3",
"data" : [[1,0], [2,0], [3,0]]
}
]
Then following will remove the item at index 2
:
chartDataArray.splice(2, 1);