Help with time format in deneb visual

Hi,

I’ve been attempting to recreate this visual on my dataset.

with help of this video: https://www.youtube.com/watch?v=FlzlSozY3VE

I am using the Interval Column from my time table :

My time interval isnt appearing in correct format. Looks like a utc format

this is the code i have written so far. - Please can you guide me on how to get this time format corrected ?

{
  "data": {"name": "dataset"},
  "vconcat": [
    {
      "hconcat": [
        {
          "name": "Main matrix",
          "mark": {"type": "rect"},
          "encoding": {
            "x": {
              "field": "LOB",
              "sort": null
            },
            "y": {
              "timeunit": "hoursminutes",
              "field": "Interval",
              "type":"ordinal"
              
            }
          }
        },
        {
          "name": "Marginal bars (row)",
          "mark": {"type": "bar"},
          "encoding": {
            "y": {
              "timeunit": "hoursminutes",
              "field": "Interval",
              "type":"ordinal",
              "axis": null
            }
          }
        }
      ]
    },
    {
      "hconcat": [
        {
          "name": "Marginal bars(col)",
          "mark": {"type": "bar"},
          "encoding": {
            "x": {
              "field": "LOB",
              "sort": null,
              "axis": null
            }
          }
        }
      ]
    }
  ]
}

and these are the errors i have :

Hi @jsodhi. Daniel’s is the best video to use for sure, so the best start, however he’s using a text field for Hours AM/PM where yours is a date/time. You’ll need to format your date/time value appropriately, perhaps using one of either the Power BI formatting provided by Deneb

or the built-in Vega-Lite formatting

Give one of these a shot, and if you still have questions, upload a sample PBIX to reduce the workload on the forum members who respond.
Greg

This link may also help:

Greg

Awesome.

Thank you for your quick response and refering me these links. Ill read the links and attempt to fix it. Will get back here for help if it still doesnt work.

Thank you again.

Hello @jsodhi

Did the response from @Greg help solve your query?

If not, can you let us know where you’re stuck and what additional assistance you need?

If it did, please mark his answer as the SOLUTION.

Thank you

Hey Greg,

Thank you . I found my solution on this link, that you shared:

This is the code i used and i’ve got the time appearign in correct format.

"y": {
              "timeUnit": "hoursminutes",
              "field":"Interval",
              "type": "Ordinal",
              "title": "time"
              
            }

Thank you agian for pointing me in correct direction