Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

136
Vistas
Google charts repeating hAxis

Is it possible to use ticks with a month name? All the examples I have seen are using years or a number so not sure if it is possible. Basically the graph is repeating the month names like JAN JAN JAN FEB FEB FEB where I just want it to show JAN FEB

google.charts.setOnLoadCallback(drawChart);

function drawChart() {
  var data = google.visualization.arrayToDataTable([
        ['Month', '2012', '2013', '2014'],
        ['JAN', 3991, 3910, 3820],
        ['JAN', 4316, 4335, 4104],
        ['JAN', 4478, 4439, 4284],
        ['JAN', 4518, 4385, 4213],
        ['FEB', 4496, 4422, 4291],
        ['FEB', 4525, 4503, 4311],
        ['FEB', 4486, 4433, 4323],
        ['FEB', 4441, 4449, 4304],
        ['MAR', 4470, 4383, 4296],
        ['MAR', 4453, 4463, 4413],
        ['MAR', 4462, 4499, 4342],
        ['MAR', 4353, 4491, 4278],
        ['MAR', 4435, 3912, 4154],
        // more data....

    ]);


  var options = {
      legend: {
          position: 'bottom'
      },
      hAxis: {
          textStyle: {
              color: 'red',
          }
      },
  };

  var chart = new google.visualization.LineChart(document.getElementById('chart'));
  chart.draw(data, options);

}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda