@tetacom/ng-components 1.0.11 → 1.0.12
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/esm2020/component/chart/core/chart.mjs +3 -3
- package/esm2020/component/chart/drawer/spline-drawer.mjs +2 -1
- package/fesm2015/tetacom-ng-components.mjs +3 -2
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +3 -2
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10098,6 +10098,7 @@ class SplineDrawer {
|
|
|
10098
10098
|
const path = d3
|
|
10099
10099
|
.line()
|
|
10100
10100
|
.curve(d3.curveCatmullRom)
|
|
10101
|
+
.defined((d) => d.x != null && d.y != null)
|
|
10101
10102
|
.x((d) => scaleX(d.x))
|
|
10102
10103
|
.y((d) => scaleY(d.y));
|
|
10103
10104
|
context
|
|
@@ -11379,7 +11380,7 @@ class TetaChart {
|
|
|
11379
11380
|
color: d.color,
|
|
11380
11381
|
name: d.name,
|
|
11381
11382
|
});
|
|
11382
|
-
return `translate(${!isNaN(data?.x) ? foundX(data.x) : -10}, ${!isNaN(data?.y) ? foundY(data.y) : -10})`;
|
|
11383
|
+
return `translate(${!isNaN(data?.x) && data?.x != null ? foundX(data.x) : -10}, ${!isNaN(data?.y) && data?.y != null ? foundY(data.y) : -10})`;
|
|
11383
11384
|
}
|
|
11384
11385
|
if (this._options.tooltip.tracking === 'y') {
|
|
11385
11386
|
const sorted = [...d.data].sort((a, b) => d3.ascending(a.y, b.y));
|
|
@@ -11392,7 +11393,7 @@ class TetaChart {
|
|
|
11392
11393
|
color: d.color,
|
|
11393
11394
|
name: d.name,
|
|
11394
11395
|
});
|
|
11395
|
-
return `translate(${foundX(data.x)}, ${foundY(data.y)})`;
|
|
11396
|
+
return `translate(${!isNaN(data?.x) && data?.x != null ? foundX(data.x) : -10}, ${!isNaN(data?.y) && data?.y != null ? foundY(data.y) : -10})`;
|
|
11396
11397
|
}
|
|
11397
11398
|
});
|
|
11398
11399
|
if (this._options.tooltip?.format) {
|