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

168
Views
React: react-google-charts timeline: displaying two different formats on the same axis

Right now I'm trying to update an hourly timeline chart to use the following horizontal axis format:

  • For the tick at the left side of the chart, or for any ticks where the date changes, use the format "EE HH:mm" (display day and time)
  • Otherwise, just use the format "HH:mm" (just display time)

I've looked on stack overflow and at the google tutorials and have been unable to find any examples on how to do this. Does anybody know how to use two different formats on the same axis?

Here's the current Chart object:

<Chart
      width="100%"
      chartType="Timeline"
      loader={<div>Loading Chart ...</div>}
      data={[metaData, ...passes]}
      options={{
        title: "timeline chart", 
        height: ch*41+100,
        hAxis: {
          format: "EE HH:mm",
          minValue: min,
          maxValue: max,
        }
      }}
    />

How can I have different formats for different ticks on the chart's horizontal axis?

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!