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

232
Views
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 answers
Answer question

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 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!