feat: Implement context menu for drill by (#23454)

This commit is contained in:
Kamil Gabryjelski
2023-03-29 15:01:51 +02:00
committed by GitHub
parent 542bf25729
commit 9fbfd1c1d8
43 changed files with 860 additions and 129 deletions

View File

@@ -391,6 +391,18 @@ export default function TableChart<D extends DataRecord = DataRecord>(
crossFilter: cellPoint.isMetric
? undefined
: getCrossFilterDataMask(cellPoint.key, cellPoint.value),
drillBy: cellPoint.isMetric
? undefined
: {
filters: [
{
col: cellPoint.key,
op: '==',
val: cellPoint.value as string | number | boolean,
},
],
groupbyFieldName: 'groupby',
},
});
}
: undefined;