I am using Syncfusion SfChart in my Xamarin Android project. I noticed that the LegendItemCreated event never fires. The Syncfusion.SfChart.Android.dll version is 17.3451.0.26. Please let me know on which version it works
HMHemalatha Marikumar Syncfusion Team December 3, 2019 06:43 AM
Greetings from Syncfusion.
Query: LegendItemCreated event never fires.
We have validated your query and we were unable to reproduce the reported issue even with 17.3451.0.26 and latest version 17.3451.0.29 also. We suspect that the reported issue may occur while not enabling the Legend visibility for SfChart. Please enable the Legend visibility as per the below code snippet.
Please let us know if you have any further assistance on this.
KHkhasanDecember 8, 2019 02:18 PM
Hi Hemalatha, thanks to this example, I understood why the event doesn't fire. if I subscribe after series being adding the event doesn't work but if I subscribe before adding series it works for example:
In the below example Chart_LegendItemCreated handler will not be called:
HMHemalatha Marikumar Syncfusion Team December 9, 2019 01:32 AM
Thanks for your update.
We glad to hear that you have found the solution.
We would like to let you know that currently we have maintained the flow of execution only invoke the LegendItemCreated before adding the series collection with having visibility of Legend as per in below