Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda