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

268
Views
Cómo mover marcas de verificación sobre el eje x en Chart.js

Estoy trabajando en un gráfico en Chart.js y mi eje x se ve así: ingrese la descripción de la imagen aquí

Ya revisé la documentación y GitHub y no parece posible realinear la etiqueta del extremo izquierdo a la derecha y la etiqueta del extremo derecho a la izquierda un poco. Sin embargo, me pregunto si es posible que las marcas de verificación suban desde el eje x en lugar de bajar.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

No creo que esto sea posible en Chart.js a partir de ahora.

about 4 years ago · Santiago Trujillo Report

0

Puede usar la opción de mirror en las marcas así:

 const options = { type: 'line', data: { labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], datasets: [{ label: '# of Votes', data: [12, 19, 3, 5, 2, 3], borderWidth: 1 }, { label: '# of Points', data: [7, 11, 5, 8, 3, 7], borderWidth: 1 } ] }, options: { scales: { x: { ticks: { mirror: true } } } } } const ctx = document.getElementById('chartJSContainer').getContext('2d'); new Chart(ctx, options);
 <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.8.0/chart.js"></script> <body> <canvas id="chartJSContainer" width="600" height="400"></canvas> </body>

about 4 years ago · Santiago Trujillo 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!