ChartConfiguration
맵차트의 기준이 되는 맵과 관련 속성 및 시리즈와 게이지의 기본 타입을 결정하는 중요한 몇가지 속성들과
하위 구성 요소들에 대한 옵션들을 설정한다.
맵차트 생성 시 이 옵션 객체를 구성해서 전달해야 한다.
const chart = RealMap.createChart(doc, 'div', {
.... // 여기에 설정한다.
});typescript (opens in a new tab) 환경에서는 타입을 명시적으로 지정하여
개발 편집기의 typescript 지원을 받을 수 있으므로
설정 객체를 별도로 정의할 수 있다.
const config: ChartConfiguration = {
...
};
const chart = RealMap.createChart(doc, 'div', config);Options
annotation: AnnotationOptionsType | Array (opens in a new tab)<AnnotationOptionsType>
어노테이션 또는 어노테이션 목록.
이 항목이 지정되지 않고 'annotations'가 지정되면 그 항목에 지정된 설정들로 부터 어노테이션들을 생성한다.
default :undefined
asset: AssetOptionsType | Array (opens in a new tab)<AssetOptionsType>
Asset 목록.
default :undefined
assets: AssetOptionsType | Array (opens in a new tab)<AssetOptionsType>
asset과 동일하고, 이 항목이 우선한다.
default :undefined
axis: MapAxisOptions
축 관련 설정.
default :undefined
body: BodyOptions
맵과 시리즈들이 그려지는 영역.
default :undefined
bubbleScale: BubbleScaleOptions | Array (opens in a new tab)<BubbleScaleOptions>
색상자를 하나 이상 설정한다.
default :undefined
chart: ChartGlobalOptions
맵차트 영역 전체에 연관되는 속성들을 설정한다.
default :undefined
colorScale: ColorScaleOptions | Array (opens in a new tab)<ColorScaleOptions>
색상자를 하나 이상 설정한다.
default :undefined
credits: boolean (opens in a new tab) | CreditsOptions
지도나 데이터 원작자 정보 등을 표시하는 서명 영역.
default :undefined
drilldownPanel: boolean (opens in a new tab) | DrilldownPanelOptions
맵차트가 드릴다운 상태일 때 뒤로 가기 버튼(들)이 표시되는 패널.
default :undefined
exporting: ExporterOptions
내보내기 설정.
default :undefined
legend: boolean (opens in a new tab) | LegendOptions | Array (opens in a new tab)<LegendOptions>
시리즈 구성을 직관적으로 이해할 수 있도록 도와주는 범례.
default :undefined
map: MapSourceOptions | Array (opens in a new tab)<MapSourceOptions>
맵차트의 기준이 될 지도 소스 및 관련 옵션.
배열로 둘 이상의 맵을 지정할 수 있다.
default :undefined
mapRegion: MapRegionOptions | Array (opens in a new tab)<MapRegionOptions>
멥리젼 또는 맵리젼 목록.
default :undefined
series: SeriesOptionsType | Array (opens in a new tab)<SeriesOptionsType>
default :undefined
startOfWeek: number (opens in a new tab)
한 주의 시작 요일.
ex) 0: 일요일, 1: 월요일
[주의] 맵차트 로딩 후 변경할 수 없다.
default :undefined
subtitle: string (opens in a new tab) | SubtitleOptions
맵차트 타이틀 주변에 추가롤 표시되는 부제목 영역.
default :undefined
title: string (opens in a new tab) | TitleOptions
맵차트 타이틀 표시 영역.
default :undefined
tooltip: boolean (opens in a new tab) | TooltipOptions
데이터포인트 뷰에 마우스 올라갈 때 표시되는 툴팁 상자.
default :undefined
type: 'map (opens in a new tab)' | 'figure' | 'image' | 'line' | 'point' | 'bar' | 'pie' | 'waffle' | 'bubble' | 'route' | 'feature' | 'pin' | 'vector' | 'heatmap' | 'panel' | 'gauge' | 'clock'
기본 시리즈 type.
시리즈에 type을 지정하지 않으면 이 값으로 지정된 type의 시리즈가 생성된다.
default :'map'
widgetGroup: MapWidgetGroupOptions | Array (opens in a new tab)<MapWidgetGroupOptions>
범례(legend)나 스케일(color/bubble scale) 등의 위젯들을 한 방향으로 배치하는 그룹을 하나 이상 설정한다.
default :undefined
zoomPanel: boolean (opens in a new tab) | ZoomPanelOptions
맵차트가 zoom 가능할 때 zomm 버튼들이 표시되는 패널.
default :undefined