Hi,
I have a Kibana pie chart with two segments as show in the image. As aggregation each segment has "sum" of a field called "duration.time". I would like have a different aggregation for each segment. For example, "sum" of a field called "duration.time1" for the first segment and "sum" of another field called "duration.time2" for the second segment. Is it possible to do this using the UI of Kibana or modifying the "visState" code of the pie chart. The "visState" for this graph is below. Thanks in advance.
{
"aggs": [
{
"id": "1",
"params": {
"field": "duration.time"
},
"schema": "metric",
"type": "sum"
},
{
"id": "2",
"params": {
"field": "level0.raw",
"order": "desc",
"orderBy": "1",
"size": 0
},
"schema": "segment",
"type": "terms"
},
{
"id": "3",
"params": {
"field": "level1.raw",
"order": "desc",
"orderBy": "1",
"size": 0
},
"schema": "segment",
"type": "terms"
}
],
"listeners": {},
"params": {
"addLegend": true,
"addTooltip": true,
"isDonut": false,
"shareYAxis": true
},
"type": "pie"
}