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

110
Vistas
How to create a tooltip for axis labels in highcharter in R?

I am trying to create a highcharter graph that allows for a user to hover over the y-axis labels and have a tooltip show up with some information.

I have found this highcharts example in jsfiddle http://jsfiddle.net/W5wag/2/ that demonstrates what I am trying to do.

Here is a very basic example of what I am trying to do in R using highcharter but it isn't working:

  mtcars %>%
    hchart('scatter', hcaes(x = mpg, y = wt)) %>% 
    hc_xAxis(
      labels = list(
        enabled = TRUE,
        formatter = JS("function(){
          return '<span title='My custom title'>' + this.value + '</span>';
        }"
        )
      )
    )

Can anybody shed some light on what I am doing wrong?

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