sag_components 1.0.933 → 1.0.934
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.
|
@@ -23,21 +23,22 @@ const SingleBarLineCharts = props => {
|
|
|
23
23
|
width,
|
|
24
24
|
height,
|
|
25
25
|
title,
|
|
26
|
-
|
|
26
|
+
data,
|
|
27
|
+
totalsData,
|
|
28
|
+
legendData,
|
|
27
29
|
maxRange,
|
|
30
|
+
lineMaxRange,
|
|
31
|
+
barSize,
|
|
28
32
|
barChartHeight,
|
|
29
33
|
lineChartHeight,
|
|
30
|
-
showSecondBar,
|
|
31
34
|
isLineChartCurrency,
|
|
32
35
|
isLineChartBolded,
|
|
33
36
|
setLineChartTooltip,
|
|
34
37
|
isTopBarPercent,
|
|
38
|
+
showSecondBar,
|
|
35
39
|
showPeriod,
|
|
36
40
|
currencySignLine,
|
|
37
41
|
currencySign,
|
|
38
|
-
data,
|
|
39
|
-
totalsData,
|
|
40
|
-
legendData,
|
|
41
42
|
noDataText
|
|
42
43
|
} = props;
|
|
43
44
|
const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
|
|
@@ -217,7 +218,7 @@ const SingleBarLineCharts = props => {
|
|
|
217
218
|
type: "number",
|
|
218
219
|
width: 0,
|
|
219
220
|
display: "none",
|
|
220
|
-
domain: [
|
|
221
|
+
domain: [dataMin => dataMin / lineMaxRange, dataMax => dataMax * lineMaxRange],
|
|
221
222
|
allowDataOverflow: true
|
|
222
223
|
}), /*#__PURE__*/_react.default.createElement(_recharts.Line, {
|
|
223
224
|
type: "monotone",
|
|
@@ -291,9 +292,14 @@ exports.SingleBarLineCharts = SingleBarLineCharts;
|
|
|
291
292
|
var _default = exports.default = SingleBarLineCharts;
|
|
292
293
|
SingleBarLineCharts.defaultProps = {
|
|
293
294
|
className: '',
|
|
294
|
-
title: '',
|
|
295
295
|
width: '100%',
|
|
296
296
|
height: '100%',
|
|
297
|
+
title: '',
|
|
298
|
+
data: [],
|
|
299
|
+
totalsData: [],
|
|
300
|
+
legendData: [],
|
|
301
|
+
maxRange: 1,
|
|
302
|
+
lineMaxRange: 1,
|
|
297
303
|
barSize: 60,
|
|
298
304
|
barChartHeight: 250,
|
|
299
305
|
lineChartHeight: 50,
|
|
@@ -301,13 +307,9 @@ SingleBarLineCharts.defaultProps = {
|
|
|
301
307
|
isLineChartBolded: false,
|
|
302
308
|
setLineChartTooltip: false,
|
|
303
309
|
isTopBarPercent: true,
|
|
304
|
-
|
|
310
|
+
showSecondBar: true,
|
|
305
311
|
showPeriod: true,
|
|
306
312
|
currencySign: '€',
|
|
307
313
|
currencySignLine: '€',
|
|
308
|
-
showSecondBar: true,
|
|
309
|
-
data: [],
|
|
310
|
-
totalsData: [],
|
|
311
|
-
legendData: [],
|
|
312
314
|
noDataText: 'No data'
|
|
313
315
|
};
|