You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: giraffe/README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -715,15 +715,9 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
715
715
716
716
All values (excluding **type**) are Optional and their defaults is defined by theme `GAUGE_MINI_THEME_BULLET_DARK`
717
717
718
-
- **type**: _'gauge mini'. **Required**._ Specifies that this LayerConfig is a gauge mini layer.
718
+
gauge mini creates one bar per unique __field_ value
719
719
720
-
- **barsDefinitions** _{groupByColumns; bars;}_ _(types of properties based on selected style)_
721
-
- Object style:
722
-
- **groupByColumns** _{ [key: string]: true }_ bar for each unique combination of given columns values. _(example: `{cpu: true, _field: true}`)_
723
-
- **bars** _{ barDef: { [key in keyof T]: string }, label?: string }[]_ where _barDef_ contains values for specific bar columns and label for this bar.
724
-
- _or_ Array style:
725
-
- **groupByColumns** _string[]_ bar for each unique combination of given columns values. _(example: `['cpu', '_field', ]`)_
726
-
- **bars** _{ barDef: string[], label?: string }[]_ where _barDef_ contains values for specific bar columns and label for this bar. Each barDef value belongs to key grom groupByColumns with same index.
720
+
- **type**: _'gauge mini'. **Required**._ Specifies that this LayerConfig is a gauge mini layer.
727
721
728
722
- **mode** _'progress' | 'bullet'._
729
723
- `'bullet'` backgroud bar is colored and value bar has always secondary color
@@ -775,6 +769,8 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
775
769
- **labelMainFontColor** _string_ Main label color.
776
770
777
771
Bar labels
772
+
- **labelBarsEnabled** _boolean_ Bar labels shown if true
773
+
778
774
- **labelBarsFontSize** _number_ Bar labels font size
779
775
780
776
- **labelBarsFontColor** _string_ Bar labels font color
@@ -810,7 +806,7 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
810
806
811
807
- **isEnforced**: _boolean. Optional. Defaults to false when not included._ Indicates whether the number of decimal places ("**digits**") will be enforced. When **isEnforced** is falsy or omitted, **digits** will be locked to 2 for stat values with a decimal and 0 for stat values that are integers, and the **digits** option will be ignored.
812
808
- **digits**: _number. Optional. Defaults to 0 when not included. Maximum 10._ When **digits** is a non-integer number, the decimal portion is ignored. Represents the number of decimal places to display in the stat value. Displayed stat value is subject to rounding.
813
-
- example ```valueFormater: (num: number) => `${num.toFixed(0)}%` ``` for _value=23.213_ will show text value _23%_.
809
+
- example ```valueFormater: (num: number) => `${((num || 0) * 100).toFixed(0)}%` ``` for _value=0.23213_ will show text value _23%_.
814
810
815
811
**Precreated themes**
816
812
- `GAUGE_MINI_THEME_BULLET_DARK`
@@ -819,7 +815,6 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
819
815
type: 'gauge mini',
820
816
mode: 'bullet',
821
817
textMode: 'follow',
822
-
barsDefinitions: {groupByColumns: ["_field"]},
823
818
824
819
valueHeight: 18,
825
820
gaugeHeight: 25,
@@ -841,6 +836,7 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
841
836
labelMainFontSize: 13,
842
837
labelMainFontColor: InfluxColors.Ghost,
843
838
839
+
labelBarsEnabled: false,
844
840
labelBarsFontSize: 11,
845
841
labelBarsFontColor: InfluxColors.Forge,
846
842
@@ -862,7 +858,6 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
862
858
type: 'gauge mini',
863
859
mode: 'progress',
864
860
textMode: 'follow',
865
-
barsDefinitions: {groupByColumns: ['_field']},
866
861
867
862
valueHeight: 20,
868
863
gaugeHeight: 20,
@@ -882,6 +877,7 @@ TableGraphLayerConfig uses the `fluxResponse` property from `config` as the data
0 commit comments