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

211
Views
How to customise step line chart in Highchart?

enter image description here

I know it is weird but I want to customize step line chart like horizontal step is thicker and vertical step is thinner, is there any way to achieve this?

Thanks in advance

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can render other lines in the same positions as the horizontal ones. Please check the below solution:

    chart: {
        events: {
            render: function() {
                const points = this.series[0].points;

                points.forEach(point => {
                    const nextPoint = points[point.index + 1];
                    if (nextPoint) {
                        const d = [
                            'M',
                            point.plotX + this.plotLeft - 1,
                            point.plotY + this.plotTop,
                            'L',
                            nextPoint.plotX + this.plotLeft + 1,
                            point.plotY + this.plotTop
                        ];

                        if (point.customPath) {
                            point.customPath.attr({
                                d
                            });
                        } else {
                            point.customPath = this.renderer
                                .path([])
                                .attr({
                                    d,
                                    stroke: 'red',
                                    'stroke-width': 7
                                })
                                .add();
                        }
                    }
                });
            }
        }
    }

Live demo: http://jsfiddle.net/BlackLabel/wc5zrax9/

API Reference: https://api.highcharts.com/class-reference/Highcharts.SVGRenderer#path

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!