igniteui-webcomponents-charts 4.3.0 → 4.3.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.
@@ -557,10 +557,12 @@ export let DataChartToolbarProvider = /*@__PURE__*/ (() => {
557
557
  this.af(a, b, "ShowLastValueLabel", 6, () => {
558
558
  for (let c of fromEnum(a.series)) {
559
559
  let d = c.ag();
560
- for (let f = 0; f < d.length; f++) {
561
- let e = d[f];
562
- if (e.ci) {
563
- e.ct = true;
560
+ if (d != null) {
561
+ for (let f = 0; f < d.length; f++) {
562
+ let e = d[f];
563
+ if (e.ci) {
564
+ e.ct = true;
565
+ }
564
566
  }
565
567
  }
566
568
  }
@@ -37,9 +37,9 @@ export let SortingTrendLineManager = /*@__PURE__*/ (() => {
37
37
  if (this.c(b)) {
38
38
  this.d.clear();
39
39
  this.a = TrendFitCalculator.a(j, b, g, this.a, c.count, (k) => (k + 1), (k) => c.item(k), (k) => {
40
- let l = truncate(Math.floor(k));
41
- let m = truncate(Math.ceil(k));
42
- let n = k - l;
40
+ let l = truncate(Math.floor(k - 1));
41
+ let m = truncate(Math.ceil(k - 1));
42
+ let n = (k - 1) - l;
43
43
  let o;
44
44
  if (m <= i) {
45
45
  o = this.h(l) + n * (this.h(m) - this.h(l));
@@ -48,7 +48,7 @@ export let SortingTrendLineManager = /*@__PURE__*/ (() => {
48
48
  o = this.h(l) + n * (this.h(truncate(i)) - this.h(l));
49
49
  }
50
50
  return e(o);
51
- }, f, h, i);
51
+ }, f, h + 1, i + 1);
52
52
  }
53
53
  if (this.b(b)) {
54
54
  this.a = null;