@progress/kendo-charts 1.33.0-dev.202311220942 → 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.
@@ -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) {
@@ -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) {