How can I set X-axis time domain with 24hours?

I want to make my vega-light graph x-axis starts from 0:00 to 24:00 below.

I was trying to add a code like this, but it doesn't work successfully.
Is there any tips?

    "x": {
     .
     .
     .
      "scale":{
       "type":"time",
       "domain":[{"hours":0}, {"hours":23}]
}

I finally succeeded to show my graph what I wanted.

This is where I changed my code.

"domain":[{"hours":0}, {"hours":23}]
↓
"domain":[{"hours":1}, {"hours":24}]

But the time of 24:00 is not able to show, I guess?

1 Like

Hi @m-amano,

Thanks for sharing the solution. If a question is not directly related to our training material, it may take our group a bit longer to respond. A tip for next time: you can try to post the question in the most relevant group, in this case, I think the Kibana group would have made more sense. Thank you. :slight_smile:

1 Like

@Elvis_Saravia
Thank you for your reply and tips for related group to post this type of question.

I would share my latest code again, because I could show 01:00 to 00:00 on x-axis.

"format": "%H:%M:%S""format": "%H:%M"

1 Like

I moved the question to #kibana

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.