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

168
Vistas
Counting empty periods in DateAxis amchart

How can I count empty periods in DateAxis in amchart? I need to change height of conteiner based on that value and data.lenght. Or how can I set min thickness of date column? And I hope that whole height will stretch out to be more visible. Amchart 4

So I want this

To look like this

This is the part of code where I need that count of empty periods in order to calculate height of parent element.

var cellSize = 50;
this.chart.events.on("datavalidated", function(ev) {
    var chart = ev.target;
    var dateAxis = chart.yAxes.getIndex(0);
    var adjustHeight = chart.data.length * cellSize - dateAxis.pixelHeight;
    var targetHeight = chart.pixelHeight + adjustHeight;
    if(targetHeight < 600) targetHeight = 600;
    this.$refs.chartdiv.parentElement.style.height = targetHeight + "px";
}.bind(this));
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