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

233
Views
Error al girar la etiqueta del eje x en el gráfico js

Estoy tratando de truncar la etiqueta del eje x en chart.js pero obtengo un error (value.substr no es una función) y no sé cómo resolverlo. También utilicé la función getLabelForValue pero sigo recibiendo un error... ¿alguien puede ayudarme? aquí está mi código

 const gridConfig = { display: false, borderWidth: 0, } const xAxis = { barPercentage: 0.4, ticks: { callback:function(value){ return value.substr(0,6) }, color: '#313640', padding: 9, font: { size: 12, weight: 600 } }, grid:gridConfig, }; const timeManagmentData = { labels: MeetingsAdjusted, datasets: [{ barThickness: 10, borderRadius: 100, backgroundColor: gradientBg2, borderColor: gradientBg2, label: 'Meetings Score', data: avgAnswerFeedback, }] } const timeManagmentConfig = { type: 'bar', data: timeManagmentData, options: { scales: { y: { ticks: yAxisTicks_stepSize20, grid:gridConfig }, x: xAxis, }, plugins: { tooltip, legend, }, animation, }, } const myChart = new Chart( ctx3, timeManagmentConfig, );
about 4 years ago · Santiago Gelvez
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!