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

341
Vistas
Highcharts not showing value when two stacked columns have value = 1

I'm trying to show numbers in my Highcharts stacked columns. I have this issue that can be seen in my left column. When there are two small numbers together only one is shown.

This issue didn't happen with big numbers.

I've tried this so far:

  • yAxis logarithmic and min: 0:

         yAxis: {
         min: 0,
         AxisTypeValue:'logarithmic',
         title: {
             text: 'Texto Cantidad'
         },
         stackLabels: {
             enabled: false,
             style: {
                 fontWeight: 'bold',
                 color: ( // theme
                     Highcharts.defaultOptions.title.style &&
                     Highcharts.defaultOptions.title.style.color
                 ) || 'gray'
             }
         }
     },
    
  • This is my PlotOptions

         plotOptions: {
         column: {
             grouping: false,
             stacking: 'normal',
             dataLabels: {
                 enabled: true,
                 formatter: function(){
                     var val = this.y;
                     if (val < 1) {
                         return '';
                     }
                     return val;
                 }
             }
         }    
     },
    
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The issue is caused by default anti-overlap behaviour for data labels. To display both data labels enable the allowOverlap option.

    plotOptions: {
        column: {
            ...,
            dataLabels: {
                allowOverlap: true,
                ...
            }
        }
    }

Live demo: http://jsfiddle.net/BlackLabel/k4vojwea/

API Reference: https://api.highcharts.com/highcharts/series.column.dataLabels.allowOverlap

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