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

[Question]: addEventlistener() for AreaChart in angular #1953

Open
krava11i opened this issue Feb 4, 2025 · 0 comments
Open

[Question]: addEventlistener() for AreaChart in angular #1953

krava11i opened this issue Feb 4, 2025 · 0 comments

Comments

@krava11i
Copy link

krava11i commented Feb 4, 2025

Question

I want to use area charts in angular. I also want to implement a server side zoom (I don't want to zoom the current dataset with the chart zoom). I thought I could achieve this by selecting an x-axis area of the chart by adding EventListeners. When I try to run the following code according to the example I found in #771 nothing happens and no new EventListener appears.

Is there something I overlook about the EventListener or is there a better way to achieve this?

chart.services.events.addEventListener(
    "scatter-click",
    () => {
        console.log("clicked on area-chart");
    } 
);
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

1 participant