@progress/kendo-charts 2.11.1-develop.2 → 2.11.1

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.
@@ -511,7 +511,7 @@ class Chart {
511
511
  });
512
512
  } else {
513
513
  this._categoryHighlight.fill(highlightOptions.color, highlightOptions.opacity);
514
- this._categoryHighlight.stroke(highlightOptions.border || null);
514
+ this._categoryHighlight.options.set('stroke', highlightOptions.border || null);
515
515
  }
516
516
 
517
517
  const slot = categoryAxis.getSlot(index);
@@ -545,10 +545,9 @@ class Chart {
545
545
 
546
546
  _categoryHighlightEnabled() {
547
547
  const plotArea = this._plotArea;
548
- const categoryAxis = plotArea.categoryAxis || {};
549
- const highlightOptions = (categoryAxis.options || {}).highlight;
550
548
 
551
- return plotArea instanceof CategoricalPlotArea && highlightOptions && highlightOptions.visible;
549
+ return plotArea instanceof CategoricalPlotArea && [].concat(this.options.categoryAxis || {})
550
+ .some(categoryAxis => categoryAxis.highlight && categoryAxis.highlight.visible);
552
551
  }
553
552
 
554
553
  _sharedTooltip() {
@@ -511,7 +511,7 @@ class Chart {
511
511
  });
512
512
  } else {
513
513
  this._categoryHighlight.fill(highlightOptions.color, highlightOptions.opacity);
514
- this._categoryHighlight.stroke(highlightOptions.border || null);
514
+ this._categoryHighlight.options.set('stroke', highlightOptions.border || null);
515
515
  }
516
516
 
517
517
  const slot = categoryAxis.getSlot(index);
@@ -545,10 +545,9 @@ class Chart {
545
545
 
546
546
  _categoryHighlightEnabled() {
547
547
  const plotArea = this._plotArea;
548
- const categoryAxis = plotArea.categoryAxis || {};
549
- const highlightOptions = (categoryAxis.options || {}).highlight;
550
548
 
551
- return plotArea instanceof CategoricalPlotArea && highlightOptions && highlightOptions.visible;
549
+ return plotArea instanceof CategoricalPlotArea && [].concat(this.options.categoryAxis || {})
550
+ .some(categoryAxis => categoryAxis.highlight && categoryAxis.highlight.visible);
552
551
  }
553
552
 
554
553
  _sharedTooltip() {