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

92
Views
Alter values of xAxis in chartjs

I'm trying to make a logarithmic chart, and here the full example of what I tried:

https://codesandbox.io/s/friendly-frog-qnqvii?file=/App.tsx:346-357

What I still need is to display the xAxis with a step of 2 like in this chart:

enter image description here

Please notice that the max value of the chart grid is '26' and not '24' and the min value is 10 instead of 12.

How can I acheive this ?

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

0

This should work

...
  scales: {
    x: {
      type: "logarithmic",
      min: 12,
      max: 24
    },
...
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!