Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Input,
OnChanges,
QueryList,
TemplateRef,
ViewChild,
ViewChildren
} from '@angular/core';
Expand Down Expand Up @@ -48,9 +49,10 @@ import {
[ngClass]="{ 'hide-last-divider': this.nearMaxValue }"
[style.background]="segment.color"
[style.width.%]="segment.percentage"
htTooltip="{{ segment.label }} : {{ segment.value | htDisplayNumber }}"
[htTooltip]="this.segmentsTooltip ? this.segmentsTooltip : plainTooltip"
>
<div class="divider"></div>
<ng-template #plainTooltip> {{ segment.label }} : {{ segment.value | htDisplayNumber }} </ng-template>
</div>
</div>
</div>
Expand Down Expand Up @@ -89,6 +91,9 @@ export class BarGaugeComponent implements OnChanges, AfterViewInit {
@Input()
public segments?: Segment[] = [];

@Input()
public segmentsTooltip?: TemplateRef<Segment>;

@Input()
public isOverMaxBorderActive: boolean = true;

Expand Down