BoxPlot

권장

- 권장 필드 구성: 1개 지표, 1개 차원

- 데이터 리셰이프 지원: 최소 1개 지표, 0개 차원

인코딩 매핑

상자 수염 차트는 다음 시각 채널을 지원합니다:

xAxis : X축 채널이며 여러 차원을 지원하고 차원 값을 기준으로 X축에 매핑합니다

yAxis : Y축 채널이며 여러 지표를 지원하고 지표 값을 기준으로 Y축에 매핑합니다

color : 색상 채널이며 여러 차원 또는 하나의 지표를 지원합니다. 차원 색상은 데이터 시리즈를 구분하고, 지표 색상은 값을 마크 색상으로 선형 매핑합니다

tooltip: 툴팁 채널이며 여러 차원여러 지표를 지원하고 데이터 포인트에 마우스를 올리면 표시됩니다

label : 라벨 채널이며 여러 차원여러 지표를 지원하고 데이터 포인트에 데이터 라벨을 표시합니다

설명

상자 수염 차트는 데이터 분포를 표시하는 데 적합합니다. X축은 카테고리 축(범주형 데이터), Y축은 숫자 축(연속 데이터)이며 상자는 세로로 배치됩니다.

적용 시나리오:

- 데이터 항목 이름이 짧은 경우

- 서로 다른 카테고리의 수치 크기를 직관적으로 비교해야 하는 경우

- 시계열 데이터 변화 추세를 표시하는 경우

Warning

데이터 요구 사항:

- 최소 1개 숫자 필드(지표)

- 첫 번째 차원은 X축에 배치됩니다. 나머지 차원은 여러 지표가 있을 때 지표 이름과 병합되어 범례 항목으로 표시됩니다.

- 모든 지표는 자동으로 하나의 지표로 병합됩니다

기본으로 활성화되는 기능:

- 범례, 축, 데이터 라벨, 툴팁이 기본으로 활성화됩니다.

chartType

Type: "boxPlot"

설명

상자 수염 차트는 데이터 분포를 표시하는 데 적합합니다. X축은 카테고리 축(범주형 데이터), Y축은 숫자 축(연속 데이터)이며 상자는 세로로 배치됩니다.

예시 'boxPlot'

dataset

Type: Record[]

설명

TidyData 규격을 따르는 집계된 데이터셋으로, 차트의 데이터 소스와 구조를 정의합니다. 사용자가 입력한 데이터셋은 별도 전처리가 필요 없습니다. VSeed는 강력한 데이터 리셰이프 기능을 갖추고 있어 데이터 재구성을 자동으로 수행하며, 상자 수염 차트 데이터는 최종적으로 2개의 차원과 1개의 지표로 변환됩니다.

예시 [{category:'A', value:100}, {category:'B', value:200}]

dimensions

Type: BoxPlotDimension[] | undefined

설명

상자 수염 차트의 첫 번째 차원은 X축에 매핑됩니다. 나머지 차원은 여러 지표가 있을 때 지표 이름과 병합되어 범례 항목으로 표시됩니다.

예시 [{id: "category", alias: "Category"}]

id

Type: string

설명

차원에 대응하는 필드 ID

alias

Type: string | undefined

설명

차원 별칭

timeFormat

Type: TimeFormat | undefined

설명

차원 날짜 형식 설정

type

Type: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second"

설명

시간 단위, 날짜 표시 정밀도를 결정합니다

encoding

Type: "xAxis" | "color" | "tooltip" | "label" | "row" | "column" | undefined

설명

차원이 매핑되는 채널

- xAxis: 여러 차원을 X축에 매핑할 수 있습니다

- color: 여러 차원을 색상 채널에 매핑할 수 있습니다

- tooltip: 여러 차원을 tooltip 채널에 매핑할 수 있습니다

- label: 여러 차원을 label 채널에 매핑할 수 있습니다

- row: 여러 차원을 행 채널에 매핑할 수 있습니다

- column: 여러 차원을 열 채널에 매핑할 수 있습니다

measures

Type: BoxPlotMeasure[] | undefined

설명

상자 수염 차트의 모든 지표는 자동으로 하나의 지표로 병합되어 Y축에 매핑됩니다. 여러 지표가 있는 경우 지표 이름은 나머지 차원과 병합되어 범례 항목으로 표시됩니다.

예시 [{id: "value", alias: "Value"}]

id

Type: string

설명

지표 ID이며 중복될 수 없습니다

alias

Type: string | undefined

설명

Measure 별칭, 중복을 허용합니다. 설정하지 않으면 alias 는 id 입니다

autoFormat

Type: boolean | undefined

설명

자동 숫자 형식화, 기본적으로 활성화되며 우선순위가 가장 높습니다

autoFormat=true이면 모든 numFormat 설정을 덮어씁니다

활성화하면 차트 데이터 레이블과 툴팁이 지표 값과 locale에 따라 적절한 형식을 자동으로 선택합니다

형식화 규칙: compact notation이 활성화된 10진수, 소수 자릿수 최소 0자리 및 최대 2자리, 자동 반올림, 브라우저의 Intl.NumberFormat 구현 사용

예:

- locale=zh-CN: 749740.264 → 74.45万

- locale=en-US: 749740.264 → 744.5K

numFormat

Type: NumFormat | undefined

설명

지표의 사용자 지정 숫자 형식화이며 label과 tooltip에 자동 적용됩니다

참고: 사용자 지정 형식을 사용하려면 autoFormat=false를 명시적으로 설정해야 합니다. 그렇지 않으면 autoFormat이 이 설정을 덮어씁니다

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

설명

숫자 형식 유형, 지원: number(10진수), percent(%), permille(‰), 과학적 표기법

ratio

Type: number | undefined

설명

숫자 형식 비율, 0일 수 없습니다

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

symbol

Type: string | undefined

설명

숫자 형식 기호, 예: %, ‰

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

설명

숫자 형식의 천 단위 구분자

suffix

Type: string | undefined

설명

숫자 형식 접미사

prefix

Type: string | undefined

설명

숫자 형식 접두사

fractionDigits

Type: number | undefined

설명

숫자 형식의 소수 자릿수, 브라우저 Intl.NumberFormat의 minimumFractionDigits 및 maximumFractionDigits를 사용합니다. significantDigits보다 우선순위가 낮습니다

예시 - 1234.5678은 1235로 변환됩니다, fractionDigits:0 (roundingMode:halfCeil) - 1234.5678은 1234.6으로 변환됩니다, fractionDigits:1 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, fractionDigits:2 (roundingMode:halfCeil) - 1234.5678은 1230.568로 변환됩니다, fractionDigits:3 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, fractionDigits:4 (roundingMode:halfCeil) - 1234.5678은 1234.56780으로 변환됩니다, fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

설명

숫자 형식의 유효 숫자, 브라우저 Intl.NumberFormat의 minimumSignificantDigits 및 maximumSignificantDigits를 사용합니다. fractionDigits보다 우선순위가 높습니다

예시 - 1234.5678은 1000으로 변환됩니다, significantDigits:1 - 1234.5678은 1200으로 변환됩니다, significantDigits:2 - 1234.5678은 1230으로 변환됩니다, significantDigits:3 - 1234.5678은 1234로 변환됩니다, significantDigits:4 - 1234.5678은 1234.6으로 변환됩니다, significantDigits:5 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, significantDigits:6 (roundingMode:halfCeil) - 1234.5678은 1234.568로 변환됩니다, significantDigits:7 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

설명

significantDigits와 fractionDigits가 모두 설정된 경우의 숫자 형식 반올림 우선순위입니다. 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingPriority와 동일한 규칙을 따릅니다

예시 - 1234.5678은 1230으로 변환됩니다, significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

설명

숫자 형식의 반올림 모드, 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingMode와 동일한 규칙을 따릅니다

format

Type: NumFormat | undefined

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

설명

숫자 형식 유형, 지원: number(10진수), percent(%), permille(‰), 과학적 표기법

ratio

Type: number | undefined

설명

숫자 형식 비율, 0일 수 없습니다

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

symbol

Type: string | undefined

설명

숫자 형식 기호, 예: %, ‰

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

설명

숫자 형식의 천 단위 구분자

suffix

Type: string | undefined

설명

숫자 형식 접미사

prefix

Type: string | undefined

설명

숫자 형식 접두사

fractionDigits

Type: number | undefined

설명

숫자 형식의 소수 자릿수, 브라우저 Intl.NumberFormat의 minimumFractionDigits 및 maximumFractionDigits를 사용합니다. significantDigits보다 우선순위가 낮습니다

예시 - 1234.5678은 1235로 변환됩니다, fractionDigits:0 (roundingMode:halfCeil) - 1234.5678은 1234.6으로 변환됩니다, fractionDigits:1 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, fractionDigits:2 (roundingMode:halfCeil) - 1234.5678은 1230.568로 변환됩니다, fractionDigits:3 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, fractionDigits:4 (roundingMode:halfCeil) - 1234.5678은 1234.56780으로 변환됩니다, fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

설명

숫자 형식의 유효 숫자, 브라우저 Intl.NumberFormat의 minimumSignificantDigits 및 maximumSignificantDigits를 사용합니다. fractionDigits보다 우선순위가 높습니다

