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

137
Visualizações
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
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