mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: show scalar data result in a table instead of graph (#44362)
Signed-off-by: tharun <rajendrantharun@live.com>
This commit is contained in:
parent
641e34e341
commit
732c2ebb37
@ -44,8 +44,11 @@ interface TimeAndValue {
|
||||
}
|
||||
|
||||
const isTableResult = (dataFrame: DataFrame, options: DataQueryRequest<PromQuery>): boolean => {
|
||||
// We want to process instant results in Explore as table
|
||||
if ((options.app === CoreApp.Explore && dataFrame.meta?.custom?.resultType) === 'vector') {
|
||||
// We want to process vector and scalar results in Explore as table
|
||||
if (
|
||||
options.app === CoreApp.Explore &&
|
||||
(dataFrame.meta?.custom?.resultType === 'vector' || dataFrame.meta?.custom?.resultType === 'scalar')
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user