예시 - 1234.5678은 1000으로 변환됩니다, significantDigits:1 - 1234.5678은 1200으로 변환됩니다, significantDigits:2 - 1234.5678은 1230으로 변환됩니다, significantDigits:3 - 1234.5678은 1234로 변환됩니다, significantDigits:4 - 1234.5678은 1234.6으로 변환됩니다, significantDigits:5 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, significantDigits:6 (roundingMode:halfCeil) - 1234.5678은 1234.568로 변환됩니다, significantDigits:7 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

설명

significantDigits와 fractionDigits가 모두 설정된 경우의 숫자 형식 반올림 우선순위입니다. 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingPriority와 동일한 규칙을 따릅니다

예시 - 1234.5678은 1230으로 변환됩니다, significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

설명

숫자 형식의 반올림 모드, 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingMode와 동일한 규칙을 따릅니다

encoding

Type: "value" | "color" | "tooltip" | "label" | "q1" | "median" | "q3" | "min" | "max" | "outliers" | undefined

설명

지표가 매핑되는 채널

- value: 이산 값에 대응하는 지표로, 상자 수염 차트 표시용 통계값을 계산하는 데 사용합니다

- q1: 25번째 백분위 통계값에 대응하는 지표 매핑

- q3: 75번째 백분위 통계값에 대응하는 지표 매핑

- min: 최소 수염 값에 대응하는 지표 매핑

- max: 최대 수염 값에 대응하는 지표 매핑

- meadian: 중앙값 통계값에 대응하는 지표 매핑

- outliers: 이상값에 대응하는 지표 매핑

- detail: 상세 채널에 매핑되는 지표

- color: 색상 채널에 매핑되는 지표

- label: label 채널에 매핑되는 지표

- tooltip: tooltip 채널에 매핑되는 지표

parentId

Type: string | undefined

설명

평면 지표 설정 형식에서 트리형 지표 그룹을 구성합니다. parentId는 부모 지표 그룹의 id를 가리키며 지표 트리를 구성하는 데 사용됩니다

Tip

지표 트리를 설정하는 방법은 두 가지입니다. 옵션 1은 children이 있는 지표 트리를 직접 설정하는 방식이고, 옵션 2는 parentId가 있는 평면 지표 목록을 설정하는 방식입니다. 두 방식은 동시에 사용할 수 없습니다

page

Type: Page | undefined

설명

페이지네이션 설정으로, 페이지네이션 필드명을 지정하는 데 사용되며 해당 필드는 dimension이어야 합니다.

field

Type: string

설명

페이지네이션 필드; 페이지네이션에 사용할 필드 이름을 지정하며 반드시 차원이어야 합니다

currentValue

Type: string

설명

현재 페이지네이션 값; 현재 페이지를 결정하는 데 사용할 값을 지정합니다

예시 '2023-01-01'

backgroundColor

Type: BackgroundColor

설명

차트의 배경색입니다. 배경색은 색상 문자열로 지정할 수 있으며 기본값은 투명 배경입니다. 예: 'red', 'blue'. '#ff0000', 'rgba(255,0,0,0.5)' 같은 hex, rgb, rgba도 지원합니다.

color

Type: Color | undefined

설명

색상 목록, 색상 매핑, 색상 그라데이션을 포함해 차트의 색상 체계를 정의하는 색상 설정입니다.

colorScheme

Type: string[] | undefined

설명

차트의 서로 다른 요소 색상을 정의하는 이산 색상 체계

예시 ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']

linearColorScheme

Type: string[] | undefined

설명

차트의 서로 다른 요소 색상을 정의하는 선형 그라데이션 색상 체계

예시 ['#FFCDD2, #F8BBD0]

colorMapping

Type: Record<string, string> | undefined

설명

데이터 값을 특정 색상에 매핑하는 색상 매핑

예시 { 'profit': 'red', 'sales': 'blue', }

positiveColor

Type: string | undefined

설명

양수/음수 색상 설정; 차트에서 양수 값의 색상을 정의합니다

negativeColor

Type: string | undefined

설명

양수/음수 색상 설정; 차트에서 음수 값의 색상을 정의합니다

label

Type: Label | undefined

설명

위치, 형식, 스타일을 포함해 차트 데이터 레이블을 정의하는 레이블 설정입니다.

enable

Type: false | true

설명

레이블 기능 활성화 여부

wrap

Type: boolean | undefined

설명

레이블을 다음 줄로 줄바꿈할지 여부

showValue

Type: boolean | undefined

설명

레이블에 지표 값을 표시할지 여부

다중 지표 시나리오에서는 값 충돌을 걱정할 필요가 없습니다. 플롯 관련 모든 지표는 foldMeasures 처리를 거쳐 단일 데이터 포인트를 나타내는 하나의 지표로 병합됩니다

참고: encoding의 label 우선순위가 더 높으므로 이 설정은 encoding의 label에 영향을 주지 않습니다

showValuePercent

Type: boolean | undefined

설명

레이블에 지표 값의 백분율을 표시할지 여부

다중 지표 시나리오에서는 값 충돌을 걱정할 필요가 없습니다. 플롯 관련 모든 지표는 foldMeasures 처리를 거쳐 단일 데이터 포인트를 나타내는 하나의 지표로 병합됩니다

참고: encoding의 label 우선순위가 더 높으므로 이 설정은 encoding의 label에 영향을 주지 않습니다

showDimension

Type: boolean | undefined

설명

레이블에 차원 레이블을 표시할지 여부

모든 차원 레이블 표시

참고: encoding의 label 우선순위가 더 높으므로 이 설정은 encoding의 label에 영향을 주지 않습니다

autoFormat

Type: boolean | undefined

설명

레이블 값을 자동 형식화할지 여부. autoFormat이 true이면 numFormat 설정은 무시됩니다

numFormat

Type: NumFormat | undefined

설명

레이블 값 형식 설정입니다. measureformat과 병합되며, measureformat 우선순위가 더 높습니다. numFormat 우선순위는 autoFormat보다 낮습니다

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

설명

숫자 형식 유형, 지원: number(10진수), percent(%), permille(‰), 과학적 표기법

ratio

Type: number | undefined

설명

숫자 형식 비율, 0일 수 없습니다

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

symbol

Type: string | undefined

설명

숫자 형식 기호, 예: %, ‰

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

설명

숫자 형식의 천 단위 구분자

suffix

Type: string | undefined

설명

숫자 형식 접미사

prefix

Type: string | undefined

설명

숫자 형식 접두사

fractionDigits

Type: number | undefined

설명

숫자 형식의 소수 자릿수, 브라우저 Intl.NumberFormat의 minimumFractionDigits 및 maximumFractionDigits를 사용합니다. significantDigits보다 우선순위가 낮습니다

예시 - 1234.5678은 1235로 변환됩니다, fractionDigits:0 (roundingMode:halfCeil) - 1234.5678은 1234.6으로 변환됩니다, fractionDigits:1 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, fractionDigits:2 (roundingMode:halfCeil) - 1234.5678은 1230.568로 변환됩니다, fractionDigits:3 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, fractionDigits:4 (roundingMode:halfCeil) - 1234.5678은 1234.56780으로 변환됩니다, fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

설명

숫자 형식의 유효 숫자, 브라우저 Intl.NumberFormat의 minimumSignificantDigits 및 maximumSignificantDigits를 사용합니다. fractionDigits보다 우선순위가 높습니다

예시 - 1234.5678은 1000으로 변환됩니다, significantDigits:1 - 1234.5678은 1200으로 변환됩니다, significantDigits:2 - 1234.5678은 1230으로 변환됩니다, significantDigits:3 - 1234.5678은 1234로 변환됩니다, significantDigits:4 - 1234.5678은 1234.6으로 변환됩니다, significantDigits:5 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, significantDigits:6 (roundingMode:halfCeil) - 1234.5678은 1234.568로 변환됩니다, significantDigits:7 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

설명

significantDigits와 fractionDigits가 모두 설정된 경우의 숫자 형식 반올림 우선순위입니다. 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingPriority와 동일한 규칙을 따릅니다

예시 - 1234.5678은 1230으로 변환됩니다, significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

설명

숫자 형식의 반올림 모드, 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingMode와 동일한 규칙을 따릅니다

labelFontSize

Type: number | undefined

설명

레이블 글꼴 크기

labelFontWeight

Type: string | number | undefined

설명

레이블 글꼴 두께

labelBackgroundColor

Type: string | undefined

설명

레이블 배경색

labelStroke

Type: string | undefined

설명

레이블 테두리 색상

labelColor

Type: string | undefined

설명

레이블 글꼴 색상

labelColorSmartInvert

Type: boolean | undefined

설명

요소 색상에 따라 글꼴 색상을 자동 반전할지 여부

labelPosition

Type: "inside" | "outside" | undefined

설명

레이블 위치

labelOverlap

Type: boolean | undefined

설명

레이블 겹침 방지 기능 활성화 여부

selector

Type: Selector | Selectors | undefined

설명

레이블 필터링, selector 간 기본 관계는 Or입니다

field

Type: string

설명

차원 필드, 차원 항목의 ID

operator

Type: "in" | "not in" | undefined

설명

연산자

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

op

Type: "in" | "not in" | undefined

설명

연산자

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

operator와 동일

value

Type: string | number | (string | number)[]

설명

차원 필드 값, 배열을 지원합니다

dynamicFilter

Type: ChartDynamicFilter | undefined

설명

애니메이션 필터(AI 생성 코드 실행)

AI 생성 JavaScript 코드로 복잡한 데이터 필터링 로직을 구현합니다

핵심 기능:

- 임의의 복잡한 데이터 필터링 조건 지원

- 데이터 작업용 내장 유틸리티 함수 사용

- 브라우저 환경(Web Worker 샌드박스)에서 안전하게 실행

환경 요구 사항: 브라우저 환경만 지원하며 Node.js 환경에서는 fallback을 사용합니다

참고: selector와 dynamicFilter는 동시에 사용할 수 없습니다. dynamicFilter의 우선순위가 더 높습니다

차트 애니메이션 필터 설정

AI 생성 JavaScript 코드로 차트 마커(막대, 점 등)를 필터링합니다

type

Type: "row-with-field"

description

Type: string | undefined

설명

사용자의 필터링 요구 설명(자연어)

예시 차트 애니메이션 필터 설정

AI 생성 JavaScript 코드로 차트 마커(막대, 점 등)를 필터링합니다

code

Type: string

설명

AI가 생성한 JavaScript 필터링 코드

- 내장 유틸리티 함수(_ 또는 R로 접근)만 사용할 수 있습니다

- 입력 매개변수: data(배열), 각 item에는 행 번호를 나타내는 __row_index 필드가 포함됩니다

- 행 인덱스와 필드 조합 배열을 반환해야 합니다: Array<{ __row_index: number, field: string }>

- __row_index는 원본 데이터 항목의 행 번호를, field는 강조할 필드를 나타냅니다

- 사용 금지: eval, Function, 비동기 작업, DOM API, 네트워크 요청

예시 sales가 1000보다 큰 데이터 항목의 sales 필드를 강조

const filtered = _.filter(data, item => item.sales > 1000);
return _.map(filtered, item => ({
__row_index: item.__row_index,
field: 'sales'
}));

각 영역에서 이익률이 가장 높은 데이터 항목을 강조

const grouped = _.groupBy(data, 'area');
const maxItems = _.map(grouped, group =>
_.maxBy(group, item => item.profit / item.sales)
);
return _.flatten(
_.map(maxItems, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'profit' }
])
);

