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

188
Views
Why is the line chart not showing correctly with Chartist?

I have a dynamically populated line chart with time-series data. If I don't add the divisor, it adds every time period in the x-axis. But when I define a divisor, the auto-generated x-axis ticks are some kind of defaults because they're not using my dates at all:

With divisor: Chart with divisor

Without divisor: Chart without divisor

My options:

  const chartOptions = {
    chartPadding: 0,
    height: 300,
    showArea: true,
    
    axisX: {
      showGrid: false,
      type: Chartist.FixedScaleAxis,
      divisor: 10,
      labelInterpolationFnc: function (value) {
        return new Date(value).toLocaleDateString('en-GB', {
          month: 'short',
          year: 'numeric',
        })
      }

    },

    fullWidth: true,

  }
about 4 years ago · Juan Pablo Isaza
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!