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

226
Views
I want to show decimal values on my y axis but my chart doesn't show data how can i fix it?

This is my chart code my x axis value correct but y axis value is not working

 <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>

and this is my chart,

debugged value is correct but they does not on my chart

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

0

The problem is ',' on the y-axis value, change it to '.'

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!