여러 조건으로 필터링된 데이터 항목을 강조

const filtered = _.filter(data, item => {
const profitRate = item.profit / item.sales;
return profitRate > 0.2 && item.sales > 5000;
});
return _.flatten(
_.map(filtered, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'sales' }
])
);

fallback

Type: Selector | Selectors | undefined

설명

코드 실행 실패 또는 환경 미지원 시 fallback 솔루션

field

Type: string

설명

차원 필드, 차원 항목의 ID

operator

Type: "in" | "not in" | undefined

설명

연산자

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

op

Type: "in" | "not in" | undefined

설명

연산자

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

operator와 동일

value

Type: string | number | (string | number)[]

설명

차원 필드 값, 배열을 지원합니다

result

Type: DynamicFilterExecutionResult<RowWithFieldRes> | undefined

설명

동적 필터 실행 결과(런타임 필드)

prepare() 단계에서 기록되며 런타임에는 읽기 전용입니다

success

Type: false | true

data

Type: T[] | undefined

error

Type: string | undefined

legend

Type: Legend | undefined

설명

차트 범례를 정의하는 범례 설정입니다. 위치, 형식, 스타일 등을 포함합니다.

enable

Type: boolean | undefined

설명

범례 기능을 활성화할지 여부

예시 - not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

border

Type: boolean | undefined

설명

범례 테두리를 활성화할지 여부입니다..

Warning

차원 필드 값, 배열을 지원합니다

예시 애니메이션 필터 실행 결과(런타임 필드)

labelColor

Type: string | undefined

설명

legend font color

pagerIconColor

Type: string | undefined

설명

Pagination icon color.

pagerIconDisableColor

Type: string | undefined

설명

Pagination icon disabled/grayed-out color.

labelFontSize

Type: number | undefined

설명

범례 글꼴 크기

예시 labelFontSize: 10

labelFontColor

Type: string | undefined

설명

legend font color

labelFontWeight

Type: string | number | undefined

설명

범례 글꼴 두께

예시 legend font color

shapeType

Type: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined

설명

범례 모양

Warning

이산 범례에만 적용됩니다

예시 범례 글꼴 크기

position

Type: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined

설명

범례 위치

예시 legend font color

maxSize

Type: number | undefined

설명

Maximum number of columns or rows when there are many legend items.

If position is horizontal (bottom, bottomLeft, bottomRight, bl, br, top, topLeft, topRight, tl, tr), maxSize controls the number of columns shown.

If position is vertical (left, leftTop, leftBottom, lt, lb, right, rightTop, rightBottom, rt, rb), maxSize controls the number of rows shown.

Warning

이산 범례에만 적용됩니다

예시 maxSize: 2

tooltip

Type: Tooltip | undefined

설명

위치, 형식, 스타일 등을 포함해 차트 툴팁을 정의하는 툴팁 설정입니다.

enable

Type: false | true

설명

툴팁 기능 활성화 여부

brush

Type: Brush | undefined

설명

브러시 선택 상자의 모양과 선택 방향을 정의합니다

- polygon: 다각형 선택. 여러 점을 클릭해 임의의 다각형을 그려 선택할 수 있습니다

브러시 선택 모드: 단일 또는 다중

enable

Type: boolean | undefined

설명

선택된 데이터 포인트의 스타일을 정의합니다.

brushType

Type: "rect" | "x" | "y" | "polygon" | undefined

설명

brushtype

불투명도

선택된 데이터 포인트의 불투명도, 범위 0-1

- polygon: 다각형 브러시 선택. 여러 점을 클릭해 임의의 다각형을 그려 선택합니다

- x: X축 방향으로만 브러시 선택합니다. Y축 방향은 제한되지 않습니다

- y: Y축 방향 브러시 선택. X축 방향은 제한하지 않습니다

brushMode

Type: "single" | "multiple" | undefined

설명

선택된 데이터 포인트의 불투명도, 범위 0-1

선택되지 않은 데이터 항목의 스타일

선택된 브러시 영역 밖의 데이터 포인트 스타일을 정의합니다

- multiple: 다중 선택 모드. 여러 브러시 영역이 동시에 존재할 수 있습니다

removeOnClick

Type: boolean | undefined

설명

브러시 선택이 끝난 후 선택 영역을 지울지 여부

inBrushStyle

Type: { opacity?: number; stroke?: string; lineWidth?: number; } | undefined

설명

선택되지 않은 데이터 포인트의 불투명도, 범위 0-1

브러시 선택된 데이터 포인트의 스타일을 정의합니다

opacity

Type: number | undefined

설명

선택되지 않은 데이터 항목의 스타일

브러시 선택 밖의 데이터 포인트 스타일을 정의합니다

stroke

Type: string | undefined

설명

범주 축(X축) 설정으로, 위치, 형식, 스타일 등을 포함해 차트의 X축을 정의합니다.

lineWidth

Type: number | undefined

설명

선 너비

outOfBrushStyle

Type: { opacity?: number; stroke?: string; lineWidth?: number; } | undefined

설명

X축, 범주 축, X축 설정입니다. 위치, 형식, 스타일 등을 포함해 차트의 X축을 정의합니다.

브러시 선택 밖의 데이터 포인트 스타일을 정의합니다

opacity

Type: number | undefined

설명

선택되지 않은 데이터 항목의 스타일

브러시 선택 외부 데이터 포인트의 불투명도, 범위 0-1

stroke

Type: string | undefined

설명

범주 축(X축) 설정으로, 위치, 형식, 스타일 등을 포함해 차트의 X축을 정의합니다.

lineWidth

Type: number | undefined

설명

선 너비

xAxis

Type: XBandAxis | undefined

설명

X축 범주 축 설정으로, 위치, 형식, 스타일 및 관련 설정을 포함해 차트 X축을 정의합니다.

visible

Type: boolean | undefined

설명

축 선 색상

inverse

Type: boolean | undefined

설명

X축 애니메이션 구성

zero

Type: boolean | undefined

설명

숫자 축(Y축) 구성으로, 차트의 Y축 위치, 형식, 스타일 등을 정의하는 데 사용됩니다.

labelAutoHide

Type: boolean | undefined

설명

Axis label auto-hide. If two labels overlap, with spacing smaller than autoHideGap, the overlapping label is hidden automatically. Only applies to category axes.

labelAutoHideGap

Type: number | undefined

설명

Axis label auto-hide gap. If the gap between two labels is smaller than autoHideGap, the overlapping label is hidden automatically. Only applies to category axes.

Y-axis, numeric axis, Y-axis configuration; defines the Y-axis of the chart, including its position, format, style, etc.

When autoHide is disabled, use sampling and configure it through minGap.

labelAutoRotate

Type: boolean | undefined

설명

Axis label auto-rotation. When label width exceeds axis length, labels are rotated automatically. Only applies to category axes.

labelAutoRotateAngleRange

Type: number[] | undefined

설명

Axis label auto-rotation angle range. Used when auto-rotation is enabled. Only applies to category axes.

labelAutoLimit

Type: boolean | undefined

설명

Axis label auto-limit. When label width exceeds axis length, overflow is shown with ellipsis and the full label is visible on hover. Only applies to category axes.

labelAutoLimitLength

Type: number | undefined

설명

Maximum length for axis label auto-limit. When label text exceeds this length, overflow is shown with ellipsis and the full label is visible on hover. Only applies to category axes.

label

Type: { visible?: boolean; labelColor?: string; labelFontSize?: number; labelFontWeight?: number; labelAngle?: number; } | undefined

설명

- orderBy:'date'

visible

Type: boolean | undefined

설명

카테고리 축에 직접 적용되는 사용자 지정 정렬 순서

labelColor

Type: string | undefined

설명

숫자 축의 숫자 형식입니다. 숫자 축에만 유효하며 autoFormat보다 우선순위가 낮습니다.

labelFontSize

Type: number | undefined

설명

label 글꼴 크기

labelFontWeight

Type: number | undefined

설명

레이블 글꼴 크기

labelAngle

Type: number | undefined

설명

라벨 회전 각도

line

Type: { visible?: boolean; lineColor?: string; lineWidth?: number; } | undefined

설명

X축 선

visible

Type: boolean | undefined

설명

레이블 글꼴 두께

lineColor

Type: string | undefined

설명

}

lineWidth

Type: number | undefined

설명

- 100000은 10万으로 변환, ratio:10000, symbol:"万"

tick

Type: { visible?: boolean; tickInside?: boolean; tickColor?: string; tickSize?: number; } | undefined

설명

X축 눈금

visible

Type: boolean | undefined

설명

숫자 형식 접미사

tickInside

Type: boolean | undefined

설명

정렬 순서이며 'asc' 또는 'desc'일 수 있습니다

tickColor

Type: string | undefined

설명

Legend sorting configuration; supports sorting based on dimensions or measures, as well as custom sorting orders; the sort array follows the order from left to right or top to bottom.

tickSize

Type: number | undefined

설명

sortLegend: {

title

Type: { visible?: boolean; titleText?: string; titleColor?: string; titleFontSize?: number; titleFontWeight?: number; } | undefined

설명

X축 제목

visible

Type: boolean | undefined

설명

- 1234.5678은 1234.6으로 변환됩니다. significantDigits:5 (roundingMode:halfCeil)

titleText

Type: string | undefined

설명

제목 텍스트입니다. 기본적으로 필드 구성을 따릅니다.

titleColor

Type: string | undefined

설명

- orderBy:'profit'

titleFontSize

Type: number | undefined

설명

Custom sorting order; this order will be directly applied to the legend. Ascending follows left-to-right or top-to-bottom; descending follows right-to-left or bottom-to-top.

titleFontWeight

Type: number | undefined

설명

Rectangle graphic element style

grid

Type: { visible?: boolean; gridColor?: string; gridWidth?: number; gridLineDash?: number[]; } | undefined

설명

Includes built-in light and dark themes. Custom themes can be added via registerTheme.

visible

Type: boolean | undefined

gridColor

Type: string | undefined

설명

selector = [{ profit: 100 }, { profit: 200 }]

gridWidth

Type: number | undefined

설명

selector = 100

gridLineDash

Type: number[] | undefined

설명

그리드 선 유형

animation

Type: { duration?: number; easing?: string; } | undefined

설명

X축 애니메이션 설정

duration

Type: number | undefined

설명

value: [100, 300]

easing

Type: string | undefined

설명

}

yAxis

Type: YLinearAxis | undefined

설명

Y축 수치 축 설정으로, 위치, 형식, 스타일 및 관련 설정을 포함해 차트 Y축을 정의합니다.

visible

Type: boolean | undefined

설명

축 선 색상

min

Type: number | undefined

설명

Axis line width

max

Type: number | boolean | undefined

설명

X-axis ticks

log

Type: boolean | undefined

설명

로그 축을 사용할지 여부입니다. 숫자 축에만 적용됩니다

logBase

Type: number | undefined

설명

Base of the logarithmic axis; only applies to numeric axes

nice

Type: boolean | undefined

설명

더 읽기 쉬운 tick label을 위해 축 tick 간격을 자동 조정할지 여부입니다. min과 max가 설정된 경우 이 옵션은 비활성화되며 숫자 축에만 적용됩니다.

inverse

Type: boolean | undefined

설명

X축 애니메이션 구성

zero

Type: boolean | undefined

설명

숫자 축(Y축) 구성으로, 차트의 Y축 위치, 형식, 스타일 등을 정의하는 데 사용됩니다.

autoFormat

Type: boolean | undefined

설명

숫자 축 tick label을 자동으로 형식화할지 여부입니다. 숫자 축에만 적용됩니다. autoFormat이 true이면 numFormat은 무시됩니다.

numFormat

Type: NumFormat | undefined

설명

숫자 축의 숫자 형식입니다. 숫자 축에만 적용되며 autoFormat보다 우선순위가 낮습니다.

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

설명

숫자 형식 타입입니다. decimal, percent(%), permille(‰), 과학적 표기법을 지원합니다

ratio

Type: number | undefined

설명

숫자 형식 비율이며 0일 수 없습니다

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

symbol

Type: string | undefined

설명

숫자 형식 기호입니다. 예: %, ‰

예시 - 100000은 10万으로 변환, ratio:10000, symbol:"万" - 100000은 10K로 변환, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

설명

숫자 형식 비율, 0일 수 없습니다

suffix

Type: string | undefined

설명

숫자 형식 접미사

prefix

Type: string | undefined

설명

숫자 형식 기호, 예: %, ‰

fractionDigits

Type: number | undefined

설명

Decimal places for numeric formatting, using the browser's Intl.NumberFormat minimumFractionDigits and maximumFractionDigits; lower priority than significantDigits.

예시 - 1234.5678은 1235로 변환됩니다, fractionDigits:0 (roundingMode:halfCeil) - 1234.5678은 1234.6로 변환됩니다, fractionDigits:1 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, fractionDigits:2 (roundingMode:halfCeil) - 1234.5678은 1230.568로 변환됩니다, fractionDigits:3 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, fractionDigits:4 (roundingMode:halfCeil) - 1234.5678은 1234.56780로 변환됩니다, fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

설명

숫자 형식 접미사

예시 - 1234.5678은 1000로 변환됩니다, significantDigits:1 - 1234.5678은 1200로 변환됩니다, significantDigits:2 - 1234.5678은 1230로 변환됩니다, significantDigits:3 - 1234.5678은 1234로 변환됩니다, significantDigits:4 - 1234.5678은 1234.6로 변환됩니다, significantDigits:5 (roundingMode:halfCeil) - 1234.5678은 1234.57로 변환됩니다, significantDigits:6 (roundingMode:halfCeil) - 1234.5678은 1234.568로 변환됩니다, significantDigits:7 (roundingMode:halfCeil) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

설명

숫자 형식의 소수 자릿수, 브라우저 Intl.NumberFormat의 minimumFractionDigits 및 maximumFractionDigits를 사용합니다. significantDigits보다 우선순위가 낮습니다

예시 - 1234.5678은 1230로 변환됩니다, significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678은 1234.5678로 변환됩니다, significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

설명

숫자 형식의 유효 숫자, 브라우저 Intl.NumberFormat의 minimumSignificantDigits 및 maximumSignificantDigits를 사용합니다. fractionDigits보다 우선순위가 높습니다

label

Type: { visible?: boolean; labelColor?: string; labelFontSize?: number; labelFontWeight?: number; labelAngle?: number; } | undefined

설명

- orderBy:'date'

visible

Type: boolean | undefined

설명

significantDigits와 fractionDigits가 모두 설정된 경우의 숫자 형식 반올림 우선순위입니다. 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingPriority와 동일한 규칙을 따릅니다

labelColor

Type: string | undefined

설명

숫자 축의 숫자 형식입니다. 숫자 축에만 유효하며 autoFormat보다 우선순위가 낮습니다.

labelFontSize

Type: number | undefined

설명

숫자 형식의 반올림 모드, 브라우저 Intl.NumberFormat을 사용하며 Intl.NumberFormat의 roundingMode와 동일한 규칙을 따릅니다

labelFontWeight

Type: number | undefined

설명

label 글꼴 두께

labelAngle

Type: number | undefined

설명

라벨 회전 각도

line

Type: { visible?: boolean; lineColor?: string; lineWidth?: number; } | undefined

설명

X축 선

visible

Type: boolean | undefined

설명

- orderBy:'date'

lineColor

Type: string | undefined

설명

}

lineWidth

Type: number | undefined

설명

레이블 글꼴 크기

tick

Type: { visible?: boolean; tickInside?: boolean; tickColor?: string; tickSize?: number; } | undefined

설명

X축 눈금

visible

Type: boolean | undefined

설명

숫자 형식 접미사

tickInside

Type: boolean | undefined

설명

정렬 순서이며 'asc' 또는 'desc'일 수 있습니다

tickColor

Type: string | undefined

설명

Legend sorting configuration; supports sorting based on dimensions or measures, as well as custom sorting orders; the sort array follows the order from left to right or top to bottom.

tickSize

Type: number | undefined

설명

sortLegend: {

title

Type: { visible?: boolean; titleText?: string; titleColor?: string; titleFontSize?: number; titleFontWeight?: number; } | undefined

설명

X축 제목

visible

Type: boolean | undefined

설명

- 1234.5678은 1234.6으로 변환됩니다. significantDigits:5 (roundingMode:halfCeil)

titleText

Type: string | undefined

설명

제목 텍스트입니다. 기본적으로 필드 구성을 따릅니다.

titleColor

Type: string | undefined

설명

- orderBy:'profit'

titleFontSize

Type: number | undefined

설명

Custom sorting order; this order will be directly applied to the legend. Ascending follows left-to-right or top-to-bottom; descending follows right-to-left or bottom-to-top.

titleFontWeight

Type: number | undefined

설명

Rectangle graphic element style

grid

Type: { visible?: boolean; gridColor?: string; gridWidth?: number; gridLineDash?: number[]; } | undefined

설명

Includes built-in light and dark themes. Custom themes can be added via registerTheme.

visible

Type: boolean | undefined

gridColor

Type: string | undefined

설명

selector = [{ profit: 100 }, { profit: 200 }]

gridWidth

Type: number | undefined

설명

selector = 100

gridLineDash

Type: number[] | undefined

설명

그리드 선 유형

animation

Type: { duration?: number; easing?: string; } | undefined

설명

selector = [{ profit: 100 }, { profit: 200 }]

duration

Type: number | undefined

설명

value: [100, 300]

easing

Type: string | undefined

설명

}

sort

Type: Sort | undefined

설명

X축 정렬 구성입니다. 차원 또는 지표 기준 정렬과 사용자 지정 정렬 순서를 지원합니다

범주축 정렬 구성입니다. 차원 또는 지표 기준 정렬과 사용자 지정 정렬 순서를 지원합니다

예시 sort: { orderBy: 'profit', order: 'asc', } sort: { customOrder:['2019', '2020', '2021'] }

- order:'asc' - orderBy:'date' or - customOrder:['2019', '2020', '2021']

order

Type: "asc" | "desc" | undefined

설명

])

예시 order:'asc'

orderBy

Type: string | undefined

설명

각 지역에서 이익률이 가장 높은 데이터 항목을 강조 표시

예시 - orderBy:'date' - orderBy:'profit'

customOrder

Type: string[] | undefined

설명

- __row_index는 원본 데이터 항목의 행 번호를 나타내고, field는 강조할 field를 나타냅니다.

sortLegend

Type: SortLegend | undefined

설명

return _.map(filtered, item => ({

Chart dynamic filter configuration

예시 sortLegend: { orderBy: 'profit', order: 'asc', } sortLegend: { customOrder:['2019', '2020', '2021'] }

- order:'asc' - orderBy:'date' or - customOrder:['2019', '2020', '2021']

order

Type: "asc" | "desc" | undefined

설명

])

예시 order:'asc'

orderBy

Type: string | undefined

설명

각 지역에서 이익률이 가장 높은 데이터 항목을 강조 표시

예시 - orderBy:'date' - orderBy:'profit'

customOrder

Type: string[] | undefined

설명

사용자 지정 정렬 순서입니다. 이 순서는 범례에 직접 적용됩니다. 오름차순은 왼쪽에서 오른쪽 또는 위에서 아래로, 내림차순은 오른쪽에서 왼쪽 또는 아래에서 위로 진행됩니다.

theme

Type: Theme | undefined

설명

차트 테마입니다. 테마는 우선순위가 낮은 기능 구성으로, 모든 차트 유형이 공유하는 공통 설정과 단일 차트 범주 안에서 공유되는 설정을 포함합니다. 기본 제공 테마에는 light와 dark가 있으며, 사용자는 Builder를 통해 테마를 사용자 지정할 수 있습니다.

Operator

- not in: 차원 field 값이 값 목록에 없는 데이터 항목을 선택합니다.

예시 'dark'

'light'

'customThemeName'

length

Type: number

brand

Type: brand

crosshairRect

Type: CrosshairRect | undefined

설명

코드 실행 실패 또는 환경 미지원 시 fallback 솔루션입니다.

차트 테마. Theme은 우선순위가 낮은 설정으로, 모든 차트 타입이 공유하는 공통 설정과 각 차트 타입의 개별 설정을 포함합니다. 내장 테마에는 'light'와 'dark'가 있으며 Builder를 통해 사용자 지정할 수 있습니다.

visible

Type: boolean | undefined

설명

테마

rectColor

Type: string | undefined

설명

내장 라이트/다크 테마가 있으며, registerTheme을 통해 새 테마를 사용자 지정할 수 있습니다.

labelColor

Type: string | undefined

설명

Operator

labelVisible

Type: boolean | undefined

설명

크로스헤어 사각 영역 레이블을 표시할지 여부입니다

labelBackgroundColor

Type: string | undefined

설명

- Supports arbitrarily complex data filtering conditions

boxPlotStyle

Type: BoxPlotStyle | BoxPlotStyle[] | undefined

설명

Box Plot 박스 스타일 설정입니다. 전역 또는 selector 레벨 적용을 지원합니다

selector

Type: Selector | Selectors | undefined

설명

Data selector

selector를 설정하면 숫자 selector, 로컬 데이터 selector, 조건부 차원 selector, 조건부 지표 selector의 네 가지 데이터 매칭 기능을 제공합니다.

If no selector is configured, the style applies globally.

예시 Numeric selector selector = "tool" selector = ["tool", "book"] selector = 100 selector = [100, 200]

Local data selector selector = { profit: 100 } selector = [{ profit: 100 }, { profit: 200 }]

Conditional dimension selector selector = { field: 'category', operator: 'in', value: 'tool' } selector = { field: 'category', operator: 'not in', value: 'book' }

조건부 지표 selector selector = { field: 'profit', operator: '>=', value: 100 } selector = { field: 'profit', operator: 'between' value: [100, 300] }

field

Type: string

설명

데이터 selector

operator

Type: "in" | "not in" | undefined

설명

Operator

- in: Select data items where the value of the dimension field is in the value

- not in: Select data items where the value of the dimension field is not in the value

op

Type: "in" | "not in" | undefined

설명

Operator

- in: Select data items where the value of the dimension field is in the value

- not in: Select data items where the value of the dimension field is not in the value

차원 필드, 차원 항목의 ID

value

Type: string | number | (string | number)[]

설명

연산자

boxVisible

Type: boolean | undefined

설명

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

boxColor

Type: string | undefined

설명

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

boxColorOpacity

Type: number | undefined

설명

연산자

boxBorderColor

Type: string | undefined

설명

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

boxBorderWidth

Type: number | undefined

설명

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

boxBorderOpacity

Type: number | undefined

설명

Box plot 요소 테두리 불투명도

boxCornerRadius

Type: number | undefined

설명

차원 필드 값, 배열을 지원합니다

medianBorderColor

Type: string | undefined

설명

Median line color

whiskerBorderColor

Type: string | undefined

설명

Whisker line color

outlierStyle

Type: OutlierStyle | OutlierStyle[] | undefined

설명

Outlier style configuration, supports global or selector-level application

selector

Type: Selector | Selectors | undefined

설명

Data selector

selector를 설정하면 숫자 selector, 로컬 데이터 selector, 조건부 차원 selector, 조건부 지표 selector의 네 가지 데이터 매칭 기능을 제공합니다.

If no selector is configured, the style applies globally.

예시 Numeric selector selector = "tool" selector = ["tool", "book"] selector = 100 selector = [100, 200]

Local data selector selector = { profit: 100 } selector = [{ profit: 100 }, { profit: 200 }]

Conditional dimension selector selector = { field: 'category', operator: 'in', value: 'tool' } selector = { field: 'category', operator: 'not in', value: 'book' }

조건부 지표 selector selector = { field: 'profit', operator: '>=', value: 100 } selector = { field: 'profit', operator: 'between' value: [100, 300] }

field

Type: string

설명

데이터 selector

operator

Type: "in" | "not in" | undefined

설명

Operator

- in: Select data items where the value of the dimension field is in the value

- not in: Select data items where the value of the dimension field is not in the value

op

Type: "in" | "not in" | undefined

설명

Operator

- in: Select data items where the value of the dimension field is in the value

- not in: Select data items where the value of the dimension field is not in the value

차원 필드, 차원 항목의 ID

value

Type: string | number | (string | number)[]

설명

연산자

pointVisible

Type: boolean | undefined

설명

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

pointSize

Type: number | undefined

설명

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

pointColor

Type: string | undefined

설명

연산자

pointColorOpacity

Type: number | undefined

설명

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

pointBorderColor

Type: string | undefined

설명

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

pointBorderWidth

Type: number | undefined

설명

Point element border width

pointBorderStyle

Type: "solid" | "dashed" | "dotted" | undefined

설명

차원 필드 값, 배열을 지원합니다

예시 solid

dashed

dotted

whiskers

Type: number | number[] | undefined

설명

Box plot whisker 길이 설정입니다. 스칼라 값과 길이 2의 배열을 지원합니다.

When the value is a scalar, whiskers * IQR is used to calculate the upper and lower bounds.

When the value is an array of length 2, whiskers[0] must be between [0, 0.25), representing the percentile for the lower bound;

whiskers[1] must be between (0.75, 1], representing the percentile for the upper bound.

annotationPoint

Type: AnnotationPoint | AnnotationPoint[] | undefined

설명

주석 점 설정입니다. 선택한 데이터를 기반으로 주석 점의 위치, 형식, 스타일 등을 정의합니다.

selector

Type: Selector | Selectors | undefined

설명

주석 포인트용 selector이며 데이터 포인트를 선택하는 데 사용됩니다.

field

Type: string

설명

차원 필드입니다. dimensions 내 항목의 ID입니다.

operator

Type: "in" | "not in" | undefined

설명

Operator

- in: 차원 field 값이 값 목록에 있는 데이터 항목을 선택합니다.

- not in: 차원 field 값이 값 목록에 없는 데이터 항목을 선택합니다.

op

Type: "in" | "not in" | undefined

설명

Operator

- in: 차원 field 값이 값 목록에 있는 데이터 항목을 선택합니다.

- not in: 차원 field 값이 값 목록에 없는 데이터 항목을 선택합니다.

operator와 동일

value

Type: string | number | (string | number)[]

설명

선택된 차원 필드 값입니다. 배열을 지원합니다.

measureId

Type: string | undefined

설명

주석 점이 속한 지표 id를 지정합니다. 여러 measure 시나리오에서는 selector와 결합해 대상 지표의 주석 점을 고유하게 찾을 수 있습니다.

dynamicFilter

Type: ChartDynamicFilter | undefined

설명

동적 필터(AI 생성 코드 실행)

차원 필드, 차원 항목의 ID

연산자

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

연산자

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

참고: selector와 dynamicFilter는 동시에 사용할 수 없으며 dynamicFilter의 우선순위가 더 높습니다..

차원 필드 값, 배열을 지원합니다

AI가 생성한 JavaScript 코드로 차트 마커(막대, 점 등)를 필터링합니다.

type

Type: "row-with-field"

description

Type: string | undefined

설명

애니메이션 필터(AI 생성 코드 실행)

예시 - in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

code

Type: string

설명

AI가 생성한 JavaScript 필터링 코드

- 내장 유틸리티 함수(_ 또는 R로 접근)만 사용할 수 있습니다

- 입력 매개변수: data(배열), 각 item에는 행 번호를 나타내는 __row_index 필드가 포함됩니다

- 행 인덱스와 필드 조합 배열을 반환해야 합니다: Array<{ __row_index: number, field: string }>

- __row_index는 원본 데이터 항목의 행 번호를, field는 강조할 필드를 나타냅니다

- 사용 금지: eval, Function, 비동기 작업, DOM API, 네트워크 요청

예시 sales가 1000보다 큰 데이터 항목의 sales 필드를 강조

const filtered = _.filter(data, item => item.sales > 1000);
return _.map(filtered, item => ({
__row_index: item.__row_index,
field: 'sales'
}));

각 영역에서 이익률이 가장 높은 데이터 항목을 강조

const grouped = _.groupBy(data, 'area');
const maxItems = _.map(grouped, group =>
_.maxBy(group, item => item.profit / item.sales)
);
return _.flatten(
_.map(maxItems, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'profit' }
])
);

