@esfaenza/es-charts 13.1.4 → 13.1.5

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.
@@ -1213,7 +1213,7 @@ class LineChartService {
1213
1213
  series.strokeWidth = settings?.StrokeSize ?? 1;
1214
1214
  series.connect = !gapsAllowed;
1215
1215
  series.minBulletDistance = 10;
1216
- series.tooltipText = this.singleDataSet ? "" : "{name}: [bold]{valueY}[/]";
1216
+ series.tooltipText = this.singleDataSet ? "" : s.name ? "{name}: [bold]{valueY}[/]" : "[bold]{valueY}[/]";
1217
1217
  series.tooltip.pointerOrientation = "vertical";
1218
1218
  series.tooltip.background.fillOpacity = 0.5;
1219
1219
  series.tooltip.label.padding(12, 12, 12, 12);
@@ -1252,7 +1252,7 @@ class LineChartService {
1252
1252
  var text = "[bold]{dateX.formatDate()}[/]\n";
1253
1253
  this.ChartInstance.series.each((item) => {
1254
1254
  let uom = " [font-style: italic]" + series.dataFields.measureUnit || "" + "[/]";
1255
- text += "[" + item.stroke.hex + "]●[/] " + item.name + ": [bold]{" + item.dataFields.valueY + "}[/]" + uom + "\n";
1255
+ text += "[" + item.stroke.hex + "]●[/] " + (item.name ? (item.name + ": ") : "") + "[bold]{" + item.dataFields.valueY + "}[/]" + uom + "\n";
1256
1256
  });
1257
1257
  return text;
1258
1258
  });