Line chart onlegendclick event not firing and tootltip hover not working. Drop-down value change events working.

Notes:

  • attached code works fine in a SF Blazor Essentials server-side template project.
  • attached code does not work properly in my project.
  • tested with version 19.2.0.59.
I have an existing server-side Blazor project to which I have added the attached razor page. The line chart doesn't trigger any events. Tooltips don't display and the OnLegendReneder and OnLegendClick events do not fire. The mouse pointer does change to the hand when I hover over the legend.

The check-box and drop-down list value change events on the adjacent properties panel do fire.

Do you have any guidance or ideas on what could be causing this behaviour? I understand that it is something in my project that must be causing this, but I'm not sure where to start looking for the cause.

Many thanks


Attachment: test_dashboard_a9dc98a5.7z


3 Replies

DG Durga Gopalakrishnan Syncfusion Team September 1, 2021 03:46 PM UTC

Hi David, 

Greetings from Syncfusion. 

We have analyzed your reported queries. Please check with the below suggestions. 

# 1 : Tooltips don't display and the OnLegendClick event does not fire. The mouse pointer does change to the hand when I hover over the legend 

We request you to kindly include the lodash script in the HEAD element of the ~/Pages/_Host.cshtml page for server side blazor application. In case, if you are using WASM application, include it in the HEAD element of the ~/wwwroot/index.html page for user interaction. 
 
<head> 
</head> 

 


 

# 2 : The check-box and drop-down list value change events on the adjacent properties panel do fire 
 
We request you to add the ValueChange method for selection mode drop down list to view the changes while choosing the drop down values. Since selection is not enabled in attached sample, we have included that and ensured. Please check with above attached sample. 

Kindly revert us if you have any concerns. 

Regards, 
Durga G


DB David B October 6, 2021 09:35 AM UTC

Both of the suggested changes worked perfectly and fixed the problem, thank you.



DG Durga Gopalakrishnan Syncfusion Team October 7, 2021 06:47 AM UTC

Hi David, 

Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you. 

Regards, 
Durga G 


Loader.
Up arrow icon