tideline 1.36.0 → 1.37.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,9 +48,12 @@ var Categorizer = function(bgClasses = {}, bgUnits = MGDL_UNITS){
|
|
|
48
48
|
|
|
49
49
|
var roundedValue = bankersRound(d.value, precision);
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
const hasVeryHigh = _.isNumber(classes.high?.boundary);
|
|
52
|
+
const hasVeryLow = _.isNumber(classes['very-low']?.boundary);
|
|
53
|
+
|
|
54
|
+
if (hasVeryLow && roundedValue < classes['very-low'].boundary) {
|
|
52
55
|
return 'verylow';
|
|
53
|
-
} else if (roundedValue > classes.high.boundary) {
|
|
56
|
+
} else if (hasVeryHigh && roundedValue > classes.high.boundary) {
|
|
54
57
|
return 'veryhigh';
|
|
55
58
|
} else if (roundedValue < classes.low.boundary) {
|
|
56
59
|
return 'low';
|
package/package.json
CHANGED
|
@@ -158,10 +158,10 @@ var SummaryGroup = createReactClass({
|
|
|
158
158
|
bgUnits: this.props.bgUnits
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
var labelOpts = option.labelOpts;
|
|
162
|
-
|
|
163
161
|
var labelText = option.label ? option.label :
|
|
164
|
-
labels[
|
|
162
|
+
labels?.bg?.[option?.key];
|
|
163
|
+
|
|
164
|
+
if (!labelText) return null;
|
|
165
165
|
|
|
166
166
|
var labelElem = (
|
|
167
167
|
<span className="SummaryGroup-option-label">{labelText}</span>
|