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

260
Views
Apex Chart - How to target and style one specific grid line?

Does anyone has clue how to target specific grid line and style like in the example? I know how to dash line with:

grid: {
          strokeDashArray: 10,
        },

But how can I target grid line according to the tick value? Desired result

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

0

Only way you can do it is via css

.apexcharts-gridline:nth-child(2) {
  stroke-dasharray: 10;
}

Or use annotations instead https://apexcharts.com/docs/annotations/

about 4 years ago · Juan Pablo Isaza Report

0

I have sorted it by using annotations property. Here is an example:

// Breakdown line 
        annotations: {
            position: 'front',
            yaxis: [
                {
                    y: 3000,
                    strokeDashArray: 5,
                    label: {
                        position: 'left',
                        borderColor: 'transparent',
                        textAnchor: 'middle',
                        offsetY: -10,
                        offsetX: 50,
                        style: {
                            color: '#D0D4D9',
                            background: "transparent",
                        },
                        text: ''
                    }
                }
            ]
        }
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!