mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NodeGraph: Support icons for nodes (#60989)
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
export enum NodeGraphDataFrameFieldNames {
|
||||
// Unique identifier [required] [nodes + edges]
|
||||
id = 'id',
|
||||
// Text to show under the node [nodes]
|
||||
title = 'title',
|
||||
// Text to show under the node as second line [nodes]
|
||||
subTitle = 'subtitle',
|
||||
// Main value to be shown inside the node [nodes]
|
||||
mainStat = 'mainstat',
|
||||
// Second value to be shown inside the node under the mainStat [nodes]
|
||||
secondaryStat = 'secondarystat',
|
||||
source = 'source',
|
||||
target = 'target',
|
||||
detail = 'detail__',
|
||||
// Prefix for fields which value will represent part of the color circle around the node, values should add up to 1 [nodes]
|
||||
arc = 'arc__',
|
||||
// Will show a named icon inside the node circle if defined. Can be used only with icons already available in
|
||||
// grafana/ui [nodes]
|
||||
icon = 'icon',
|
||||
// Defines a single color if string (hex or html named value) or color mode config can be used as threshold or
|
||||
// gradient. arc__ fields must not be defined if used [nodes]
|
||||
color = 'color',
|
||||
|
||||
// Id of the source node [required] [edges]
|
||||
source = 'source',
|
||||
// Id of the target node [required] [edges]
|
||||
target = 'target',
|
||||
|
||||
// Prefix for fields which will be shown in a context menu [nodes + edges]
|
||||
detail = 'detail__',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user