@progress/kendo-charts 2.6.0 → 2.6.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.
@@ -137,8 +137,8 @@ var Chart = (function (Class) {
137
137
 
138
138
  Chart.prototype._hasSeriesData = function _hasSeriesData () {
139
139
  var series = this.options.series || [];
140
- var result = series.length > 0 && series.every(function (x) { return x.data && x.data.length > 0; });
141
- return result;
140
+ var hasData = series.length > 0 && series.some(function (x) { return x.data && x.data.length > 0; });
141
+ return hasData;
142
142
  };
143
143
 
144
144
  Chart.prototype._initTheme = function _initTheme (options, themeOptions) {
@@ -128,8 +128,8 @@ class Chart extends Class {
128
128
 
129
129
  _hasSeriesData() {
130
130
  const series = this.options.series || [];
131
- const result = series.length > 0 && series.every(x => x.data && x.data.length > 0);
132
- return result;
131
+ const hasData = series.length > 0 && series.some(x => x.data && x.data.length > 0);
132
+ return hasData;
133
133
  }
134
134
 
135
135
  _initTheme(options, themeOptions) {