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

342
Views
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 answers
Answer question

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 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!