mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 01:49:25 +08:00
NodeGraph: fix rendering of node graph in dashboard panel (#44552)
Signed-off-by: tharun <rajendrantharun@live.com>
This commit is contained in:
@ -317,3 +317,11 @@ export function graphBounds(nodes: NodeDatum[]): Bounds {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export function getNodeGraphDataFrames(frames: DataFrame[]) {
|
||||
// TODO: this not in sync with how other types of responses are handled. Other types have a query response
|
||||
// processing pipeline which ends up populating redux state with proper data. As we move towards more dataFrame
|
||||
// oriented API it seems like a better direction to move such processing into to visualisations and do minimal
|
||||
// and lazy processing here. Needs bigger refactor so keeping nodeGraph and Traces as they are for now.
|
||||
return frames.filter((frame) => frame.meta?.preferredVisualisationType === 'nodeGraph');
|
||||
}
|
||||
|
Reference in New Issue
Block a user