# Radar

여러 지표의 특성을 하나의 윤곽으로 비교합니다.

Canonical: https://chart.syidax.com/ko/docs/components/radar/

<a id="overview"></a>

## sy-radar-chart

같은 척도로 정규화된 제품·팀의 여러 역량을 비교하세요.

축 순서에 따라 도형의 인상이 달라집니다. 단위가 다른 원시값을 그대로 비교하지 마세요.

기본 차트 등급: Community. 추가 렌더러·커스텀 브랜딩 등 기능의 권한은 별도입니다.

| 입력 | 데이터 설명 |
| --- | --- |
| `data` | 각 시리즈는 { name, data, color? }입니다. |
| `categories` | data와 같은 순서의 지표 이름입니다. |
| `min` | max와 함께 공통 측정 범위를 지정합니다. |

- [Components에서 실행하기](https://chart.syidax.com/charts/radar) — 옵션 변경과 프레임워크별 코드
- [공통 설치와 연결](https://chart.syidax.com/ko/docs/getting-started.md)

<a id="example"></a>

## 전체 적용 예제

```html
<div id="chart-container" style="width: 100%; min-width: 0;"></div>

<script type="module">
  import { defineCustomElement as define0 } from '@syidax/advanced/components/sy-radar-chart.js';
  define0();

  const specs = [
    {
      "id": "example-chart",
      "tag": "sy-radar-chart",
      "props": {
        "engine": "standard",
        "categories": ["성능", "품질", "가격", "지원", "확장성"],
        "data": [
          {
            "name": "A",
            "data": [90, 80, 65, 85, 70],
            "color": "#8263d9"
          },
          {
            "name": "B",
            "data": [70, 90, 85, 60, 80],
            "color": "#239c91"
          }
        ],
        "min": 0,
        "max": 100,
        "variant": "area",
        "legend": true,
        "width": 640,
        "height": 360,
        "brandPosition": "bottom-right",
        "brandLogo": ""
      }
    }
  ];
  const container = document.querySelector('#chart-container');
  const elements = specs.map(({ tag, id, props }) => {
    const element = document.createElement(tag);
    element.id = id;
    Object.assign(element, props);
    element.setAttribute('aria-label', 'radar 예제 차트');
    return element;
  });
  container.replaceChildren(...elements);
  const chart = elements.at(-1);
  const onEvent = event => {
    console.log('pointClick', event.detail);
  };
  chart.addEventListener('pointClick', onEvent);
  const observer = new ResizeObserver(([entry]) => {
    const width = Math.max(160, Math.floor(entry.contentRect.width));
    elements.forEach(element => { element.width = width; });
  });
  observer.observe(container);

  // SPA에서는 화면이 해제될 때 이 함수를 호출하세요.
  function disposeChart() {
    observer.disconnect();
    chart.removeEventListener('pointClick', onEvent);
    container.replaceChildren();
  }
</script>
```

<a id="props"></a>

## Properties

<a id="property-data"></a>

### data

각 시리즈는 { name, data, color? }입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `data` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `RadarChartData` |
| 기본값 | `[]` |

- [RadarChartData](https://chart.syidax.com/ko/docs/types/RadarChartData.md) — 타입 정의

<a id="property-categories"></a>

### categories

data와 같은 순서의 지표 이름입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `categories` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `string[]` |
| 기본값 | `[]` |

<a id="property-min"></a>

### min

max와 함께 공통 측정 범위를 지정합니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `min` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `number \| 'auto'` |
| 기본값 | `'auto'` |
| 타입에 포함된 리터럴 | `auto` |

<a id="property-max"></a>

### max

허용값: auto. 기본값: 'auto'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `max` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `number \| 'auto'` |
| 기본값 | `'auto'` |
| 타입에 포함된 리터럴 | `auto` |

<a id="property-tickInterval"></a>

### tickInterval

허용값: auto. 기본값: 'auto'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `tickInterval` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `number \| 'auto'` |
| 기본값 | `'auto'` |
| 타입에 포함된 리터럴 | `auto` |

<a id="property-width"></a>

### width

차트의 너비를 px 단위로 지정합니다. 컨테이너 너비가 변하는 앱에서는 ResizeObserver에서 width를 갱신하세요.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `width` |
| HTML attribute | `width` |
| 타입 | `number` |
| 기본값 | `360` |

<a id="property-height"></a>

### height

차트의 높이를 px 단위로 지정합니다. 축, 제목과 범례가 차지하는 공간을 함께 고려하세요.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `height` |
| HTML attribute | `height` |
| 타입 | `number` |
| 기본값 | `360` |

<a id="property-brandLogo"></a>

### brandLogo

기본값은 Syidax 심볼과 워드마크입니다. Pro의 chart.branding 권한으로 none을 지정해 제거하거나 PNG·JPEG·WebP data URL로 교체할 수 있습니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `brandLogo` |
| HTML attribute | `brand-logo` |
| 타입 | `string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-brandPosition"></a>

### brandPosition

로고를 고정할 코너입니다. Community·Pro 모두 네 코너 중 하나를 선택할 수 있으며 화면과 이미지 내보내기에 같은 위치를 사용합니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `brandPosition` |
| HTML attribute | `brand-position` |
| 타입 | `'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right'` |
| 기본값 | `'bottom-right'` |
| 허용값 | `top-left`, `top-right`, `bottom-left`, `bottom-right` |

<a id="property-variant"></a>

### variant

허용값: area, line. 기본값: 'line'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `variant` |
| HTML attribute | `variant` |
| 타입 | `RadarChartVariant` |
| 기본값 | `'line'` |
| 허용값 | `area`, `line` |

- [RadarChartVariant](https://chart.syidax.com/ko/docs/types/RadarChartVariant.md) — 타입 정의

<a id="property-startAngle"></a>

### startAngle

Angle of category 0 in DEGREES (0 = 12 o'clock, clockwise +).

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `startAngle` |
| HTML attribute | `start-angle` |
| 타입 | `number` |
| 기본값 | `0` |

<a id="property-size"></a>

### size

JavaScript 프로퍼티로 전달합니다. 타입: number | string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `size` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `number \| string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-centerX"></a>

### centerX

JavaScript 프로퍼티로 전달합니다. 타입: number | string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `centerX` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `number \| string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-centerY"></a>

### centerY

JavaScript 프로퍼티로 전달합니다. 타입: number | string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `centerY` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `number \| string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-color"></a>

### color

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `color` |
| HTML attribute | `color` |
| 타입 | `string` |
| 기본값 | `'#2563eb'` |

<a id="property-colors"></a>

### colors

Multi-series palette. Per-series `color` always wins.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `colors` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `ReadonlyArray<string>` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-lineWidth"></a>

### lineWidth

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: number.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `lineWidth` |
| HTML attribute | `line-width` |
| 타입 | `number` |
| 기본값 | `2` |

<a id="property-fillOpacity"></a>

### fillOpacity

Area-variant fill alpha (0..1).

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `fillOpacity` |
| HTML attribute | `fill-opacity` |
| 타입 | `number` |
| 기본값 | `0.25` |

<a id="property-gridShape"></a>

### gridShape

허용값: circle, polygon. 기본값: 'polygon'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `gridShape` |
| HTML attribute | `grid-shape` |
| 타입 | `RadarGridShape` |
| 기본값 | `'polygon'` |
| 허용값 | `circle`, `polygon` |

- [RadarGridShape](https://chart.syidax.com/ko/docs/types/RadarGridShape.md) — 타입 정의

<a id="property-gridColor"></a>

### gridColor

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `gridColor` |
| HTML attribute | `grid-color` |
| 타입 | `string` |
| 기본값 | `'#e5e7eb'` |

<a id="property-showMarkers"></a>

### showMarkers

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: boolean.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `showMarkers` |
| HTML attribute | `show-markers` |
| 타입 | `boolean` |
| 기본값 | `true` |

<a id="property-markerRadius"></a>

### markerRadius

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: number.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `markerRadius` |
| HTML attribute | `marker-radius` |
| 타입 | `number` |
| 기본값 | `3` |

<a id="property-showRingLabels"></a>

### showRingLabels

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: boolean.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `showRingLabels` |
| HTML attribute | `show-ring-labels` |
| 타입 | `boolean` |
| 기본값 | `true` |

<a id="property-ringLabelColor"></a>

### ringLabelColor

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `ringLabelColor` |
| HTML attribute | `ring-label-color` |
| 타입 | `string` |
| 기본값 | `'#9ca3af'` |

<a id="property-ringLabelFontSize"></a>

### ringLabelFontSize

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: number.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `ringLabelFontSize` |
| HTML attribute | `ring-label-font-size` |
| 타입 | `number` |
| 기본값 | `10` |

<a id="property-ringLabelFormat"></a>

### ringLabelFormat

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `ringLabelFormat` |
| HTML attribute | `ring-label-format` |
| 타입 | `string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-categoryLabelColor"></a>

### categoryLabelColor

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `categoryLabelColor` |
| HTML attribute | `category-label-color` |
| 타입 | `string` |
| 기본값 | `'#374151'` |

<a id="property-categoryLabelFontSize"></a>

### categoryLabelFontSize

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: number.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `categoryLabelFontSize` |
| HTML attribute | `category-label-font-size` |
| 타입 | `number` |
| 기본값 | `12` |

<a id="property-chartTitle"></a>

### chartTitle

차트 내부 제목입니다. 데이터의 단위와 의미를 함께 설명하세요.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `chartTitle` |
| HTML attribute | `chart-title` |
| 타입 | `string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-chartSubtitle"></a>

### chartSubtitle

차트 내부 부제목입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `chartSubtitle` |
| HTML attribute | `chart-subtitle` |
| 타입 | `string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-tooltipShow"></a>

### tooltipShow

내장 툴팁 표시 여부입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `tooltipShow` |
| HTML attribute | `tooltip-show` |
| 타입 | `boolean` |
| 기본값 | `true` |

<a id="property-tooltipFormat"></a>

### tooltipFormat

JavaScript 프로퍼티로 전달합니다. 타입: (detail: RadarChartPointerEventDetail) => string.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `tooltipFormat` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `(detail: RadarChartPointerEventDetail) => string` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="property-tooltip"></a>

### tooltip

포인터에 따라 표시할 값, 위치, 내용의 툴팁 설정입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `tooltip` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `RadarChartTooltipInput` |
| 기본값 | `undefined` |
| 타입에 포함된 리터럴 | `auto`, `off` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

- [RadarChartTooltipInput](https://chart.syidax.com/ko/docs/types/RadarChartTooltipInput.md) — 타입 정의

<a id="property-enableMouseTracking"></a>

### enableMouseTracking

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: boolean.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `enableMouseTracking` |
| HTML attribute | `enable-mouse-tracking` |
| 타입 | `boolean` |
| 기본값 | `true` |

<a id="property-crosshair"></a>

### crosshair

Crosshair guide — the SAME parameter names as the cartesian charts, read on the polar pane. Off by default. Accepts `true` / a partial spec `{ show, mode, snap, color, dash }`. `mode 'vertical'` → the category axis guide = a radial spoke; `mode 'horizontal'` → the value axis guide = a concentric ring; `mode 'cross'` → both. `snap 'nearest'` snaps to the nearest vertex, `'index'` to the nearest category, `'off'` is the raw pointer. Objects can't ride an attribute — set it as a property (or via a `<sy-chart>` script).

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `crosshair` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `CartesianCrosshairInput` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

- [CartesianCrosshairInput](https://chart.syidax.com/ko/docs/types/CartesianCrosshairInput.md) — 타입 정의

<a id="property-legend"></a>

### legend

시리즈 또는 항목의 범례 표시 여부입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `legend` |
| HTML attribute | `legend` |
| 타입 | `boolean` |
| 기본값 | `false` |

<a id="property-legendPosition"></a>

### legendPosition

범례를 배치할 위치입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `legendPosition` |
| HTML attribute | `legend-position` |
| 타입 | `RadarChartLegendPosition` |
| 기본값 | `'bottom'` |
| 허용값 | `top`, `bottom`, `left`, `right` |

- [RadarChartLegendPosition](https://chart.syidax.com/ko/docs/types/RadarChartLegendPosition.md) — 타입 정의

<a id="property-legendItems"></a>

### legendItems

JavaScript 프로퍼티로 전달합니다. 타입: LegendItem[].

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `legendItems` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `LegendItem[]` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

- [LegendItem](https://chart.syidax.com/ko/docs/types/LegendItem.md) — 타입 정의

<a id="property-activeSeriesIndex"></a>

### activeSeriesIndex

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: number.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `activeSeriesIndex` |
| HTML attribute | `active-series-index` |
| 타입 | `number` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-seriesActiveTrigger"></a>

### seriesActiveTrigger

허용값: hover, click, custom. 기본값: 'click'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `seriesActiveTrigger` |
| HTML attribute | `series-active-trigger` |
| 타입 | `RadarChartSeriesActiveTrigger` |
| 기본값 | `'click'` |
| 허용값 | `hover`, `click`, `custom` |

- [RadarChartSeriesActiveTrigger](https://chart.syidax.com/ko/docs/types/RadarChartSeriesActiveTrigger.md) — 타입 정의

<a id="property-animated"></a>

### animated

초기 표시와 데이터 변경의 애니메이션 사용 여부입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `animated` |
| HTML attribute | `animate` |
| 타입 | `boolean` |
| 기본값 | `false` |

<a id="property-animationDuration"></a>

### animationDuration

애니메이션 지속 시간(ms).

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `animationDuration` |
| HTML attribute | `animation-duration` |
| 타입 | `number` |
| 기본값 | `450` |

<a id="property-animationEasing"></a>

### animationEasing

허용값: linear, ease-out, ease-in, ease-in-out. 기본값: 'ease-out'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `animationEasing` |
| HTML attribute | `animation-easing` |
| 타입 | `RadarChartEasing` |
| 기본값 | `'ease-out'` |
| 허용값 | `linear`, `ease-out`, `ease-in`, `ease-in-out` |

- [RadarChartEasing](https://chart.syidax.com/ko/docs/types/RadarChartEasing.md) — 타입 정의

<a id="property-animationType"></a>

### animationType

허용값: initial, update. 기본값: undefined.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `animationType` |
| HTML attribute | `animation-type` |
| 타입 | `RadarChartAnimationType` |
| 기본값 | `undefined` |
| 허용값 | `initial`, `update` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

- [RadarChartAnimationType](https://chart.syidax.com/ko/docs/types/RadarChartAnimationType.md) — 타입 정의

<a id="property-editable"></a>

### editable

Enables direct pointer editing of point values.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `editable` |
| HTML attribute | `editable` |
| 타입 | `boolean` |
| 기본값 | `false` |

<a id="property-streamSource"></a>

### streamSource

실시간 데이터를 전달하는 스트림 소스입니다. 해당 타입의 계약을 확인하세요.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `streamSource` |
| HTML attribute | 객체·배열·콜백은 JavaScript 프로퍼티로 전달 |
| 타입 | `RadarChartStreamSource` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

- [RadarChartStreamSource](https://chart.syidax.com/ko/docs/types/RadarChartStreamSource.md) — 타입 정의

<a id="property-streamWindow"></a>

### streamWindow

화면에 유지할 스트리밍 데이터 구간입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `streamWindow` |
| HTML attribute | `stream-window` |
| 타입 | `number` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-streamMax"></a>

### streamMax

보관할 스트리밍 데이터의 최대 수입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `streamMax` |
| HTML attribute | `stream-max` |
| 타입 | `number` |
| 기본값 | `undefined` |

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

<a id="property-engine"></a>

### engine

auto·standard·pro 렌더러 선택입니다. 엔진 선택은 차트 종류의 Pro 사용 권한과 별개입니다.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `engine` |
| HTML attribute | `engine` |
| 타입 | `RadarChartEngineMode` |
| 기본값 | `'auto'` |
| 허용값 | `auto`, `standard`, `pro` |

- [RadarChartEngineMode](https://chart.syidax.com/ko/docs/types/RadarChartEngineMode.md) — 타입 정의

<a id="property-proThreshold"></a>

### proThreshold

HTML attribute 또는 JavaScript 프로퍼티로 설정합니다. 타입: number.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `proThreshold` |
| HTML attribute | `pro-threshold` |
| 타입 | `number` |
| 기본값 | `50_000` |

<a id="property-unavailable"></a>

### unavailable

허용값: fallback, error, throw. 기본값: 'fallback'.

| 항목 | 값 |
| --- | --- |
| JavaScript 프로퍼티 | `unavailable` |
| HTML attribute | `unavailable` |
| 타입 | `RadarChartUnavailableBehaviour` |
| 기본값 | `'fallback'` |
| 허용값 | `fallback`, `error`, `throw` |

- [RadarChartUnavailableBehaviour](https://chart.syidax.com/ko/docs/types/RadarChartUnavailableBehaviour.md) — 타입 정의

<a id="events"></a>

## Events

<a id="event-rendered"></a>

### rendered

차트 그리기가 완료되면 렌더링 결과를 detail로 전달합니다.

이벤트 이름: `rendered`. 대소문자를 구분합니다. payload는 `CustomEvent<RadarChartRenderResult & { tier: RadarChartEngineTier }>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('rendered', event => {
  console.log(event.detail); // RadarChartRenderResult & { tier: RadarChartEngineTier }
});
```

- [RadarChartRenderResult](https://chart.syidax.com/ko/docs/types/RadarChartRenderResult.md) — 타입 정의
- [RadarChartEngineTier](https://chart.syidax.com/ko/docs/types/RadarChartEngineTier.md) — 타입 정의

<a id="event-pointClick"></a>

### pointClick

점 선택 이벤트입니다. CustomEvent.detail에서 선택한 데이터와 인덱스를 읽습니다.

이벤트 이름: `pointClick`. 대소문자를 구분합니다. payload는 `CustomEvent<RadarChartPointerEventDetail>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('pointClick', event => {
  console.log(event.detail); // RadarChartPointerEventDetail
});
```

- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="event-pointHover"></a>

### pointHover

CustomEvent.detail 타입: RadarChartPointerEventDetail | null. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `pointHover`. 대소문자를 구분합니다. payload는 `CustomEvent<RadarChartPointerEventDetail | null>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('pointHover', event => {
  console.log(event.detail); // RadarChartPointerEventDetail | null
});
```

- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="event-crosshairMove"></a>

### crosshairMove

CustomEvent.detail 타입: CartesianCrosshairEventDetail | null. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `crosshairMove`. 대소문자를 구분합니다. payload는 `CustomEvent<CartesianCrosshairEventDetail | null>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('crosshairMove', event => {
  console.log(event.detail); // CartesianCrosshairEventDetail | null
});
```

- [CartesianCrosshairEventDetail](https://chart.syidax.com/ko/docs/types/CartesianCrosshairEventDetail.md) — 타입 정의

<a id="event-pointContextMenu"></a>

### pointContextMenu

CustomEvent.detail 타입: ChartPointContextMenuEventDetail<RadarChartPointerEventDetail>. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `pointContextMenu`. 대소문자를 구분합니다. payload는 `CustomEvent<ChartPointContextMenuEventDetail<RadarChartPointerEventDetail>>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('pointContextMenu', event => {
  console.log(event.detail); // ChartPointContextMenuEventDetail<RadarChartPointerEventDetail>
});
```

- [ChartPointContextMenuEventDetail](https://chart.syidax.com/ko/docs/types/ChartPointContextMenuEventDetail.md) — 타입 정의
- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="event-pointChange"></a>

### pointChange

CustomEvent.detail 타입: RadarChartPointerEventDetail. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `pointChange`. 대소문자를 구분합니다. payload는 `CustomEvent<RadarChartPointerEventDetail>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('pointChange', event => {
  console.log(event.detail); // RadarChartPointerEventDetail
});
```

- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="event-legendItemClick"></a>

### legendItemClick

CustomEvent.detail 타입: { index: number; seriesId: string; label: string; disabled: boolean }. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `legendItemClick`. 대소문자를 구분합니다. payload는 `CustomEvent<{ index: number; seriesId: string; label: string; disabled: boolean }>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('legendItemClick', event => {
  console.log(event.detail); // { index: number; seriesId: string; label: string; disabled: boolean }
});
```

<a id="event-seriesToggled"></a>

### seriesToggled

CustomEvent.detail 타입: { index: number; seriesId: string; disabled: boolean }. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `seriesToggled`. 대소문자를 구분합니다. payload는 `CustomEvent<{ index: number; seriesId: string; disabled: boolean }>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('seriesToggled', event => {
  console.log(event.detail); // { index: number; seriesId: string; disabled: boolean }
});
```

<a id="event-appended"></a>

### appended

CustomEvent.detail 타입: { count: number }. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `appended`. 대소문자를 구분합니다. payload는 `CustomEvent<{ count: number }>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('appended', event => {
  console.log(event.detail); // { count: number }
});
```

<a id="event-windowSlid"></a>

### windowSlid

CustomEvent.detail 타입: { dropped: number }. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `windowSlid`. 대소문자를 구분합니다. payload는 `CustomEvent<{ dropped: number }>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('windowSlid', event => {
  console.log(event.detail); // { dropped: number }
});
```

<a id="event-chartAnimationStart"></a>

### chartAnimationStart

CustomEvent.detail 타입: void. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `chartAnimationStart`. 대소문자를 구분합니다. payload는 `CustomEvent<void>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('chartAnimationStart', event => {
  console.log(event.detail); // void
});
```

<a id="event-chartAnimationEnd"></a>

### chartAnimationEnd

CustomEvent.detail 타입: void. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `chartAnimationEnd`. 대소문자를 구분합니다. payload는 `CustomEvent<void>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('chartAnimationEnd', event => {
  console.log(event.detail); // void
});
```

<a id="event-chartAnimationInterrupted"></a>

### chartAnimationInterrupted

CustomEvent.detail 타입: void. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `chartAnimationInterrupted`. 대소문자를 구분합니다. payload는 `CustomEvent<void>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('chartAnimationInterrupted', event => {
  console.log(event.detail); // void
});
```

<a id="event-tooltipShow"></a>

### tooltipShow

내장 툴팁 표시 여부입니다.

이벤트 이름: `tooltipShow`. 대소문자를 구분합니다. payload는 `CustomEvent<RadarChartTooltipShowEventDetail>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('tooltipShow', event => {
  console.log(event.detail); // RadarChartTooltipShowEventDetail
});
```

- [RadarChartTooltipShowEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartTooltipShowEventDetail.md) — 타입 정의

<a id="event-tooltipHide"></a>

### tooltipHide

CustomEvent.detail 타입: void. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `tooltipHide`. 대소문자를 구분합니다. payload는 `CustomEvent<void>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('tooltipHide', event => {
  console.log(event.detail); // void
});
```

<a id="event-tooltipAction"></a>

### tooltipAction

CustomEvent.detail 타입: RadarChartTooltipActionEventDetail. 이벤트 이름은 대소문자를 구분합니다.

이벤트 이름: `tooltipAction`. 대소문자를 구분합니다. payload는 `CustomEvent<RadarChartTooltipActionEventDetail>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('tooltipAction', event => {
  console.log(event.detail); // RadarChartTooltipActionEventDetail
});
```

- [RadarChartTooltipActionEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartTooltipActionEventDetail.md) — 타입 정의

<a id="methods"></a>

## Methods

<a id="method-redraw"></a>

### redraw

현재 데이터와 옵션으로 차트를 다시 그립니다. 반환되는 Promise가 완료되면 렌더링 결과를 확인할 수 있습니다.

```typescript
redraw(): Promise<RadarChartRenderResult>
```

반환 타입: `Promise<RadarChartRenderResult>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartRenderResult](https://chart.syidax.com/ko/docs/types/RadarChartRenderResult.md) — 타입 정의

<a id="method-getActiveTier"></a>

### getActiveTier

비동기 메서드입니다. 아래 인수 타입과 반환 타입을 확인하세요.

```typescript
getActiveTier(): Promise<RadarChartEngineTier>
```

반환 타입: `Promise<RadarChartEngineTier>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartEngineTier](https://chart.syidax.com/ko/docs/types/RadarChartEngineTier.md) — 타입 정의

<a id="method-setData"></a>

### setData

Replace the bar set.

```typescript
setData(data: RadarChartData): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `data` | `RadarChartData` | 필수 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartData](https://chart.syidax.com/ko/docs/types/RadarChartData.md) — 타입 정의

<a id="method-addSeries"></a>

### addSeries

비동기 메서드입니다. 아래 인수 타입과 반환 타입을 확인하세요.

```typescript
addSeries(series: RadarChartData[number], opts?: { insertAt?: number }): Promise<number>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `series` | `RadarChartData[number]` | 필수 |
| `opts` | `{ insertAt?: number }` | 선택 |

반환 타입: `Promise<number>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartData](https://chart.syidax.com/ko/docs/types/RadarChartData.md) — 타입 정의

<a id="method-removeSeries"></a>

### removeSeries

비동기 메서드입니다. 아래 인수 타입과 반환 타입을 확인하세요.

```typescript
removeSeries(idOrIndex: string | number): Promise<boolean>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | 필수 |

반환 타입: `Promise<boolean>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-updateSeries"></a>

### updateSeries

비동기 메서드입니다. 아래 인수 타입과 반환 타입을 확인하세요.

```typescript
updateSeries(idOrIndex: string | number, patch: Partial<RadarChartData[number]>): Promise<boolean>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | 필수 |
| `patch` | `Partial<RadarChartData[number]>` | 필수 |

반환 타입: `Promise<boolean>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartData](https://chart.syidax.com/ko/docs/types/RadarChartData.md) — 타입 정의

<a id="method-updatePoint"></a>

### updatePoint

Radar-only — patch one category value in a series.

```typescript
updatePoint(seriesIdOrIndex: string | number, categoryIdOrIndex: string | number, value: number | null): Promise<boolean>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `seriesIdOrIndex` | `string \| number` | 필수 |
| `categoryIdOrIndex` | `string \| number` | 필수 |
| `value` | `number \| null` | 필수 |

반환 타입: `Promise<boolean>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-appendPoint"></a>

### appendPoint

스트림에 값 하나를 추가합니다. 메서드 인수 타입과 스트리밍 기능의 라이선스 조건을 확인하세요.

```typescript
appendPoint(frame: RadarStreamFrame): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `frame` | `RadarStreamFrame` | 필수 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarStreamFrame](https://chart.syidax.com/ko/docs/types/RadarStreamFrame.md) — 타입 정의

<a id="method-appendBatch"></a>

### appendBatch

스트림에 여러 값을 한 번에 추가합니다. 메서드 인수 타입과 스트리밍 기능의 라이선스 조건을 확인하세요.

```typescript
appendBatch(frames: ReadonlyArray<RadarStreamFrame>): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `frames` | `ReadonlyArray<RadarStreamFrame>` | 필수 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarStreamFrame](https://chart.syidax.com/ko/docs/types/RadarStreamFrame.md) — 타입 정의

<a id="method-shift"></a>

### shift

Drop the oldest streamed categories (the `data` boxes are not the stream).

```typescript
shift(count?: number): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `count` | `number` | 선택 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-replace"></a>

### replace

Swap the streamed set (`replace([])` clears it); the base `values` never leave. Without `chart.streaming` the dies upsert into the base like a batch (quietly: no `appended`, no `binChanged`, as a ring replace).

```typescript
replace(frames: ReadonlyArray<RadarStreamFrame>): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `frames` | `ReadonlyArray<RadarStreamFrame>` | 필수 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarStreamFrame](https://chart.syidax.com/ko/docs/types/RadarStreamFrame.md) — 타입 정의

<a id="method-getStreamSource"></a>

### getStreamSource

The stream session's source (Chart Pro): like the stream methods it waits for a license still being confirmed.

```typescript
getStreamSource(): Promise<RadarChartStreamSource | undefined>
```

반환 타입: `Promise<RadarChartStreamSource | undefined>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartStreamSource](https://chart.syidax.com/ko/docs/types/RadarChartStreamSource.md) — 타입 정의

<a id="method-setAnimation"></a>

### setAnimation

비동기 메서드입니다. 아래 인수 타입과 반환 타입을 확인하세요.

```typescript
setAnimation(options: { duration?: number; easing?: RadarChartEasing; enabled?: boolean; type?: RadarChartAnimationType }): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `options` | `{ duration?: number; easing?: RadarChartEasing; enabled?: boolean; type?: RadarChartAnimationType }` | 필수 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartEasing](https://chart.syidax.com/ko/docs/types/RadarChartEasing.md) — 타입 정의
- [RadarChartAnimationType](https://chart.syidax.com/ko/docs/types/RadarChartAnimationType.md) — 타입 정의

<a id="method-pauseAnimation"></a>

### pauseAnimation

진행 중인 애니메이션을 일시 정지합니다.

```typescript
pauseAnimation(): Promise<void>
```

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-resumeAnimation"></a>

### resumeAnimation

일시 정지한 애니메이션을 다시 진행합니다.

```typescript
resumeAnimation(): Promise<void>
```

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-replayAnimation"></a>

### replayAnimation

Replay the initial sweep from min → value(s). No-op when animation is off / reduced.

```typescript
replayAnimation(): Promise<void>
```

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-hitTest"></a>

### hitTest

The box under a host-local CSS point (the nearest slot, within half a pitch), or null.

```typescript
hitTest(cssX: number, cssY: number): Promise<RadarChartPointerEventDetail | null>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `cssX` | `number` | 필수 |
| `cssY` | `number` | 필수 |

반환 타입: `Promise<RadarChartPointerEventDetail | null>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="method-showTooltipAt"></a>

### showTooltipAt

비동기 메서드입니다. 아래 인수 타입과 반환 타입을 확인하세요.

```typescript
showTooltipAt(seriesIndex: number, categoryIndex: number): Promise<RadarChartPointerEventDetail | null>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `seriesIndex` | `number` | 필수 |
| `categoryIndex` | `number` | 필수 |

반환 타입: `Promise<RadarChartPointerEventDetail | null>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [RadarChartPointerEventDetail](https://chart.syidax.com/ko/docs/types/RadarChartPointerEventDetail.md) — 타입 정의

<a id="method-hideTooltip"></a>

### hideTooltip

현재 표시 중인 툴팁을 닫습니다.

```typescript
hideTooltip(): Promise<void>
```

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

<a id="method-getEngineStatus"></a>

### getEngineStatus

Requested engine vs what runs, and why (CHART-ADD-08): always Standard (this type has no WebGPU renderer); read without side effects, never consults the license.

```typescript
getEngineStatus(): Promise<ChartEngineStatus>
```

반환 타입: `Promise<ChartEngineStatus>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [ChartEngineStatus](https://chart.syidax.com/ko/docs/types/ChartEngineStatus.md) — 타입 정의
