• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

193
Views
How can I add event in apex chart js?

I am developing an vertical bar chart using apex chart. But I can't set specific with to single bars and How can I add event handler to this. Suppose when click on one button, it will show one type of data, when click on another button, it will show one type of data.image to using apex chart

I tried to develop a dynamic bar chart and I am expecting to make it dynamic according to selected event

almost 3 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to add the chart object in the options object which has the events you want to capture like the following:

   chart: {
      events: {
         click: function (event, chartContext, config) {
          console.log('mouse move');
        }
    }

For more details about the events: https://apexcharts.com/docs/options/chart/events/

almost 3 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error