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

201
Vistas
How to color a specific bar in a bar chart onclick using fusioncharts

I built a bar chart using fusion charts and I figured out how to use the dataPlotClick function. Now I would like to set a colour to specific bars that the user clicks on and I searched multiple sources; however, it seems that this is something not common.

Can someone provide me with some help on how I can set a colour to the bar that the user clicks on?

This is my code

var myChart = new FusionCharts({
type: "column2d",
renderAt: "chart-container",
width: "100%",
height: "100%",
dataFormat: "json",
dataSource: dataSourceMyChart,
events:{
  dataPlotClick: function(e) {
        var infoElem = document.getElementById("infolbl");
        var index = e.data.dataIndex;
     }
  }
}).render();
about 4 years ago · Juan Pablo Isaza
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