Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda