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

156
Views
Agregue un color separado a la columna seleccionada del gráfico de columnas de Google

Estoy pasando selectedUser como un parámetro para esta función. Este gráfico se genera dinámicamente en función del valor de los datos que se pasan a esta función. Quiero agregar un color separado a la columna que se selecciona de un menú desplegable que se asignará al parámetro usuario seleccionado. No puedo pasar el índice de la matriz también.

 function drawAccountBarChart(data,selectedUser){ var arr = [["Accounts","Account Percentage"]]; for(i=0;i<data.length;i++){ arr.push([data[i].map.ACCOUNT,data[i].map.ACCOUNT_EOL_PER]); } var data = google.visualization.arrayToDataTable(arr); var options = { title: 'Accounts Percentage', isStacked : false, explorer: { axis: 'horizontal' }, colors: ['#00a1de'], }; var chart = new google.visualization.ColumnChart(document.getElementById('accountsBar')); chart.draw(data, options); }
about 4 years ago · Juan Pablo Isaza
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!