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

165
Views
Etiquetas del eje X con decimal extra... aumentar el paso a 1

Necesito ayuda con el gráfico de líneas... Proporciono la etiqueta del eje h como 15,16,17,18 pero en el gráfico trazado también obtengo 15,5, 16,5... ¿¿Cómo eliminarlo??? También usé max: 4 en hAxis... sigue siendo el mismo problema... También probé tickInterval: 1 pero luego el gráfico no muestra nada.

 <script> google.charts.load('current', {'packages':['line']}); google.charts.setOnLoadCallback(drawChart); var val = {{valuess | tojson}} var tags = {{labelss | tojson}} var week_ranges = {{week_range | tojson}} console.log(week_ranges) function drawChart() { var data = new google.visualization.DataTable(); for (i = 0; i < tags.length; i++){ data.addColumn('number', tags[i]); } data.addRows(val); var options = { chart: { title: 'Incoming Tag Trends For Resolver Group : {{rg}}', subtitle: 'Year - {{year}} Start Week - {{sweek}} End Week - {{eweek}}' }, width: 900, height: 500, hAxis : { viewWindow: { min: 1, max: week_ranges.length }, ticks: week_ranges } }; var chart = new google.charts.Line(document.getElementById('curve_chart')); chart.draw(data, google.charts.Line.convertOptions(options)); } </script>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

puede usar la opción de configuración de format para especificar el formato de número de los ticks...

 hAxis : { viewWindow: { min: 1, max: week_ranges.length }, ticks: week_ranges, format: '#,##0' }
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!