Hi Syncfusion,
In LinearGaugeComponent, we use PointerDirective to display each data points on the component.
Is there a way to show a customised tooltip with the PointerDirective? Enabling tooltip option in LinearGaugeComponent did not allow for customised tooltip with customised content. Any help would be deeply appreciated. Thank you.
Regards,
Eddy
|
<LinearGaugeComponent
tooltip={{
enable: true,
template: '<div style="width: 90px;background: rgba(53, 63, 76, 0.90); opacity: 90%;background: rgba(53, 63, 76, 0.90);box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.40);padding-bottom: 10px;padding-top: 10px;padding-left: 10px;padding-right: 10px;border: 1px #abb9c6; color:white"> pointer : ${value} <div>',
}}
>
<Inject services={[GaugeTooltip]} />
//..
</LinearGaugeComponent> |
Hi Indumathi R.,
If I do not want to use the ${value} from the pointer but rather from my own data to replace the ${value}, is it possible? Thank you.
Regards.
Eddy
|
tooltipRender(args) {
//..
args.content = '100';
//..
} |
Ok, thank you! I will check it out!