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

166
Views
El gráfico de barras de Google no muestra una sola barra horizontal cuando el valor es de millones

Barchart no muestra un solo elemento de barra cuando el valor es de millones. Puede ver este fragmento de código a continuación en jsFiddle aquí https://jsfiddle.net/mharri117/zwycshvm/187/

Código HTML

 <script src="https://www.gstatic.com/charts/loader.js"></script> <div id="barChart"/>

código JavaScript

 google.charts.load('current', {packages: ['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('string'); data.addColumn('number'); data.addColumn({ 'type': 'string', 'role': 'style' }); data.addRows([ ['name1',3442222,'color: #fcba03'],// This will not show the bar //['name2',34422,'color: #fcba03'],// uncomment this line and comment out line 11 and everything works fine ]); // Instantiate and draw the chart. var chart = new google.visualization.BarChart(document.getElementById('barChart')); chart.draw(data, null); }
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!