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

138
Views
Chartjs year markings

When I make a Chartjs table the background is a plain square pattern. What I would like is to be able to mark the transition from one year to the next with a bolder vertical line at every new year.

In the below example chart, I have 12 quarters. I would like to have a line appear between the Q1s and Q4s. Is this possible?

chart_code = new Chart(ctx, {
type: 'line',
data: {
  labels: ['Q1 15','Q2 15','Q3 15','Q4 15','Q1 16','Q2 16','Q3 16','Q4 16','Q1 17','Q2 17','Q3 17','Q4 17'],
  datasets: [{
    label: 'Teststatistic',
    data: [50,40,30,20,50,20,10,10,10,40,30,80],
    backgroundColor: ['rgba(0, 105, 146, 1)'],
    borderColor: ['rgba(0, 105, 146, 1)'],
    borderWidth: 3,
    fill: false,
    pointStyle: 'rect',
    pointRadius: 5
  }]
},
options: {
  responsive: false,
  plugins: {
    legend: {
      display: false,
      boxWidth: 80,
      boxHeight: 80
    }
  },
  scales: {
    x: { 
      ticks: {
        maxRotation: 0, 
        minRotation: 0
      } 
    }
  }
}
about 4 years ago · Juan Pablo Isaza
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!