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

100
Views
How to change style on zoom event

I want to change chart by another chart on zoom event in Angular, I am trying to give one of the charts "display: none" on zoom event. following code print "It works" in console on zoom event ->

chart.chartContainer.events.on("wheel", change);

function change(visibility: any){
    console.log("It works")
    }

However, I want to change style of one of the chart's and make its display none. I tried following ->

component.html

<div class="div" [ngStyle]="{'display' : visibility}" id="chartWhichIWantToHide"></div>
<div class="div" id="chart"></div>

component.ts

export class MapComponent implements OnInit {

  constructor() { }

  visibility = "flex"

  ngOnInit(): void {....

I want to make "visibility" none when change function runs (it is located in chart's function)->

function hello(visibility: any){
      visibility = "none"
    }
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!