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

161
Vistas
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 Respuestas
Responde la pregunta

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