여러 조건으로 필터링된 데이터 항목을 강조

const filtered = _.filter(data, item => {
const profitRate = item.profit / item.sales;
return profitRate > 0.2 && item.sales > 5000;
});
return _.flatten(
_.map(filtered, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'sales' }
])
);

fallback

Type: Selector | Selectors | undefined

설명

Fallback strategy when code execution fails or the environment is not supported.

field

Type: string

설명

차원 필드입니다. dimensions 내 항목의 ID입니다.

operator

Type: "in" | "not in" | undefined

설명

AI 생성 JavaScript 필터링 코드

- 내장 유틸리티 함수(_ 또는 R을 통해 접근)만 사용할 수 있습니다

- 입력 파라미터: data(배열), 각 항목에는 행 번호를 나타내는 __row_index 필드가 포함됩니다

op

Type: "in" | "not in" | undefined

설명

- 행 인덱스와 필드 조합의 배열을 반환해야 합니다: Array<{ __row_index: number, field: string }>

- __row_index는 원본 데이터 항목의 행 번호를 나타내고, field는 강조할 필드를 나타냅니다

- 금지: eval, Function, 비동기 작업, DOM API, 네트워크 요청

sales가 1000보다 큰 데이터 항목의 sales 필드를 강조합니다

value

Type: string | number | (string | number)[]

설명

각 영역에서 이익률이 가장 높은 데이터 항목을 강조합니다

result

Type: DynamicFilterExecutionResult<RowWithFieldRes> | undefined

설명

동적 필터 실행 결과(런타임 필드)

prepare() 단계에서 기록되며 런타임에는 읽기 전용입니다

success

Type: false | true

data

Type: T[] | undefined

error

Type: string | undefined

text

Type: string | string[] | undefined

설명

차원 필드, 차원 항목의 ID

예시 - 내장 유틸리티 함수(_ 또는 R을 통해 접근)만 사용할 수 있습니다

textColor

Type: string | undefined

설명

- in: 차원 필드 값이 value에 포함되는 데이터 항목을 선택합니다

예시 - 행 인덱스와 필드 조합의 배열을 반환해야 합니다: Array<{ __row_index: number, field: string }>

textFontSize

Type: number | undefined

설명

연산자

예시 - 금지: eval, Function, 비동기 작업, DOM API, 네트워크 요청

textFontWeight

Type: number | undefined

설명

- not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

예시 각 영역에서 이익률이 가장 높은 데이터 항목을 강조합니다

textAlign

Type: "left" | "right" | "center" | undefined

설명

텍스트 정렬 방식입니다. 일반적으로 right로 설정하여 텍스트가 주석 지점의 왼쪽에 표시되고 차트의 표시 영역 안에 있도록 합니다

right로 설정하는 것을 권장합니다. 이렇게 하면 텍스트가 주석 지점의 왼쪽에 위치합니다

right: 텍스트가 주석 지점의 왼쪽에 있으며, 텍스트의 오른쪽 가장자리가 주석 지점에 맞춰집니다

left: 텍스트가 주석 지점의 오른쪽에 있으며, 텍스트의 왼쪽 가장자리가 주석 지점에 맞춰집니다

center: 텍스트가 주석 지점의 중앙에 있으며, 텍스트의 중심이 주석 지점에 맞춰집니다

예시 - not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

textBaseline

Type: "top" | "bottom" | "middle" | undefined

설명

텍스트 세로 정렬 방식입니다. 일반적으로 top으로 설정하여 텍스트를 주석 점의 아래쪽에 표시하고 차트의 보이는 영역 안에 유지합니다

'top' 설정을 권장합니다. 이렇게 하면 텍스트 전체가 차트의 보이는 영역 안에 표시됩니다

top: 텍스트가 주석 점의 아래쪽에 있고 텍스트의 위쪽 가장자리가 주석 점에 정렬됩니다

middle: 텍스트가 주석 점의 중앙에 정렬됩니다

bottom: 텍스트가 주석 점의 위쪽에 있고 텍스트의 아래쪽 가장자리가 주석 점에 정렬됩니다

예시 'top'

textBackgroundVisible

Type: boolean | undefined

설명

배경 표시 여부

예시 true

textBackgroundColor

Type: string | undefined

설명

배경색

예시 'red'

textBackgroundBorderColor

Type: string | undefined

설명

2

예시 'red'

textBackgroundBorderWidth

Type: number | undefined

설명

4

예시 2

textBackgroundBorderRadius

Type: number | undefined

설명

배경 테두리 모서리 반경

예시 4

textBackgroundPadding

Type: number | undefined

설명

배경 안쪽 여백

예시 4

offsetY

Type: number | undefined

설명

주석 점 전체가 Y 방향으로 이동하는 픽셀 거리입니다. 주석 점이 차트 위쪽(값이 큰 경우)에 있으면 양수 값을, 아래쪽(값이 작은 경우)에 있으면 음수 값을 권장합니다.

음수 값은 전체를 위쪽으로 이동합니다. 예를 들어 -10은 텍스트와 배경을 포함한 주석 점 컴포넌트 전체를 위쪽으로 10픽셀 이동합니다

양수 값은 전체를 아래쪽으로 이동합니다. 예를 들어 10은 텍스트와 배경을 포함한 주석 점 컴포넌트 전체를 아래쪽으로 10픽셀 이동합니다

예시 offsetY: 5, 주석 점 전체가 아래쪽으로 5픽셀 이동합니다

offsetX

Type: number | undefined

설명

