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

224
Views
Quiero mostrar valores decimales en mi eje y, pero mi gráfico no muestra datos, ¿cómo puedo solucionarlo?

Este es mi código de gráfico, mi valor del eje x es correcto pero el valor del eje y no funciona

 <script> const config = { type: 'line', data: { datasets: [{ data: <%=lineData%> }] }, options: { scales: { yAxes: [{ ticks: { beginAtZero: true, stepSize: 2 } }] } } }; </script> <script> const myChart = new Chart( document.getElementById('myChart'), config ); </script>

y este es mi gráfico,

el valor depurado es correcto pero no está en mi gráfico

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

0

El problema es ',' en el valor del eje y, cámbielo a '.'

 data: [{x: 17.05.2022 19:44:47, y: 28.28}]
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!