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

238
Vistas
How to show horizontal line instead of a dot for a single value data in highcharts

everyone, I am using highcharts to show graphs. Currently, for a single value, it is showing a dot in a graph as shown in a screenshot. Instead of a dot, I want a horizontal line parallel to the x-axis. Can anyone help me to solve this? Thank you.

enter image description here

Ref: https://jsfiddle.net/5syn3ko1/

Note: please copy and paste the URL in the browser for code sandbox. It is showing an error when I paste the link.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Instead of adding a series with single values, use plot lines:

    xAxis: {
        plotLines: [{
            value: 2010,
            color: 'blue'
        }],
        ...
    }

Live demo: https://jsfiddle.net/BlackLabel/3654z2yw/

API Reference: https://api.highcharts.com/highcharts/xAxis.plotLines

about 4 years ago · Juan Pablo Isaza Denunciar
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