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

160
Vistas
using scaleLinear or timeScale and mapping between two arrays in domain

So I have a complete dataset and within this data, I have two columns of the data which are temporal - and formatted in this manner 'YYYY-MM-DD'. So what I want to do is create a scale between these two points and another scale, a little bit like below (num is a value set elsewhere).

   var scale =  d3.scaleTime()
                  .domain([d.start, d.end])
                  .range([0, num]);

What would be the right code to do this? Both 'd.start' and 'd.end' have multiple instances and I would perhaps want to loop this for each line? This is so it can be used to provide a value for drawing lines representing the data.

about 4 years ago · Juan Pablo Isaza
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