SfChart - Add custom string to Tooltip

Hi there,

I want to add a custom string which should be displayed in the header:


Any idea?

Cheers,
Volker

1 Reply 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team June 15, 2021 11:46 AM UTC

Hi Volker, 

Greetings from Syncfusion. 

We request you to use TooltipMappingName property to bind and display data for tooltip from dataSource. We have prepared sample based on your requirement and attached for your reference. 

Code Snippet :  

<SfChart> 
    <ChartTooltipSettings Header="${point.tooltip}"></ChartTooltipSettings>     
    <ChartSeriesCollection> 
        <ChartSeries TooltipMappingName="Header"></ChartSeries> 
    </ChartSeriesCollection> 
</SfChart> 

Screenshot : 

 


Kindly revert us if you have any concerns. 

Regards,  
Durga G

Marked as answer
Loader.
Up arrow icon