sag_components 1.0.768 → 1.0.770
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.
|
@@ -34,7 +34,7 @@ const TotalDoughnutChart = props => {
|
|
|
34
34
|
const [zoomResolution, setZoomResolution] = (0, _react.useState)(1);
|
|
35
35
|
const DoughnutChartContainerRef = (0, _react.useRef)();
|
|
36
36
|
const dotCutTrenty = row => {
|
|
37
|
-
if (!row || !row.value) return
|
|
37
|
+
if (!row || !row.value) return null;
|
|
38
38
|
let valueNew = 0;
|
|
39
39
|
if (row !== null && row !== void 0 && row.value && Math.abs(row.value) > 0 && row.value % 1 !== 0) {
|
|
40
40
|
var _row$value;
|
|
@@ -31,6 +31,7 @@ const TwoBarCharts = props => {
|
|
|
31
31
|
barChartColorSecond,
|
|
32
32
|
showLegend,
|
|
33
33
|
legendData,
|
|
34
|
+
showDollarSign,
|
|
34
35
|
showReferenceLine,
|
|
35
36
|
referenceLinePoint,
|
|
36
37
|
referenceLineColor,
|
|
@@ -40,7 +41,7 @@ const TwoBarCharts = props => {
|
|
|
40
41
|
const displayFormattedValue = value => {
|
|
41
42
|
if (!value) return '';
|
|
42
43
|
let formattedValue = '';
|
|
43
|
-
formattedValue = !isDollar ? ''.concat('X', value.toFixed(1)) : ''.concat('$', (0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
|
|
44
|
+
formattedValue = !isDollar ? ''.concat('X', value.toFixed(1)) : ''.concat(showDollarSign ? '$' : '', (0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
|
|
44
45
|
return formattedValue;
|
|
45
46
|
};
|
|
46
47
|
|
|
@@ -201,6 +202,7 @@ TwoBarCharts.defaultProps = {
|
|
|
201
202
|
iconType: ICON_TYPE_SQUARE,
|
|
202
203
|
iconColor: '#BD9EFF'
|
|
203
204
|
}],
|
|
205
|
+
showDollarSign: true,
|
|
204
206
|
showReferenceLine: false,
|
|
205
207
|
referenceLinePoint: 0,
|
|
206
208
|
referenceLineColor: '#212121',
|