주석 점 전체가 X 방향으로 이동하는 픽셀 거리입니다. 주석 점이 차트 왼쪽(범주 축 시작점)에 있으면 양수 값을, 오른쪽(범주 축 끝점)에 있으면 음수 값을 권장합니다.

음수 값은 전체를 왼쪽으로 이동합니다. 예를 들어 -10은 텍스트와 배경을 포함한 주석 점 컴포넌트 전체를 왼쪽으로 10픽셀 이동합니다

양수 값은 전체를 오른쪽으로 이동합니다. 예를 들어 10은 텍스트와 배경을 포함한 주석 점 컴포넌트 전체를 오른쪽으로 10픽셀 이동합니다

예시 offsetX: 5, 주석 점 전체가 오른쪽으로 5픽셀 이동합니다

annotationVerticalLine

Type: AnnotationVerticalLine | AnnotationVerticalLine[] | undefined

설명

차원 값 주석선입니다. 수직으로 표시되며 주석선의 위치, 스타일 및 관련 설정을 구성할 수 있습니다.

xValue

Type: string | number | (string | number)[] | undefined

설명

);

dynamicFilter

Type: ValueDynamicFilter | undefined

설명

동적 필터(AI 생성 코드 실행)

배경 테두리 반경

선택한 데이터를 기준으로 차트의 주석 영역을 정의하는 설정입니다. 위치, 스타일 등을 포함합니다.

메인 라인을 두 세그먼트로 분할하는 기능을 활성화할지 여부입니다.

type

Type: "value"

description

Type: string | undefined

설명

사용자의 필터링 요구 설명(자연어)입니다.

예시 "주석선 기준으로 사용할 최대 매출 값을 가져옵니다"

"Calculate the average sales for the annotation line"

code

Type: string

설명

AI가 생성한 JavaScript 필터링 코드

- 내장 유틸리티 함수(_ 또는 R로 접근)만 사용할 수 있습니다

- 입력 매개변수: data(배열)

- 단일 숫자 또는 문자열 값을 반환해야 합니다: number | string

- 적용 시나리오: 주석선(수평선, 수직선)에 필요한 동적 값

- 사용 금지: eval, Function, 비동기 작업, DOM API, 네트워크 요청

예시 sales 최대값을 주석선 값으로 가져오기

const maxSales = _.maxBy(data, 'sales')?.sales;
return maxSales || 0;

평균값을 계산해 주석선에 사용

const avgSales = _.meanBy(data, 'sales');
return _.round(avgSales, 2);

분위수 값을 주석선으로 가져오기

const sorted = _.sortBy(data, 'sales');
const index = Math.floor(sorted.length * 0.75);
return sorted[index]?.sales || 0;

조건에 따라 목표값 계산

const currentYearTotal = _.sumBy(
_.filter(data, item => item.year === 2024),
'sales'
);
return currentYearTotal;

fallback

Type: string | number | undefined

설명

Fallback strategy when code execution fails or the environment is not supported.

result

Type: { success: boolean; data?: number | string; } | undefined

설명

동적 필터 실행 결과(런타임 필드)

prepare() 단계에서 기록되며 런타임에는 읽기 전용입니다

success

Type: false | true

data

Type: string | number | undefined

text

Type: string | string[] | undefined

설명

Written during the prepare() phase; read-only at runtime.

예시 'Annotation text'

textPosition

Type: "outsideStart" | "outsideEnd" | "outsideMiddle" | "insideStart" | "insideMiddle" | "insideEnd" | undefined

설명

애니메이션 필터(AI 생성 코드 실행)

예시 'outsideEnd'

textColor

Type: string | undefined

설명

center: Text is centered in the annotation area; the center of the text aligns with the area.

예시 'red'

textFontSize

Type: number | undefined

설명

사용자의 필터링 요구 설명(자연어)

예시 12

textFontWeight

Type: number | undefined

설명

0

예시 400

textAlign

Type: "left" | "right" | "center" | undefined

설명

텍스트 정렬 방식입니다. 일반적으로 설정할 필요가 없습니다

'right' 설정을 권장합니다. 이렇게 하면 텍스트가 주석선의 왼쪽에 배치됩니다

right: 텍스트가 기준선의 왼쪽에 있고 텍스트의 오른쪽 가장자리가 수직 주석선에 정렬됩니다

left: 텍스트가 기준선의 오른쪽에 있고 텍스트의 왼쪽 가장자리가 수직 주석선에 정렬됩니다

center: 텍스트가 기준선 중앙에 정렬됩니다

예시 'right'

textBaseline

Type: "top" | "bottom" | "middle" | undefined

설명

텍스트 세로 정렬 방식입니다. 일반적으로 설정할 필요가 없습니다

'top' 설정을 권장합니다. 이렇게 하면 텍스트 전체가 차트의 보이는 영역 안에 표시됩니다

top: 텍스트가 기준선 아래쪽에 있고 텍스트의 위쪽 가장자리가 수직 주석선의 끝점에 정렬됩니다

middle: 텍스트가 기준선 중앙에 정렬됩니다

bottom: 텍스트가 기준선 위쪽에 있고 텍스트의 아래쪽 가장자리가 수직 주석선의 끝점에 정렬됩니다

예시 'top'

lineVisible

Type: boolean | undefined

설명

선 표시 여부

예시 true

lineColor

Type: string | undefined

설명

선 색상

예시 'red'

lineWidth

Type: number | undefined

설명

prepare() 단계에서 작성되며 런타임에는 읽기 전용입니다

예시 2

lineStyle

Type: "solid" | "dashed" | "dotted" | undefined

설명

주석 영역 테두리 반경

예시 'solid'

textBackgroundVisible

Type: boolean | undefined

설명

배경 표시 여부

예시 true

textBackgroundColor

Type: string | undefined

설명

배경색

예시 'red'

textBackgroundBorderColor

Type: string | undefined

설명

2

예시 'red'

textBackgroundBorderWidth

Type: number | undefined

설명

4

예시 2

textBackgroundBorderRadius

Type: number | undefined

설명

배경 테두리 모서리 반경

예시 4

textBackgroundPadding

Type: number | undefined

설명

배경 안쪽 여백

예시 4

annotationHorizontalLine

Type: AnnotationHorizontalLine | AnnotationHorizontalLine[] | undefined

설명

4

yValue

Type: string | number | (string | number)[] | undefined

설명

수평선을 주석으로 표시하기 위한 고정 Y 값입니다. 범주 축이 Y 방향이면 차원 값을, 수치 축이 Y 방향이면 구체적인 숫자 값을 입력할 수 있습니다.

dynamicFilter

Type: ValueDynamicFilter | undefined

설명

동적 필터(AI 생성 코드 실행)

배경 테두리 반경

선택한 데이터를 기준으로 차트의 주석 영역을 정의하는 설정입니다. 위치, 스타일 등을 포함합니다.

메인 라인을 두 세그먼트로 분할하는 기능을 활성화할지 여부입니다.

type

Type: "value"

description

Type: string | undefined

설명

사용자의 필터링 요구 설명(자연어)입니다.

예시 "주석선 기준으로 사용할 최대 매출 값을 가져옵니다"

"Calculate the average sales for the annotation line"

code

Type: string

설명

AI가 생성한 JavaScript 필터링 코드

- 내장 유틸리티 함수(_ 또는 R로 접근)만 사용할 수 있습니다

- 입력 매개변수: data(배열)

- 단일 숫자 또는 문자열 값을 반환해야 합니다: number | string

- 적용 시나리오: 주석선(수평선, 수직선)에 필요한 동적 값

- 사용 금지: eval, Function, 비동기 작업, DOM API, 네트워크 요청

예시 sales 최대값을 주석선 값으로 가져오기

const maxSales = _.maxBy(data, 'sales')?.sales;
return maxSales || 0;

평균값을 계산해 주석선에 사용

const avgSales = _.meanBy(data, 'sales');
return _.round(avgSales, 2);

분위수 값을 주석선으로 가져오기

const sorted = _.sortBy(data, 'sales');
const index = Math.floor(sorted.length * 0.75);
return sorted[index]?.sales || 0;

조건에 따라 목표값 계산

const currentYearTotal = _.sumBy(
_.filter(data, item => item.year === 2024),
'sales'
);
return currentYearTotal;

fallback

Type: string | number | undefined

설명

Fallback strategy when code execution fails or the environment is not supported.

result

Type: { success: boolean; data?: number | string; } | undefined

설명

동적 필터 실행 결과(런타임 필드)

prepare() 단계에서 기록되며 런타임에는 읽기 전용입니다

success

Type: false | true

data

Type: string | number | undefined

text

Type: string | string[] | undefined

설명

Written during the prepare() phase; read-only at runtime.

예시 'Annotation text'

textPosition

Type: "outsideStart" | "outsideEnd" | "outsideMiddle" | "insideStart" | "insideMiddle" | "insideEnd" | undefined

설명

텍스트 위치

주석선 라벨의 위치입니다(선에 대한 상대 위치).

예시 'outsideEnd'

textColor

Type: string | undefined

설명

center: Text is centered in the annotation area; the center of the text aligns with the area.

예시 'red'

textFontSize

Type: number | undefined

설명

