Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda