New to Kendo UI for AngularStart a free 30-day trial

Adding Tooltips to Radial Gauge Pointers

Environment

ProductProgress® 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:

  1. 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>
  2. 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 ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support