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

218
Views
El gráfico de líneas de Google cambia el color por variación de valor

Estoy usando el gráfico de líneas de Google. Quiero cambiar el cambio de color del gráfico por la variación de ticks de vAxis. Por ejemplo...

case 1 : 0 <= value <= 20 , color: azul (por supuesto, se ingresará el código RGB)
case 1 : 20 <= value <= 40 , color: verde
case 1 : 40 <= value <= 60 , color: amarillo
case 1 : 60 <= value <= 80 , color: naranja
case 1 : 80 <= value <= 100 , color: rojo

 function drawGChart(data, color, id) { var options = { animation:{ duration: 600, }, curveType: 'function', fontSize: 11, hAxis: { textStyle: { fontSize: 11 } }, legend: { position: 'none' }, series: { 0: { color: color }, } }; var chart = new google.visualization.LineChart(document.getElementById(id)); chart.draw(data, options); }

el formulario de datos es ["series de tiempo", "valor"]. ¿Hay alguna opción que me pueda ayudar? O, ¿debería usar otra biblioteca de gráficos?

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!