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

139
Views
Google charts javascript: columna apilada, color transparente

Aquí está el gráfico apilado que tengo, me gustaría poder cambiar el color de la sesión (aquí rojo) en transparente. ¿Tendrías una idea? Gracias.

ingrese la descripción de la imagen aquí

Y aquí está mi código:

 var data = google.visualization.arrayToDataTable(my_data); var options = { title: 'S-Score', colors: ['red', '#70a1c0'], width: 700, height: 400, chartArea: { width: "60%" }, fontSize: 14, legend: { position: 'right' }, bar: { groupWidth: '75%' }, isStacked: true }; var chart = new google.visualization.ColumnChart(document.getElementById('E_chart'));
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

puede usar 'transparent' como nombre del color, aquí...

 colors: ['transparent', '#70a1c0'],

ver siguiente fragmento de trabajo...

 google.charts.load('current', { packages: ['corechart'] }).then(function () { var data = google.visualization.arrayToDataTable([ ['x', 'white', 'colored'], ['E', 0, 4], ['S', 4, 3], ['G', 7, 3], ['E', 10, 6], ['Score', 0, 16] ]); var options = { title: 'S-Score', colors: ['transparent', '#70a1c0'], width: 700, height: 400, chartArea: { width: "60%" }, fontSize: 14, legend: { position: 'right' }, bar: { groupWidth: '75%' }, isStacked: true }; var chart = new google.visualization.ColumnChart(document.getElementById('E_chart')); chart.draw(data, options); });
 <script src="https://www.gstatic.com/charts/loader.js"></script> <div id="E_chart"></div>

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!