Browse Source

UI: Refactoring

pull/13442/head
Artem Dzhereleiko 1 year ago
parent
commit
c53eadd924
  1. 6
      ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-tooltip.models.ts

6
ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-tooltip.models.ts

@ -130,11 +130,7 @@ export class TimeSeriesChartTooltip {
this.renderer.appendChild(tooltipItemsElement, this.constructTooltipDateElement(items[0].param, interval));
}
for (const item of items) {
if (this.settings.tooltipHideZeroFalse) {
if (item.param.value[1]) {
this.renderer.appendChild(tooltipItemsElement, this.constructTooltipSeriesElement(item));
}
} else {
if (!this.settings.tooltipHideZeroFalse || item.param.value[1]) {
this.renderer.appendChild(tooltipItemsElement, this.constructTooltipSeriesElement(item));
}
}

Loading…
Cancel
Save