@centreon/ui 23.10.117 → 23.10.118

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": "23.10.117",
3
+ "version": "23.10.118",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -34,6 +34,8 @@ import { useIntersection } from './useLineChartIntersection';
34
34
  import { CurveType } from './BasicComponents/Lines/models';
35
35
  import Thresholds from './BasicComponents/Thresholds';
36
36
 
37
+ const extraMargin = 10;
38
+
37
39
  interface Props extends LineChartProps {
38
40
  curve: CurveType;
39
41
  graphData: Data;
@@ -92,7 +94,8 @@ const LineChart = ({
92
94
  showTooltip: showThresholdTooltip
93
95
  } = Tooltip.useTooltip();
94
96
 
95
- const graphWidth = width > 0 ? width - margin.left - margin.right : 0;
97
+ const graphWidth =
98
+ width > 0 ? width - margin.left - margin.right - extraMargin : 0;
96
99
  const graphHeight =
97
100
  (height || 0) > 0
98
101
  ? (height || 0) -
@@ -185,7 +188,7 @@ const LineChart = ({
185
188
  width={width}
186
189
  />
187
190
  <svg height={graphHeight + margin.top} ref={graphSvgRef} width="100%">
188
- <Group.Group left={margin.left} top={margin.top}>
191
+ <Group.Group left={margin.left + extraMargin / 2} top={margin.top}>
189
192
  <Grids
190
193
  height={graphHeight - margin.top}
191
194
  leftScale={leftScale}