Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

83
Views
On click and hover effects are not working

I apply the same code on two different environments - work's project and sandbox environment. All hover effects (like tooltip) and on click events doesn't work on work environment.

I've contacted support and the conclusion was that something in my work env is maybe blocking those events.

anychart.onDocumentReady(function() {
// create line chart
var chart = anychart.line();

// set chart title
chart.title('Top 10 Cosmetic Products by Revenue');

var data = [
  ['day1', 50, 100, 85],
  [`day1`, 55, 105, 90],
  [`day1`, 60, 100, 95],
  [`day2`, 70, 100, 70],
  [`day2`, 60, 115, 75],
  [`day3`, 65, 110, 85],
  [`day4`, 50, 105, 80],
]

var dataset = anychart.data.set(data)

var set1 = dataset.mapAs({ x: 0, value: 1 })
var set2 = dataset.mapAs({ x: 0, value: 2 })
var set3 = dataset.mapAs({ x: 0, value: 3 })

// set chart data
chart.line(set1)
chart.line(set2)
chart.line(set3)

// set container id for the chart
chart.container('cont');

// initiate chart drawing
chart.draw();

My env is .NET5 MVC application (with razor pages). Does anyone have any idea what can block those events?

EDIT: Found the problem. I had styles.css file that had

svg > g > g:last-child { pointer-events: none }

Problem solved.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!