I have quey tag showing return [6Rows* 2Coulms ] . I used system.util.jsonEncode
function to convert the Dataset to JSON format, below my outcome.
{
"columns":[
{
"name":"Consumption",
"type":"java.lang.Double"
},
{
"name":"LineName",
"type":"java.lang.String"
}
],
"rows":[
[
26683.0,
"CANLine 1"
],
[
23510.0,
"CANLine 2"
],
[
58977.2998046875,
"CANLine 3"
],
[
567.0,
"RBGlass Line"
],
[
16586.0,
"PETLine 1"
],
[
21981.0,
"PETLine 2"
]
]
}
How can i remove the first two sets of values to be as below to use in X-Y Chart?
{
"rows":[
[
26683.0,
"CANLine 1"
],
[
23510.0,
"CANLine 2"
],
[
58977.2998046875,
"CANLine 3"
],
[
567.0,
"RBGlass Line"
],
[
16586.0,
"PETLine 1"
],
[
21981.0,
"PETLine 2"
]
]
}