New to Kendo UI for Angular? Start a free 30-day trial
Adding Tooltips to Radial Gauge Pointers
Environment
Product | Progress® Kendo UI for Angular Gauges |
Description
How to display a tooltip when end users hover the Kendo UI for Angular Radial Gauge pointer?
Solution
To display a tooltip for the pointer of a Radial Gauge in Kendo UI for Angular, follow these steps:
-
Wrap the Kendo UI Radial Gauge component in the
kendoTooltip
directive.html<div kendoTooltip [tooltipTemplate]="template" filter="g path"> <kendo-radialgauge [pointer]="{ value: value }" [scale]="{ max: 50 }"> </kendo-radialgauge> </div>
-
Set a custom template for the tooltip using the
tooltipTemplate
property.html<ng-template #template let-anchor> <span>{{ value }}%</span> </ng-template>
The following example demonstrates the full implementation of the suggested approach.
Change Theme
Theme
Loading ...