@esfaenza/es-charts 11.2.20 → 11.2.21

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.
@@ -1589,7 +1589,7 @@
1589
1589
  series.strokeWidth = (_b = settings === null || settings === void 0 ? void 0 : settings.StrokeSize) !== null && _b !== void 0 ? _b : 1;
1590
1590
  series.connect = !gapsAllowed;
1591
1591
  series.minBulletDistance = 10;
1592
- series.tooltipText = _this.singleDataSet ? "" : "{name}: [bold]{valueY}[/]";
1592
+ series.tooltipText = _this.singleDataSet ? "" : s.name ? "{name}: [bold]{valueY}[/]" : "[bold]{valueY}[/]";
1593
1593
  series.tooltip.pointerOrientation = "vertical";
1594
1594
  series.tooltip.background.fillOpacity = 0.5;
1595
1595
  series.tooltip.label.padding(12, 12, 12, 12);
@@ -1628,7 +1628,7 @@
1628
1628
  var text = "[bold]{dateX.formatDate()}[/]\n";
1629
1629
  _this.ChartInstance.series.each(function (item) {
1630
1630
  var uom = " [font-style: italic]" + series.dataFields.measureUnit || "" + "[/]";
1631
- text += "[" + item.stroke.hex + "]●[/] " + item.name + ": [bold]{" + item.dataFields.valueY + "}[/]" + uom + "\n";
1631
+ text += "[" + item.stroke.hex + "]●[/] " + (item.name ? (item.name + ": ") : "") + "[bold]{" + item.dataFields.valueY + "}[/]" + uom + "\n";
1632
1632
  });
1633
1633
  return text;
1634
1634
  });