Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Fusion 차트 함수

chart. 네임스페이스로 셀 안에 막대 또는 선 차트를 만들 수 있습니다. x_values와 y_values는 각각 1차원 셀 범위 또는 배열이어야 하며 숫자, 날짜, timestamp 또는 문자열을 포함할 수 있습니다.

막대 차트

chart.bar(x_values: any, y_values: any, [options: any, ...]): barplot

X 값에 대응하는 Y 값을 막대로 표시합니다.

=chart.bar(A1:A4, B1:B4)
옵션값
drawLabelsBoolean
orientationhorizontal 또는 vertical

선 차트

chart.line(x_values: any, y_values: any, [options: any, ...]): lineplot

X 값에 대응하는 Y 값을 선으로 표시합니다. 시간에 따른 변화를 그릴 때는 X 입력에 날짜 또는 timestamp 범위를 사용합니다.

=chart.line(A1:A4, B1:B4)
옵션값
dataMarkersBoolean
colorString

옵션 구성

chart.options([key: string, value: any, ...]): options

옵션 이름과 값의 쌍을 반복하여 차트 옵션을 만듭니다. 다음 예시는 선 차트의 점 표시를 켭니다.

=chart.line(A1:A4, B1:B4, chart.options('dataMarkers', true))

여러 시리즈를 하나의 차트로

chart.chart([Plots-or-options: any, ...]): chart

여러 플롯과 옵션을 받아 하나의 차트로 표시합니다.

옵션값
showAxesBoolean
showLegendBoolean
showResetZoomButtonBoolean
showToolbarBoolean
tooltipfalse, closest 또는 aggregate
yAxisInsetBoolean
rangeSelectionselect, visual 또는 false
height픽셀 단위 Number
width픽셀 단위 Number

다음 예시는 같은 X 범위에 두 선을 표시하고 범례를 켭니다. A열은 X, B열과 C열은 각각의 Y 값입니다.

=chart.chart(
  chart.line(A1:A4, B1:B4),
  chart.line(A1:A4, C1:C4),
  chart.options('showLegend', true, 'height', 240, 'width', 480)
)