@centreon/ui 26.5.1 → 26.5.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "26.5.1",
3
+ "version": "26.5.2",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -95,6 +95,14 @@ const StackLines = ({
95
95
  ? transparency || 80
96
96
  : style.areaTransparency;
97
97
 
98
+ const linePartStack = stack.map((stackValue, index) => {
99
+ if (isNil(timeSeries[index][metric_id])) {
100
+ return [stackValue[0], null];
101
+ }
102
+
103
+ return stackValue;
104
+ });
105
+
98
106
  return (
99
107
  <g key={`stack-${prop('key', stack)}`}>
100
108
  {displayAnchor && (
@@ -140,6 +148,16 @@ const StackLines = ({
140
148
  })
141
149
  }
142
150
  opacity={highlight === false ? 0.3 : 1}
151
+ stroke="none"
152
+ />
153
+ <Shape.LinePath
154
+ curve={curveType}
155
+ data={linePartStack}
156
+ defined={(d) => {
157
+ return !isNil(d[1]);
158
+ }}
159
+ fill="none"
160
+ opacity={highlight === false ? 0.3 : 1}
143
161
  stroke={lineColor}
144
162
  strokeDasharray={getStrokeDashArray({
145
163
  dashLength: style?.dashLength,
@@ -152,6 +170,8 @@ const StackLines = ({
152
170
  ? Math.ceil(formattedLineWidth * 1.3)
153
171
  : formattedLineWidth
154
172
  }
173
+ x={(d) => xScale(getTime(d.data)) ?? 0}
174
+ y={(d) => yScale(d[1]) ?? 0}
155
175
  />
156
176
  </g>
157
177
  );