Hi
In v19.4.0.53 you added events TooltipRender and SharedTooltipRender now they appear to have disappeared? I couldn't see anything in the release notes about where they have gone, is there anythin
Thanks,
Alex
Hi Alex,
We have ensured both TooltipRender and SharedTooltipRender events in latest version 20.1.0.60; event is triggered properly. We have not yet removed those events from chart. Please check with the below documentation and sample.
<SfChart> <ChartEvents TooltipRender="TooltipEvent" SharedTooltipRender="SharedTooltipEvent"></ChartEvents> </SfChart> { // Here, you can customize your code. Console.WriteLine("SharedTooltipEvent Triggered"); } public void TooltipEvent(TooltipRenderEventArgs args) { // Here, you can customize your code. } } |
UG :
Please revert us if you have any other concerns.
Regards,
Durga Gopalakrishnan.
Hi,
You are looking at the wrong chart, I am referring to StockChart not Chart. There are no TooltipRender SharedTooltipRender properties or events in version 20.1.0.58
Alex
Hi,
Did this get included in this weeks release (20.2.40)? I can't see any mention in the release notes.
Thanks,
Alex
Hi Alex,
We are glad to announce that our v20.2.0.40 patch release is rolled out; we have added the fix for reported issue. You can use the latest Syncfusion.Blazor.Charts NuGet package.
NuGet Package : https://www.nuget.org/packages/Syncfusion.Blazor.Charts/
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Durga Gopalakrishnan.
Hi Alex,
We have changed the stock chart TooltipRender and SharedTooltipRender events to TooltipRendering and SharedTooltipRendering in latest version. We have prepared sample based on that. Please check with below snippet and sample.
|
<SfStockChart> <StockChartEvents TooltipRendering="TooltipEvent" SharedTooltipRendering="SharedTooltipEvent"></StockChartEvents> </SfStockChart> @code{ public void TooltipEvent(TooltipRenderEventArgs args) { // Here, you can customize your code. } public void SharedTooltipEvent(SharedTooltipRenderEventArgs args) { // Here, you can customize your code. } } |
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/StockEvent753537540.zip
Kindly revert us if you have any concerns.
Regards,
Durga Gopalakrishnan.
Hi, how do you display any text? We previously used the code below, but no tooltip is displayed?
private void SharedTooltipEvent(SharedTooltipRenderEventArgs args)
{
var index = Convert.ToInt32(args.Data.ElementAt(0).PointIndex);
var dataPoint = dataSource.ElementAt(index);
args.Text = new List<string>() {
"High X: " + dataPoint.high.ToString("C6"),
"Open X: " + dataPoint.open.ToString("C6"),
"Filled: " + dataPoint.close.ToString("C6"),
"Unfilled: " + dataPoint.low.ToString("C6"),
"Volume (KwH) : " + dataPoint.volume.ToString("F1") };
}
Hi Alex,
We have ensured your reported scenario attached snippet; stock chart shared tooltip text is displayed as per customized text. We have attached the tested sample and screenshot for your reference.
|
<SfStockChart> <StockChartEvents SharedTooltipRendering="SharedTooltipEvent"></StockChartEvents> </SfStockChart> @code{ public void SharedTooltipEvent(SharedTooltipRenderEventArgs args) {
var index = Convert.ToInt32(args.Data.ElementAt(0).PointIndex); var dataPoint = Data.ElementAt(index); args.Text = new List<string>() { "High X: " + dataPoint.high.ToString("C6"), "Open X: " + dataPoint.open.ToString("C6"), "Filled: " + dataPoint.close.ToString("C6"), "Unfilled: " + dataPoint.low.ToString("C6"), "Volume (KwH) : " + dataPoint.volume.ToString("F1") }; } } |
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/CustomTooltip1253909005.zip
Please specify in which scenario you have faced the problem; kindly share the replication steps or issue reproduced sample to validate this case further from our end.
Regards,
Durga Gopalakrishnan.