Where have StockChartEvents events TooltipRender and SharedTooltipRender gone?

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



8 Replies

DG Durga Gopalakrishnan Syncfusion Team June 16, 2022 02:27 PM UTC

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>@code{public void SharedTooltipEvent(SharedTooltipRenderEventArgs args)

    {

        // 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.


Attachment: TooltipEvents_cff1adf1.zip


AL Alex July 13, 2022 02:09 PM UTC

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



DG Durga Gopalakrishnan Syncfusion Team July 15, 2022 02:16 PM UTC

Hi Alex,

We have considered your reported scenario as bug and logged a defect report for this issue. This fix will be available in our weekly patch release which is scheduled to be rolled out on 26th
July 2022. We appreciate your patience until then. You can keep track of the bug from the below feedback link.


If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.

Regards,
Durga Gopalakrishnan.


AL Alex July 26, 2022 01:14 PM UTC

Hi,

Did this get included in this weeks release (20.2.40)?  I can't see any mention in the release notes.

Thanks,

Alex



DG Durga Gopalakrishnan Syncfusion Team July 27, 2022 04:06 PM UTC

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.



DG Durga Gopalakrishnan Syncfusion Team August 11, 2022 03:38 PM UTC

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.



AL Alex August 23, 2022 04:08 PM UTC

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") };

        }




DG Durga Gopalakrishnan Syncfusion Team August 24, 2022 03:06 PM UTC

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.


Loader.
Up arrow icon