Multi series bar chart

Hi team i want to create either it can be bar or line (no conditions)

i have the json data like this
I was trying to implement a bar chart based on the input
1){
“position”: 45,
“testLocation”: “Far”,
“throughput”: 108.0,
“stream”: “upstream”
}
2){
“position”: 45,
“testLocation”: “Far”,
“throughput”: 100.0,
“stream”: “downstream”
}
3) {
“position”: 0,
“testLocation”: “Far”,
“throughput”: 10.0,
“stream”: “upstream”
}
4 {
“position”: 0,
“testLocation”: “Far”,
“throughput”: 115.0,
“stream”: “downstream”
}

we store data as each json data with seperate id in elastic DB in same index and its represented for the clarification above as 1,2,3,4.

i was trying to show the data in bar chart as multi series like on position on x axis and throught put on y axis

so the data is loading as 0,45 and 0,45 side by side on using filter to segregate data based on stream ex: upstream and down stream.

i want to create a multi series not side by side

so both upstream and down stream data throughput should be shown in one value i.e 0 on x axis
please let me know the possible solution

im attaching the picture where the data is side by side ( for two queries written)

from above i have requirement to show only 0,45,90, 135 and if 45 have two values then its should both in same bar chart not side by side
i hope you understand the requirement