Hi Jaish,
Thank you for contacting Syncfusion support.
We can render different HTML content in the tooltip of the Linear Gauge component using “TooltipTemplate” in the “LinearGaugeTooltipSettings” class. The current value of the pointer can be displayed in the pointer using “context” object in the template. We can achieve your requirement using Grid and Linear Gauge components. Please find the code snippet for the same below.
Code Snippet:
<LinearGaugeTooltipSettings Type='new string[] { "Pointer" }' Enable="true">
<TooltipTemplate>
@{
var dataNumber = (context as SparklineGridData).id;
<div style="border-radius:2px; border:1px solid blue">
Value: @dataNumber
</div>
}
</TooltipTemplate>
</LinearGaugeTooltipSettings> |
Note: The “context” object holds the value from the data source used in the Grid component.
We have created a sample application with Grid and Linear Gauge components. It can be downloaded from the below link.
Please let us know that the above sample meets your requirement. If not, please provide us more details about your requirement. It will be helpful for us to analyze and assist you further.
Regards,
Sabari Anand.