Vertical text alignment; typically set to 'top' so text appears at the bottom of the annotation area, ensuring it remains within the visible area of the chart.

예시 12

textFontWeight

Type: number | undefined

설명

0

예시 400

textAlign

Type: "left" | "right" | "center" | undefined

설명

텍스트 정렬 방식입니다. 일반적으로 설정할 필요가 없습니다

right로 설정하는 것을 권장합니다. 이렇게 하면 텍스트가 주석선의 왼쪽에 위치합니다

right: 텍스트가 기준선의 왼쪽에 있으며, 텍스트의 오른쪽 가장자리가 수평 주석선의 끝점에 맞춰집니다

left: 텍스트가 기준선의 오른쪽에 있으며, 텍스트의 왼쪽 가장자리가 수평 주석선의 끝점에 맞춰집니다

center: 텍스트가 기준선의 중앙에 있으며, 텍스트의 중심이 수평 주석선의 끝점에 맞춰집니다

예시 'right'

textBaseline

Type: "top" | "bottom" | "middle" | undefined

설명

텍스트 세로 정렬 방식입니다. 일반적으로 설정할 필요가 없습니다

'top' 설정을 권장합니다. 이렇게 하면 텍스트 전체가 차트의 보이는 영역 안에 표시됩니다

top: 텍스트가 기준선 아래쪽에 있고 텍스트의 위쪽 가장자리가 수평 주석선에 정렬됩니다

middle: 텍스트가 기준선 중앙에 정렬됩니다

bottom: 텍스트가 기준선 위쪽에 있고 텍스트의 아래쪽 가장자리가 수평 주석선에 정렬됩니다

예시 'top'

textBackgroundVisible

Type: boolean | undefined

설명

배경 표시 여부

예시 true

textBackgroundColor

Type: string | undefined

설명

배경색

예시 'red'

textBackgroundBorderColor

Type: string | undefined

설명

사용자의 필터링 요구 설명(자연어)

예시 코드 실행 실패 또는 환경 미지원 시 fallback 솔루션

textBackgroundBorderWidth

Type: number | undefined

설명

4

AI 생성 JavaScript 필터링 코드

예시 2

textBackgroundBorderRadius

Type: number | undefined

설명

배경 테두리 모서리 반경

예시 4

textBackgroundPadding

Type: number | undefined

설명

배경 안쪽 여백

예시 4

lineVisible

Type: boolean | undefined

설명

선 표시 여부

선 표시 여부

예시 true

lineColor

Type: string | undefined

설명

선 색상

예시 'red'

lineWidth

Type: number | undefined

설명

선 너비

예시 2

lineStyle

Type: "solid" | "dashed" | "dotted" | undefined

설명

주석 영역 테두리 반경

예시 'solid'

splitLine

Type: boolean | { positiveColor?: string; negativeColor?: string; } | undefined

설명

주석 영역 테두리 선 스타일

positiveColor

Type: string | undefined

설명

코드 실행 실패 또는 환경 미지원 시 fallback 솔루션

negativeColor

Type: string | undefined

설명

주석 값보다 작은 부분에 해당하는 기본 색상

annotationArea

Type: AnnotationArea | AnnotationArea[] | undefined

설명

주석 영역 설정입니다. 선택한 데이터를 기반으로 주석 영역의 위치, 스타일 등을 정의합니다.

selector

Type: AreaSelector | AreaSelectors | undefined

설명

차트에서 perspective가 활성화되었거나 지표가 결합된 경우 차원 연동 기능을 활성화할지 여부입니다.

field

Type: string

설명

차원 필드입니다. dimensions 내 항목의 ID입니다.

operator

Type: "in" | "not in" | undefined

설명

Operator

- in: 차원 field 값이 값 목록에 있는 데이터 항목을 선택합니다.

- not in: 차원 field 값이 값 목록에 없는 데이터 항목을 선택합니다.

op

Type: "in" | "not in" | undefined

설명

Operator

- in: 차원 field 값이 값 목록에 있는 데이터 항목을 선택합니다.

- not in: 차원 field 값이 값 목록에 없는 데이터 항목을 선택합니다.

operator와 동일

value

Type: string | number | (string | number)[]

설명

선택된 차원 필드 값입니다. 배열을 지원합니다.

text

Type: string | string[] | undefined

설명

Written during the prepare() phase; read-only at runtime.

예시 'Annotation text'

textPosition

Type: "left" | "top" | "topLeft" | "topRight" | "right" | "bottom" | "bottomLeft" | "bottomRight" | undefined

설명

텍스트 위치

예시 'top'

textColor

Type: string | undefined

설명

center: Text is centered in the annotation area; the center of the text aligns with the area.

예시 'red'

textFontSize

Type: number | undefined

설명

Vertical text alignment; typically set to 'top' so text appears at the bottom of the annotation area, ensuring it remains within the visible area of the chart.

예시 12

textFontWeight

Type: number | undefined

설명

0

예시 400

textAlign

Type: "left" | "right" | "center" | undefined

설명

텍스트 정렬 방식입니다. 일반적으로 right로 설정합니다. 텍스트는 주석 영역의 가운데에 표시되어 차트의 표시 영역 안에 유지됩니다

center로 설정하는 것을 권장합니다. 이렇게 하면 텍스트가 주석 영역의 가운데에 위치합니다

right: 텍스트가 주석 영역의 왼쪽에 있으며, 텍스트의 오른쪽 가장자리가 주석 영역에 맞춰집니다

left: 텍스트가 주석 영역의 오른쪽에 있으며, 텍스트의 왼쪽 가장자리가 주석 영역에 맞춰집니다

center: 텍스트가 주석 영역의 중앙에 있으며, 텍스트의 중심이 주석 영역에 맞춰집니다

예시 'center' Text is in the middle of the annotation area

textBaseline

Type: "top" | "bottom" | "middle" | undefined

설명

텍스트 세로 정렬입니다. 일반적으로 top으로 설정하여 텍스트가 주석 영역 아래쪽에 표시되고 차트의 가시 영역 안에 유지되도록 합니다.

bottom: Text is at the top of the annotation area, with the bottom edge aligned with the area.

top: text is at the bottom of the annotation area; the top edge of the text aligns with the annotation area

middle: text is centered in the annotation area; the center of the text aligns with the annotation area

Order of the polynomial regression

예시 'top' Text is at the bottom of the annotation area

textBackgroundVisible

Type: boolean | undefined

설명

배경 표시 여부

예시 true

textBackgroundColor

Type: string | undefined

설명

배경색

예시 - not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

textBackgroundBorderColor

Type: string | undefined

설명

2

2

예시 - not in: 차원 필드 값이 value에 포함되지 않는 데이터 항목을 선택합니다

textBackgroundBorderWidth

Type: number | undefined

설명

4

예시 차원 필드 값, 배열을 지원합니다

textBackgroundBorderRadius

Type: number | undefined

설명

배경 테두리 모서리 반경

배경 테두리 모서리 반경

예시 4

textBackgroundPadding

Type: number | undefined

설명

배경 안쪽 여백

예시 4

areaColor

Type: string | undefined

설명

주석 영역 채우기 색상

예시 'red'

areaColorOpacity

Type: number | undefined

설명

주석 영역 채우기 불투명도

예시 0.5

areaBorderColor

Type: string | undefined

설명

주석 영역 테두리 색상

예시 'red'

areaBorderWidth

Type: number | undefined

설명

주석 영역 테두리 너비

예시 2

areaBorderRadius

Type: number | undefined

설명

주석 영역 테두리 반경

예시 4

areaLineDash

Type: number[] | undefined

설명

주석 영역 테두리 선 스타일

예시 [2, 2]

outerPadding

Type: number | undefined

설명

연산자

예시 0

dimensionLinkage

Type: DimensionLinkage | undefined

설명

차트에 피벗 기능 또는 지표 조합이 켜져 있을 때 차원 연동 기능을 활성화할지 여부입니다.

특정 차원 값에 hover하면 다른 차트의 동일한 차원 값 데이터를 연동해 강조합니다.

피벗 차트 차원 연동 구성

enable

Type: false | true

설명

피벗 차트 차원 연동을 활성화할지 여부

showTooltip

Type: boolean | undefined

설명

모든 차원에 해당하는 하위 차트의 Tooltip 정보를 표시할지 여부

showLabel

Type: boolean | undefined

설명

crosshair에 해당하는 레이블을 표시할지 여부

locale

Type: "zh-CN" | "en-US" | "ja-JP" | "de-DE" | "id-ID" | "fr-FR" | "ko-KR" | "vi-VN" | undefined

설명

차트 언어 구성입니다. 'zh-CN'과 'en-US' 두 언어를 지원하며 intl.setLocale('zh-CN') 메서드를 호출해 언어를 설정할 수도 있습니다

boxMaxWidth

Type: string | number | undefined

설명

Box Plot의 최대 너비입니다. 절대 픽셀 값 또는 백분율(예: '10%')로 설정할 수 있습니다.

boxGapInGroup

Type: string | number | undefined

설명

그룹화된 Box Plot의 각 그룹 내부 간격입니다. 절대 픽셀 값 또는 백분율(예: '10%')로 설정할 수 있습니다.