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

125
Views
chartjs y axis start from 0 if all values is zeros

i am using react-chartjs-2 v4.1.0 and chart.js v3.9.1

and i have this issue here

line chart image

how to force chartjs to start from 0 on y-axis?

(some additional info here)

my line chart options: enter image description here

almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You need to set min: 0 in the root of the y axis options object instead of it being nested inside of the ticks options

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