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

111
Views
how to add directive to d3 library in angular

i trying to add a perfectScrollBar directive to d3 library doing something like this

svg.attr('perfectScrollBar', '')

bit its not working. can anyone please give me example how u add directive in d3 library?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

mb it helps someone. I found another solution

use new PerfectScrollBar after your div container is initialized

in my case i add it when mouse entered this container

//'this' is html div container, scrollbar is a variable to have possibility update 
//PerfectScrollBar
    function onMouseEnter() {
                    if (!scrollBar) {
                        scrollBar = new PerfectScrollbar(this, {
                            wheelPropagation: false
                        });
                    } else {
                        scrollBar.update();
                    }
                }
about 4 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 Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!