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

162
Views
Disabling highcharts stacked bar's highlight

I'm trying to use Highcharts stacked bar graph. I have two series to create the effect of fading like the picture below.

stacked bar

But when I use stacked bar, it highlights both of the series, like this. bar chart using highcharts

What I'm trying to do is disabling highlight, so I can get the fading effect I want. So far I tried disabling with hover enable:false and inactive:true but nothing worked... By the way when I only use one series, I can disable it with both options. Here is my files.

var options = {
    chart: {
        renderTo: 'graph',
        type: 'bar',
        styledMode: true,
    },
    
    title: {
        text: ''
    },
    
    xAxis: { //actually y axis adds more variable in y axis
        categories: ['Lisansüstü', 'Lisans', 'Önlisans']
    },
    
    yAxis: {
        title: {
            text: ''
        },
        labels: {
            overflow: 'justify'
        },
    },
    
    tooltip:{
        enabled: false
    },
    
    credits: {
        enabled: false
    },
    
    plotOptions:{
        series:{
            stacking: 'normal',
            states: {
                hover: {
                  enabled: false,
                }
              }
        }
    },
   
    series: [{
        name: '',
        data: [5, 3, 4]
      }, {
        name: '',
        data: [2, 2, 3]
      },
]

};


var chart1 = new Highcharts.Chart(options);
  .highcharts-color-0 {
    fill: rgba(10, 89, 114, 0.5);
  }
   .highcharts-color-1 {
    fill: rgba(10, 89, 114, 0.2);
  }
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="graph" style="width:100%; height:100%;"></div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

    plotOptions:{
    series:{
        stacking: 'normal',
        enableMouseTracking: false,
    }
},

After I searched so long, 3 minutes after posting this question solved the problem... This works fine!!

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!