File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,20 @@ export class DualKpiSettingsModel extends Model {
6868 public validateValues ( ) : void {
6969 this . colors . opacity . value = this . validateOpacity ( this . colors . opacity . value ) ;
7070 this . colorsBottom . opacity . value = this . validateOpacity ( this . colorsBottom . opacity . value ) ;
71+ console . log ( 'Abbreviate values: ' , this . properties . generalGroup . abbreviateValues . value ) ;
72+ // Disable display units when abbreviate values is on
73+ console . log ( this . properties . generalGroup . abbreviateValues . value )
74+ if ( this . properties . generalGroup . abbreviateValues . value ) {
75+ this . valueFormatting . displayUnits . value = 1 ;
76+ this . valueFormatting . displayUnits . disabled = true ;
77+ this . valueFormatting . displayUnits . disabledReasonKey = "Visual_Description_AbbreviateValues_On" ;
78+ this . valueFormatting . displayUnits . disabledReason = "Visual_Description_AbbreviateValues_On" ;
79+
80+ this . valueFormatting . precision . value = 0 ;
81+ this . valueFormatting . precision . disabled = true ;
82+ this . valueFormatting . precision . disabledReason = "Visual_Description_AbbreviateValues_On" ;
83+ this . valueFormatting . precision . disabledReasonKey = "Visual_Description_AbbreviateValues_On" ;
84+ }
7185 }
7286
7387 public setLocalizedOptions ( localizationManager : ILocalizationManager ) {
Original file line number Diff line number Diff line change 8282 "Visual_Description_TopChartDefaultKpiValue":"Default text when no KPI value is available",
8383 "Visual_Description_MatchTopChartOptions":"Apply top chart's visual settings to the bottom chart for consistent appearance",
8484 "Visual_Description_FontSizeAutoFormatting":"Automatically adjust the text size to fit the visual",
85- "Visual_Description_StaleDataThreshold":"Defines the time limit to warn if data becomes outdated"
85+ "Visual_Description_StaleDataThreshold":"Defines the time limit to warn if data becomes outdated",
86+ "Visual_Description_AbbreviateValues_On": "This setting is disabled because 'Abbreviate values' is already enabled."
8687}
You can’t perform that action at this time.
0 commit comments