@progress/kendo-charts 1.33.0-dev.202311200833 → 1.33.0-dev.202311231237

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.
@@ -468,8 +468,10 @@ var PlotAreaBase = (function (ChartElement) {
468
468
  }
469
469
  }
470
470
 
471
- if (i !== 0 && yAnchor.pane === axis.pane) {
472
- axis.alignTo(yAnchor);
471
+ // Locate pane anchor, if any, and align the axis to it
472
+ var paneYAnchor = paneAnchor(yAxes, pane) || yAnchor;
473
+ if (paneYAnchor !== axis) {
474
+ axis.alignTo(paneYAnchor);
473
475
  axis.reflow(axis.box);
474
476
  }
475
477
  }
@@ -271,8 +271,9 @@ function defaultBaseUnit(options) {
271
271
  var category = categories[categoryIx];
272
272
 
273
273
  if (category && lastCategory) {
274
- var diff = absoluteDateDiff(category, lastCategory);
275
- if (diff > 0) {
274
+ var diff = Math.abs(absoluteDateDiff(category, lastCategory));
275
+
276
+ if (diff !== 0) {
276
277
  minDiff = Math.min(minDiff, diff);
277
278
 
278
279
  if (minDiff >= TIME_PER_YEAR) {
@@ -449,8 +449,10 @@ class PlotAreaBase extends ChartElement {
449
449
  }
450
450
  }
451
451
 
452
- if (i !== 0 && yAnchor.pane === axis.pane) {
453
- axis.alignTo(yAnchor);
452
+ // Locate pane anchor, if any, and align the axis to it
453
+ const paneYAnchor = paneAnchor(yAxes, pane) || yAnchor;
454
+ if (paneYAnchor !== axis) {
455
+ axis.alignTo(paneYAnchor);
454
456
  axis.reflow(axis.box);
455
457
  }
456
458
  }
@@ -270,8 +270,9 @@ function defaultBaseUnit(options) {
270
270
  const category = categories[categoryIx];
271
271
 
272
272
  if (category && lastCategory) {
273
- const diff = absoluteDateDiff(category, lastCategory);
274
- if (diff > 0) {
273
+ let diff = Math.abs(absoluteDateDiff(category, lastCategory));
274
+
275
+ if (diff !== 0) {
275
276
  minDiff = Math.min(minDiff, diff);
276
277
 
277
278
  if (minDiff >= TIME_PER_YEAR) {