简体   繁体   中英

How the define the y-axis as time of the day in kusto?

Is there a way to plot a scatter chart of traces having an x-axis as day and a y-axis as a time of a day (breaking the trace timestamp into date part and time part)?

Essentially what I want to achieve is a chart showing me at what time of a day specific traces are written.

You can use hourofday and dayofmonth functions to split the date and render a scatter chart.

Here's a short example:

Run query

datatable (t: datetime) [
    "2020-10-01 05:00:00",
    "2020-10-01 06:00:00",
    "2020-10-02 06:00:00",
    "2020-10-02 07:00:00",
]
| extend Day = dayofmonth(t), hourofday(t)
| render scatterchart 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM