Applies to: ✅Microsoft Fabric✅Azure Data Explorer✅Azure Monitor✅Microsoft Sentinel
시간 차트 시각적 개체는 꺾은선형 그래프 유형입니다. 쿼리의 첫 번째 열은 x축이며 datetime이어야 합니다. 다른 숫자 열은 y축입니다. 하나의 문자열 열 값을 사용하여 숫자 열을 그룹화하고 차트에서 여러 선을 만듭니다. 다른 문자열 열은 무시됩니다. The time chart visual is like a line chart except the x-axis is always time.
Note
This visualization can only be used in the context of the render operator.
Syntax
T|rendertimechart [with(propertyName=propertyValue [, ...])]
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| T | string |
✔️ | 입력 테이블 이름입니다. |
| propertyName, propertyValue | string |
키-값 속성 쌍의 쉼표로 구분된 목록입니다. See supported properties. |
Supported properties
모든 속성은 선택 사항입니다.
| PropertyName | PropertyValue |
|---|---|
accumulate |
각 측정값의 값이 모든 선행 작업(true 또는 false)에 추가되는지 여부입니다. |
legend |
범례 표시 여부(visible 또는 hidden)입니다. |
series |
레코드가 속한 계열을 정의하는 결합된 레코드당 값이 있는 열의 쉼표로 구분된 목록입니다. |
ymin |
Y축에 표시할 최소값입니다. |
ymax |
Y축에 표시할 최대값입니다. |
title |
시각화의 제목(형식 string)입니다. |
xaxis |
x축의 크기를 조정하는 방법입니다(linear 또는 log). |
xcolumn |
x축에 사용되는 결과의 열입니다. |
xtitle |
x축의 제목입니다(string 형식). |
yaxis |
y축의 크기를 조정하는 방법입니다(linear 또는 log). |
ycolumns |
x 열 값당 제공된 값으로 구성된 쉼표로 구분된 열 목록입니다. |
ysplit |
시각화를 여러 y축 값으로 분할하는 방법입니다. 자세한 내용은 속성을 참조 ysplit 하세요. |
ytitle |
y축의 제목입니다(string 형식). |
ysplit 속성
이 시각화는 여러 y축 값으로 분할을 지원합니다.
ysplit |
Description |
|---|---|
none |
모든 계열 데이터에 대해 단일 y축이 표시됩니다. (Default) |
axes |
단일 차트가 여러 y축으로 표시됩니다(계열당 하나씩). |
panels |
각 ycolumn 값에 대해 하나의 차트가 렌더링됩니다. 최대 5개의 패널. |
Examples
이 섹션의 예제에서는 구문을 사용하여 시작하는 방법을 보여 주었습니다.
The examples in this article use publicly available tables in the help cluster, such as the
StormEventstable in the Samples database.
The examples in this article use publicly available tables, such as the
Weathertable in the Weather analytics sample gallery. 작업 영역의 테이블과 일치하도록 예제 쿼리에서 테이블 이름을 수정해야 할 수 있습니다.
시간 차트 렌더링
다음 예제에서는 제목이 "웹앱"인 시간 차트를 렌더링합니다. 데이터를 기준, 계절, 추세 및 잔차 구성 요소로 분해하는 "한 달 동안의 트래픽, 분해".
let min_t = datetime(2017-01-05);
let max_t = datetime(2017-02-03 22:00);
let dt = 2h;
demo_make_series2
| make-series num=avg(num) on TimeStamp from min_t to max_t step dt by sid
| where sid == 'TS1' // select a single time series for a cleaner visualization
| extend (baseline, seasonal, trend, residual) = series_decompose(num, -1, 'linefit') // decomposition of a set of time series to seasonal, trend, residual, and baseline (seasonal+trend)
| render timechart with(title='Web app. traffic over a month, decomposition')
시간 차트에 레이블 지정
다음 예제에서는 주별로 그룹화된 자르기 손상을 보여 주는 시간 차트를 렌더링합니다. timechart x 축 레이블은 "Date"이고 y축 레이블은 "자르기 손상"입니다.
StormEvents
| where StartTime between (datetime(2007-01-01) .. datetime(2007-12-31))
and DamageCrops > 0
| summarize EventCount = count() by bin(StartTime, 7d)
| render timechart
with (
title="Crop damage over time",
xtitle="Date",
ytitle="Crop damage",
legend=hidden
)
여러 y축 보기
다음 예제에서는 텍사스, 네브래스카 및 캔자스 주에서 매일 우박 이벤트를 렌더링합니다. 시각화는 ysplit 속성을 사용하여 각 상태의 이벤트를 별도의 패널에 렌더링하여 비교합니다.
StormEvents
| where State in ("TEXAS", "NEBRASKA", "KANSAS") and EventType == "Hail"
| summarize count() by State, bin(StartTime, 1d)
| render timechart with (ysplit=panels)
Related content
Supported properties
모든 속성은 선택 사항입니다.
| PropertyName | PropertyValue |
|---|---|
series |
레코드가 속한 계열을 정의하는 결합된 레코드당 값이 있는 열의 쉼표로 구분된 목록입니다. |
title |
시각화의 제목(형식 string)입니다. |
Example
다음 예제에서는 제목이 "웹앱"인 시간 차트를 렌더링합니다. 데이터를 기준, 계절, 추세 및 잔차 구성 요소로 분해하는 "한 달 동안의 트래픽, 분해".
let min_t = datetime(2017-01-05);
let max_t = datetime(2017-02-03 22:00);
let dt = 2h;
demo_make_series2
| make-series num=avg(num) on TimeStamp from min_t to max_t step dt by sid
| where sid == 'TS1' // select a single time series for a cleaner visualization
| extend (baseline, seasonal, trend, residual) = series_decompose(num, -1, 'linefit') // decomposition of a set of time series to seasonal, trend, residual, and baseline (seasonal+trend)
| render timechart with(title='Web app. traffic of a month, decomposition')