Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Able to use Chart Events #553

Open
Sudheesh-TalentzQ opened this issue Dec 2, 2024 · 3 comments
Open

Not Able to use Chart Events #553

Sudheesh-TalentzQ opened this issue Dec 2, 2024 · 3 comments

Comments

@Sudheesh-TalentzQ
Copy link

chart: {
events: {
mouseMove: undefined,
mouseLeave: undefined,
}
}
i need to use this option so i tried the below way

Chart = new Chart
               {
                   Toolbar = new Toolbar
                   {
                       Show = false
                   },
                   Events = new 
                   {
                       DataPointMouseEnter = @"function(event, chartContext, config) {
var chartElement = document.getElementById(config.globals.dom.baseEl.id);
if (chartElement) chartElement.classList.add('cursor-pointer');
}",
                       DataPointMouseLeave = @"function(event, chartContext, config) {
var chartElement = document.getElementById(config.globals.dom.baseEl.id);
if (chartElement) chartElement.classList.remove('cursor-pointer');
}"
                   }
               } 

in the apex chart option but im not able to get Events = new Events
Anyone knows how to?

@Sudheesh-TalentzQ
Copy link
Author

Sudheesh-TalentzQ commented Dec 2, 2024

I want to make sure people know that its clickable so i need to change the mouse to a hand that's it

@joadan
Copy link
Member

joadan commented Dec 2, 2024

Hi, have you checked the sample, https://apexcharts.github.io/Blazor-ApexCharts/events/mouse-hover

@Sudheesh-TalentzQ
Copy link
Author

Hi, have you checked the sample, https://apexcharts.github.io/Blazor-ApexCharts/events/mouse-hover

Yes, I'm using a funnel and i have given onclick but still no change in mouse hover ... In the sample you provide there is no code as well to make it show so i think this only work in Line chart but not in Funnel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants