sag_components 1.0.756 → 1.0.757
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.
|
@@ -78,18 +78,22 @@ const TotalHorizontalCharts = props => {
|
|
|
78
78
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
79
79
|
onMouseEnter: () => handleMouseEnter(payload.value),
|
|
80
80
|
onMouseLeave: handleMouseLeave
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
82
|
-
|
|
81
|
+
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
82
|
+
style: {
|
|
83
|
+
whiteSpace: 'nowrap'
|
|
84
|
+
},
|
|
85
|
+
width: "15px",
|
|
83
86
|
height: height,
|
|
84
87
|
x: 20,
|
|
85
88
|
y: y,
|
|
86
89
|
fontSize: 10,
|
|
87
90
|
orientation: orientation,
|
|
88
91
|
stroke: stroke,
|
|
89
|
-
textAnchor: "start"
|
|
90
|
-
verticalAnchor
|
|
92
|
+
textAnchor: "start"
|
|
93
|
+
// verticalAnchor="middle"
|
|
94
|
+
,
|
|
91
95
|
fill: fill
|
|
92
|
-
}, payload.value.length >
|
|
96
|
+
}, payload.value.length > 11 ? "".concat(payload.value.slice(0, 11), "...") : payload.value));
|
|
93
97
|
}
|
|
94
98
|
return null;
|
|
95
99
|
}
|
|
@@ -115,13 +119,14 @@ const TotalHorizontalCharts = props => {
|
|
|
115
119
|
height: heightChartContainer - 10,
|
|
116
120
|
width: widthChartContainer
|
|
117
121
|
}, /*#__PURE__*/_react.default.createElement(_recharts.ComposedChart, {
|
|
122
|
+
width: widthChartContainer * 0.4,
|
|
118
123
|
layout: "vertical",
|
|
119
124
|
data: chartsData,
|
|
120
125
|
margin: {
|
|
121
126
|
top: 10,
|
|
122
127
|
right: 10,
|
|
123
128
|
bottom: 50,
|
|
124
|
-
left:
|
|
129
|
+
left: 10
|
|
125
130
|
}
|
|
126
131
|
}, /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
|
|
127
132
|
type: "number",
|
|
@@ -131,8 +136,10 @@ const TotalHorizontalCharts = props => {
|
|
|
131
136
|
}), /*#__PURE__*/_react.default.createElement(_recharts.YAxis, {
|
|
132
137
|
dataKey: "name",
|
|
133
138
|
type: "category",
|
|
134
|
-
|
|
139
|
+
width: widthChartContainer * 0.3,
|
|
135
140
|
tickLine: false,
|
|
141
|
+
interval: 0,
|
|
142
|
+
allowDataOverflow: true,
|
|
136
143
|
axisLine: false
|
|
137
144
|
// tick={{ fontSize: 12 }}
|
|
138
145
|
,
|
|
@@ -11,7 +11,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
11
11
|
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
12
|
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif; \n color: ", ";\n width: ", ";\n height: ", ";\n background-color: white;\n display: flex;\n flex-direction: column;\n .top {\n text-align: center;\n white-space: normal;\n &:before {\n display: none;\n }\n }\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
13
13
|
const ChartWrapper = exports.ChartWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n width: 100%;\n ", "\n"])), scrollableStyles);
|
|
14
|
-
const ChartInner = exports.ChartInner = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n min-height: 120%;\n width:
|
|
14
|
+
const ChartInner = exports.ChartInner = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n min-height: 120%;\n width: 90%;\n"])));
|
|
15
15
|
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n padding: 16px;\n"])));
|
|
16
16
|
const Header = exports.Header = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)([""])));
|
|
17
17
|
const Title = exports.Title = _styledComponents.default.h4(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 20px;\n font-weight: 400;\n line-height: 1;\n margin: 0 0 8px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|