logitude-dashboard-library 3.2.5 → 3.2.6

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.
@@ -977,9 +977,10 @@ function buildStackedDataSet(seriesMeasures, widget) {
977
977
  var emptylabels = dataSet.filter(function (e) {
978
978
  return e.seriesName == null;
979
979
  });
980
- dataSet = widget.SecondaryDateGroupCode ? sortDataSet(dataSet.filter(function (e) {
980
+ var filledLabels = dataSet.filter(function (e) {
981
981
  return e.seriesName != null;
982
- }), widget.SecondaryDateGroupCode) : dataSet;
982
+ });
983
+ dataSet = widget.SecondaryDateGroupCode ? sortDataSet(filledLabels, widget.SecondaryDateGroupCode) : filledLabels;
983
984
  return emptylabels.concat(dataSet);
984
985
  }
985
986