intelica-library-ui 0.1.106 → 0.1.107

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.
@@ -3450,10 +3450,14 @@ class EchartService {
3450
3450
  * @returns - Tooltip HTML string
3451
3451
  */
3452
3452
  getTooltipFormatter(color, title, body) {
3453
- return `
3454
- <div style="font-size: 12px; color: ${color}; border-radius: 6px; min-width: 120px; text-align: center;">
3453
+ const titleHtml = title.length > 0
3454
+ ? `
3455
3455
  <b style=" font-size: 13px;">${title} </b><br>
3456
- <hr style="border: 1px solid ${color}; margin: 4px 0;">
3456
+ <hr style="border: 1px solid ${color}; margin: 4px 0;">`
3457
+ : "";
3458
+ return `
3459
+ <div style="font-size: 12px; boder-color: ${color}; color: ${color}; border-radius: 6px; min-width: 120px; text-align: center;">
3460
+ ${titleHtml}
3457
3461
  ${body}
3458
3462
  </div>
3459
3463
  `;
@@ -3479,7 +3483,7 @@ class EchartService {
3479
3483
  name: item.name,
3480
3484
  itemStyle: { color: item.color },
3481
3485
  data: item.value,
3482
- barWidth: "25%",
3486
+ // barWidth: "33%",
3483
3487
  barGap: "0%",
3484
3488
  label: {
3485
3489
  show: true,
@@ -3513,8 +3517,8 @@ class EchartService {
3513
3517
  getBarChartStackOptions(categories, series, labelConfig, tooltipConfig, showLegend = false) {
3514
3518
  let barBase = this.getBarChartOptions(categories, series, labelConfig, tooltipConfig, showLegend);
3515
3519
  barBase.series.forEach((serie, index) => {
3516
- serie.barWidth = "50%";
3517
- serie.barGap = "0%";
3520
+ // serie.barWidth = "50%";
3521
+ // serie.barGap = "0%";
3518
3522
  serie.barCategoryGap = "10%";
3519
3523
  serie.stack = "total";
3520
3524
  if (index < series.length - 1) {
@@ -3561,8 +3565,8 @@ class EchartService {
3561
3565
  getBarChartHorizontalStackOptions(categories, series, labelConfig, tooltipConfig, showLegend = false) {
3562
3566
  let barBase = this.getBarChartHorizontalOptions(categories, series, labelConfig, tooltipConfig, showLegend);
3563
3567
  barBase.series.forEach((serie, index) => {
3564
- serie.barWidth = "50%";
3565
- serie.barGap = "0%";
3568
+ // serie.barWidth = "50%";
3569
+ // serie.barGap = "0%";
3566
3570
  serie.barCategoryGap = "10%";
3567
3571
  serie.stack = "total";
3568
3572
  if (serie.label) {
@@ -3608,7 +3612,7 @@ class EchartService {
3608
3612
  barBase.grid.containLabel = true;
3609
3613
  }
3610
3614
  barBase.series.forEach((serie, index) => {
3611
- serie.barWidth = "75%";
3615
+ // serie.barWidth = "75%";
3612
3616
  });
3613
3617
  return barBase;
3614
3618
  }