stz-chart-maker 2.3.6 → 2.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { ChartTypeRegistry, ChartType, ChartDataset, GridLineOptions, FontSpec, Tick, PluginOptionsByType, Chart as Chart$1, ChartOptions, ChartEvent, ActiveElement, LegendOptions, TooltipOptions, Plugin as Plugin$1, TooltipItem } from 'chart.js';
1
+ import { ChartTypeRegistry, ChartType, ChartDataset, GridLineOptions, FontSpec, Tick, Chart as Chart$1, ChartOptions, PluginOptionsByType, ChartEvent, ActiveElement, LegendOptions, TooltipOptions, Plugin as Plugin$1, TooltipItem } from 'chart.js';
2
2
  import { TreemapControllerDatasetOptions } from 'chartjs-chart-treemap';
3
- import { ZoomPluginOptions } from 'chartjs-plugin-zoom/types/options';
3
+ import { ZoomOptions, PanOptions, LimitOptions, ScaleLimits } from 'chartjs-plugin-zoom/types/options';
4
4
 
5
5
  /**
6
6
  * ═════════════════════════════════════════════════════════════
@@ -246,23 +246,63 @@ interface CommonAxesSacels {
246
246
  * ═════════════════════════════════════════════════════════════
247
247
  */
248
248
 
249
- interface PanOptions {
250
- enabled: boolean;
251
- mode?: 'x' | 'y' | 'xy';
252
- modifierKey?: 'ctrl' | 'alt' | 'shift' | 'meta' | null;
253
- scaleMode?: 'x' | 'y' | 'xy' | undefined;
254
- overScaleMode?: 'x' | 'y' | 'xy' | undefined;
255
- threshold?: number;
256
- }
257
- interface ZoomLimit {
258
- min?: number;
259
- max?: number;
260
- }
261
- type ZoomLimits = Record<string, ZoomLimit>;
262
- interface CustomZoomType<TType extends ChartType = ChartType> extends PluginOptionsByType<TType> {
263
- zoom: ZoomPluginOptions;
249
+ type AutoZoomLimitMode = 'original' | 'data';
250
+ /**
251
+ * 자동 zoom limit 계산 모드입니다.
252
+ *
253
+ * - `original`: 초기 렌더 시점의 차트 범위를 사용합니다.
254
+ * - `data`: 현재 데이터 값에서 min/max를 계산합니다.
255
+ *
256
+ * @group Zoom
257
+ */
258
+ type AutoZoomLimits = AutoZoomLimitMode | Partial<Record<string, AutoZoomLimitMode | false>>;
259
+ type ZoomScaleLimits = ScaleLimits;
260
+ type ZoomLimitOptions = LimitOptions;
261
+ /**
262
+ * `setZoom()` / `addZoom()`에서 사용하는 `chartjs-plugin-zoom` 호환 옵션입니다.
263
+ *
264
+ * `limits`는 하위 plugin으로 그대로 전달됩니다.
265
+ * `autoLimits`는 `stz-chart-maker`가 제공하는 편의 옵션이며, 마운트 전에 `limits`로 변환됩니다.
266
+ *
267
+ * @example
268
+ * ```ts
269
+ * chart.setZoom(true, {
270
+ * limits: {
271
+ * x: { min: 'original', max: 'original' },
272
+ * y: { min: 0, max: 100 },
273
+ * },
274
+ * });
275
+ * ```
276
+ *
277
+ * @example
278
+ * ```ts
279
+ * chart.setZoom(true, {
280
+ * autoLimits: 'original',
281
+ * });
282
+ * ```
283
+ *
284
+ * @example
285
+ * ```ts
286
+ * chart.setZoom(true, {
287
+ * autoLimits: { x: 'original', y1: 'data' },
288
+ * });
289
+ * ```
290
+ *
291
+ * @group Zoom
292
+ */
293
+ interface CustomZoomType {
294
+ zoom?: ZoomOptions;
264
295
  pan?: PanOptions;
265
- zoomLimits?: ZoomLimits;
296
+ limits?: ZoomLimitOptions;
297
+ /**
298
+ * @deprecated `limits`를 사용하세요.
299
+ */
300
+ zoomLimits?: ZoomLimitOptions;
301
+ /**
302
+ * `original`은 초기 렌더 범위를, `data`는 현재 데이터 범위를 기준으로 zoom 한계를 자동 설정합니다.
303
+ * 문자열을 주면 `x`, `y` 축 모두에 적용되고, 객체를 주면 축/scale id별로 개별 설정할 수 있습니다.
304
+ */
305
+ autoLimits?: AutoZoomLimits;
266
306
  }
267
307
  type DeepPartialZoomType = DeepPartial<CustomZoomType>;
268
308
 
@@ -337,6 +377,109 @@ interface StreamingOptions {
337
377
  onRefresh?: (chart: Chart$1) => void;
338
378
  }
339
379
 
380
+ /**
381
+ * `spinnerOverlay`에서 사용하는 인라인 스타일 맵입니다.
382
+ * 키는 CSS 속성명이며 값은 `HTMLElement.style.setProperty(...)`로 적용됩니다.
383
+ *
384
+ * @group Spinner Overlay
385
+ */
386
+ type SpinnerOverlayStyle = Record<string, string | number>;
387
+ /**
388
+ * 사용자 정의 spinner 렌더러에 전달되는 컨텍스트 객체입니다.
389
+ *
390
+ * @group Spinner Overlay
391
+ */
392
+ interface SpinnerOverlayRenderContext {
393
+ /** `build(id)` 또는 `_chartId`로 지정된 안정적인 차트 id입니다. */
394
+ chartId: string;
395
+ }
396
+ /**
397
+ * DOM 오버레이에 사용할 사용자 정의 spinner 콘텐츠입니다.
398
+ *
399
+ * - `string`: `innerHTML`로 삽입됩니다.
400
+ * - `HTMLElement`: 마운트 전에 복제되어 사용됩니다.
401
+ * - `function`: 현재 차트 id를 받아 마운트 시점에 호출됩니다.
402
+ *
403
+ * @group Spinner Overlay
404
+ */
405
+ type SpinnerOverlaySpinnerContent = string | HTMLElement | ((context: SpinnerOverlayRenderContext) => string | HTMLElement);
406
+ /**
407
+ * {@link mountChart} 와 `setChartConfig({ spinnerOverlay: ... })` 에서 사용하는 DOM 오버레이 설정입니다.
408
+ *
409
+ * 이 기능은 Chart.js canvas plugin이 아닙니다.
410
+ * `new Chart(...)`가 실행되기 전에 차트 래퍼 DOM 위에 overlay를 만들고,
411
+ * 첫 번째 paint가 끝나면 overlay를 제거합니다.
412
+ *
413
+ * @example
414
+ * ```ts
415
+ * const config = ChartWrapper
416
+ * .create('bar', labels, datasets)
417
+ * .setSpinnerOverlay({
418
+ * enabled: true,
419
+ * text: '차트 준비 중...',
420
+ * minVisibleMs: 200,
421
+ * overlayStyle: {
422
+ * background: 'rgba(255,255,255,0.94)'
423
+ * },
424
+ * })
425
+ * .build('sales-chart');
426
+ * ```
427
+ *
428
+ * @example
429
+ * ```ts
430
+ * setChartConfig({
431
+ * spinnerOverlay: {
432
+ * enabled: true,
433
+ * text: '로딩 중...',
434
+ * },
435
+ * });
436
+ * ```
437
+ *
438
+ * @example
439
+ * ```ts
440
+ * chart.setSpinnerOverlay({
441
+ * enabled: true,
442
+ * text: '라인 경로 계산 중',
443
+ * spinner: () => {
444
+ * const spinner = document.createElement('div');
445
+ * spinner.innerHTML = '<svg width="42" height="42" viewBox="0 0 42 42"><circle cx="21" cy="21" r="18" fill="none" stroke="#bfdbfe" stroke-width="4" /><path d="M21 3 A18 18 0 0 1 39 21" fill="none" stroke="#2563eb" stroke-width="4" stroke-linecap="round" /></svg>';
446
+ * return spinner;
447
+ * }
448
+ * });
449
+ * ```
450
+ *
451
+ * @group Spinner Overlay
452
+ */
453
+ interface SpinnerOverlayConfig {
454
+ enabled?: boolean;
455
+ text?: string | false;
456
+ delayMs?: number;
457
+ minVisibleMs?: number;
458
+ backgroundColor?: string;
459
+ textColor?: string;
460
+ spinnerColor?: string;
461
+ spinnerTrackColor?: string;
462
+ zIndex?: number;
463
+ target?: 'parent' | 'canvas-parent';
464
+ className?: string;
465
+ textClassName?: string;
466
+ spinnerClassName?: string;
467
+ overlayStyle?: SpinnerOverlayStyle;
468
+ textStyle?: SpinnerOverlayStyle;
469
+ spinnerStyle?: SpinnerOverlayStyle;
470
+ spinner?: SpinnerOverlaySpinnerContent;
471
+ }
472
+ /**
473
+ * spinner overlay를 간단히 켜고 끄기 위한 편의 유니온 타입입니다.
474
+ *
475
+ * - `true`: 기본값으로 활성화
476
+ * - `false`: 비활성화
477
+ * - `SpinnerOverlayConfig`: 명시적인 DOM 오버레이 설정
478
+ *
479
+ * @group Spinner Overlay
480
+ */
481
+ type SpinnerOverlayOption = boolean | SpinnerOverlayConfig;
482
+
340
483
  /**
341
484
  * ═════════════════════════════════════════════════════════════
342
485
  * 📄 FILE : options.ts
@@ -449,6 +592,11 @@ type CustomChartOptions<TType extends ChartType = ChartType> = Override<ChartOpt
449
592
  _chartId?: string;
450
593
  _loading?: boolean;
451
594
  _noDataText?: string;
595
+ /**
596
+ * DOM 기반 spinner overlay 설정입니다.
597
+ * 이 옵션은 내장 canvas loading plugin이 아니라 {@link mountChart} 에서 소비됩니다.
598
+ */
599
+ spinnerOverlay?: SpinnerOverlayOption;
452
600
  };
453
601
  type CustomArcChartOptions<TType extends ArcChartType = ArcChartType> = CustomChartOptions<TType> & {
454
602
  scales?: never;
@@ -496,6 +644,7 @@ interface ChartBuilder<TType extends ChartType> {
496
644
  setTitle(titleOptions: CommonCartesianTitleConfig): this;
497
645
  setLegend(legendOptions: DeepPartial<LegendOptions<any>>): this;
498
646
  setTooltip(tooltipOptions: DeepPartial<TooltipOptions<any>>): this;
647
+ setSpinnerOverlay(spinnerOverlay: SpinnerOverlayOption): this;
499
648
  mergeOptions(options: DeepPartial<CustomChartOptions<TType>>): this;
500
649
  getChartData(uid: string): CustomChartDatasets<TType>;
501
650
  setChartData(uid: string, data: CustomChartDatasets<TType>): void;
@@ -518,7 +667,7 @@ interface CartesianChartBuilder<TType extends CartesianChartType> extends ChartB
518
667
  lineWidth?: number;
519
668
  }): this;
520
669
  setZoom(enabled: boolean, zoomOption?: DeepPartialZoomType): this;
521
- addZoom(defaultZoom?: boolean, zoomOption?: object): this;
670
+ addZoom(defaultZoom?: boolean, zoomOption?: DeepPartialZoomType): this;
522
671
  addDataLabels(defultDataLabels?: boolean, dataLabelsOptions?: PartialDataLabels): this;
523
672
  setYAxisForDataset(datasetIndex: number, axisId?: string): this;
524
673
  setAxisRange(axis: 'x' | 'y', min?: number, max?: number): this;
@@ -692,13 +841,18 @@ type Types_RadarChartBuilder = RadarChartBuilder;
692
841
  type Types_RadialChartType = RadialChartType;
693
842
  type Types_SegmentImageConfig = SegmentImageConfig;
694
843
  type Types_SettingOptions = SettingOptions;
844
+ type Types_SpinnerOverlayConfig = SpinnerOverlayConfig;
845
+ type Types_SpinnerOverlayOption = SpinnerOverlayOption;
846
+ type Types_SpinnerOverlayRenderContext = SpinnerOverlayRenderContext;
847
+ type Types_SpinnerOverlaySpinnerContent = SpinnerOverlaySpinnerContent;
848
+ type Types_SpinnerOverlayStyle = SpinnerOverlayStyle;
695
849
  type Types_TimeScaleConfig = TimeScaleConfig;
696
850
  type Types_TimeScaleType = TimeScaleType;
697
851
  type Types_TimeUnit = TimeUnit;
698
852
  type Types_TreemapChartBuilder = TreemapChartBuilder;
699
853
  type Types_UidImageMapping = UidImageMapping;
700
854
  declare namespace Types {
701
- export type { Types_Align as Align, Types_ArcChartBuilder as ArcChartBuilder, Types_ArcChartType as ArcChartType, Types_ArcDataset as ArcDataset, Types_BarChartBuilder as BarChartBuilder, Types_BubbleChartBuilder as BubbleChartBuilder, Types_CartesianChartBuilder as CartesianChartBuilder, Types_CartesianChartType as CartesianChartType, Types_CartesianDataset as CartesianDataset, Types_ChartBuilder as ChartBuilder, Types_Color as Color, Types_CommonAxes as CommonAxes, Types_CommonAxesSacels as CommonAxesSacels, Types_CommonCartesian as CommonCartesian, Types_CommonCartesianAxes as CommonCartesianAxes, Types_CommonCartesianLegendConfig as CommonCartesianLegendConfig, Types_CommonCartesianTicks as CommonCartesianTicks, Types_CommonCartesianTitleConfig as CommonCartesianTitleConfig, Types_CommonTicks as CommonTicks, Types_Constructor as Constructor, Types_CustomArcChartOptions as CustomArcChartOptions, Types_CustomBarChartOptions as CustomBarChartOptions, Types_CustomBubbleChartOptions as CustomBubbleChartOptions, Types_CustomCartesianDataset as CustomCartesianDataset, Types_CustomChartDatasets as CustomChartDatasets, Types_CustomChartOptions as CustomChartOptions, Types_CustomDoughnutChartOptions as CustomDoughnutChartOptions, Types_CustomLineChartOptions as CustomLineChartOptions, Types_CustomOptionPlugins as CustomOptionPlugins, Types_CustomPieChartOptions as CustomPieChartOptions, Types_CustomTreemapChartOptions as CustomTreemapChartOptions, Types_CustomTreemapDataset as CustomTreemapDataset, Types_DeepPartial as DeepPartial, Types_DeepPartialCartesianAxes as DeepPartialCartesianAxes, Types_DeepPartialPluginOptions as DeepPartialPluginOptions, Types_DoughnutChartBuilder as DoughnutChartBuilder, Types_HierarchicalChartType as HierarchicalChartType, Types_HtmlLegendOptions as HtmlLegendOptions, Types_LineChartBuilder as LineChartBuilder, Types_Mode as Mode, Types_Override as Override, Types_PieChartBuilder as PieChartBuilder, Types_Position as Position, Types_RadarChartBuilder as RadarChartBuilder, Types_RadialChartType as RadialChartType, Types_SegmentImageConfig as SegmentImageConfig, Types_SettingOptions as SettingOptions, Types_TimeScaleConfig as TimeScaleConfig, Types_TimeScaleType as TimeScaleType, Types_TimeUnit as TimeUnit, Types_TreemapChartBuilder as TreemapChartBuilder, Types_UidImageMapping as UidImageMapping };
855
+ export type { Types_Align as Align, Types_ArcChartBuilder as ArcChartBuilder, Types_ArcChartType as ArcChartType, Types_ArcDataset as ArcDataset, Types_BarChartBuilder as BarChartBuilder, Types_BubbleChartBuilder as BubbleChartBuilder, Types_CartesianChartBuilder as CartesianChartBuilder, Types_CartesianChartType as CartesianChartType, Types_CartesianDataset as CartesianDataset, Types_ChartBuilder as ChartBuilder, Types_Color as Color, Types_CommonAxes as CommonAxes, Types_CommonAxesSacels as CommonAxesSacels, Types_CommonCartesian as CommonCartesian, Types_CommonCartesianAxes as CommonCartesianAxes, Types_CommonCartesianLegendConfig as CommonCartesianLegendConfig, Types_CommonCartesianTicks as CommonCartesianTicks, Types_CommonCartesianTitleConfig as CommonCartesianTitleConfig, Types_CommonTicks as CommonTicks, Types_Constructor as Constructor, Types_CustomArcChartOptions as CustomArcChartOptions, Types_CustomBarChartOptions as CustomBarChartOptions, Types_CustomBubbleChartOptions as CustomBubbleChartOptions, Types_CustomCartesianDataset as CustomCartesianDataset, Types_CustomChartDatasets as CustomChartDatasets, Types_CustomChartOptions as CustomChartOptions, Types_CustomDoughnutChartOptions as CustomDoughnutChartOptions, Types_CustomLineChartOptions as CustomLineChartOptions, Types_CustomOptionPlugins as CustomOptionPlugins, Types_CustomPieChartOptions as CustomPieChartOptions, Types_CustomTreemapChartOptions as CustomTreemapChartOptions, Types_CustomTreemapDataset as CustomTreemapDataset, Types_DeepPartial as DeepPartial, Types_DeepPartialCartesianAxes as DeepPartialCartesianAxes, Types_DeepPartialPluginOptions as DeepPartialPluginOptions, Types_DoughnutChartBuilder as DoughnutChartBuilder, Types_HierarchicalChartType as HierarchicalChartType, Types_HtmlLegendOptions as HtmlLegendOptions, Types_LineChartBuilder as LineChartBuilder, Types_Mode as Mode, Types_Override as Override, Types_PieChartBuilder as PieChartBuilder, Types_Position as Position, Types_RadarChartBuilder as RadarChartBuilder, Types_RadialChartType as RadialChartType, Types_SegmentImageConfig as SegmentImageConfig, Types_SettingOptions as SettingOptions, Types_SpinnerOverlayConfig as SpinnerOverlayConfig, Types_SpinnerOverlayOption as SpinnerOverlayOption, Types_SpinnerOverlayRenderContext as SpinnerOverlayRenderContext, Types_SpinnerOverlaySpinnerContent as SpinnerOverlaySpinnerContent, Types_SpinnerOverlayStyle as SpinnerOverlayStyle, Types_TimeScaleConfig as TimeScaleConfig, Types_TimeScaleType as TimeScaleType, Types_TimeUnit as TimeUnit, Types_TreemapChartBuilder as TreemapChartBuilder, Types_UidImageMapping as UidImageMapping };
702
856
  }
703
857
 
704
858
  interface ChartConfig {
@@ -752,7 +906,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
752
906
  * @param plugin - 단일 플러그인 또는 플러그인 배열
753
907
  * @param replaceIfExists
754
908
  * @Since 1.0.0
755
- * @category plugin
756
909
  */
757
910
  setPlugin(plugin: any | any[], replaceIfExists?: boolean): this;
758
911
  /**
@@ -760,14 +913,12 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
760
913
  * @param {string} id
761
914
  * @returns {ChartConfig}
762
915
  * @Since 1.0.0
763
- * @category config
764
916
  */
765
917
  makeConfig(id?: string): ChartConfig;
766
918
  /**
767
919
  * @description 플러그인을 제거합니다.
768
920
  * @param pluginId
769
921
  * @Since 1.0.0
770
- * @category plugin
771
922
  *
772
923
  */
773
924
  removePlugin(pluginId: string): this;
@@ -776,7 +927,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
776
927
  * @param pluginId
777
928
  * @returns {boolean}
778
929
  * @Since 1.0.0
779
- * @category plugin
780
930
  */
781
931
  hasPlugin(pluginId: string): boolean;
782
932
  /**
@@ -785,7 +935,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
785
935
  * @param callback
786
936
  * @returns {this}
787
937
  * @Since 1.0.0
788
- * @category options
789
938
  */
790
939
  onResize(callback: (chart: Chart$1<TType>, size: {
791
940
  width: number;
@@ -796,7 +945,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
796
945
  * @param {DeepPartial<CommonCartesianTitleConfig>} titleOptions
797
946
  * @returns {this}
798
947
  * @Since 1.0.0
799
- * @category options
800
948
  * @example
801
949
  * chart.setTitle({
802
950
  * text: '차트 제목',
@@ -809,7 +957,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
809
957
  * @param {DeepPartial<LegendOptions<TType>>} legendOptions
810
958
  * @returns {this}
811
959
  * @Since 1.0.0
812
- * @category options
813
960
  * @example
814
961
  * chart.setLegend({
815
962
  * position: 'bottom',
@@ -836,7 +983,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
836
983
  * @param {DeepPartial<TooltipOptions<TType>>} tooltipOptions
837
984
  * @returns {this}
838
985
  * @Since 2.4.0
839
- * @category options
840
986
  * @example
841
987
  * chart.setTooltip({
842
988
  * enabled: true,
@@ -844,12 +990,39 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
844
990
  * });
845
991
  */
846
992
  setTooltip(tooltipOptions: DeepPartial<TooltipOptions<TType>>): this;
993
+ /**
994
+ * @description 차트 마운트 직전 DOM 오버레이 spinner를 설정합니다.
995
+ * 실제 동작은 {@link mountChart} helper가 담당하며, `build(id)` 또는 `_chartId`로 안정적인 canvas id가 필요합니다.
996
+ * @param spinnerOverlay
997
+ * @returns {this}
998
+ * @since 2.4.0
999
+ * @example
1000
+ * chart.setSpinnerOverlay(true);
1001
+ *
1002
+ * @example
1003
+ * chart.setSpinnerOverlay({
1004
+ * enabled: true,
1005
+ * text: '차트 준비 중...',
1006
+ * minVisibleMs: 200,
1007
+ * });
1008
+ *
1009
+ * @example
1010
+ * chart.setSpinnerOverlay({
1011
+ * enabled: true,
1012
+ * text: false,
1013
+ * spinner: () => {
1014
+ * const spinner = document.createElement('div');
1015
+ * spinner.innerHTML = '<svg width="42" height="42" viewBox="0 0 42 42"><circle cx="21" cy="21" r="18" fill="none" stroke="#bfdbfe" stroke-width="4" /><path d="M21 3 A18 18 0 0 1 39 21" fill="none" stroke="#2563eb" stroke-width="4" stroke-linecap="round" /></svg>';
1016
+ * return spinner;
1017
+ * }
1018
+ * });
1019
+ */
1020
+ setSpinnerOverlay(spinnerOverlay: SpinnerOverlayOption): this;
847
1021
  /**
848
1022
  * @description 기존 옵션에 부분 옵션을 병합합니다.
849
1023
  * @param {DeepPartial<TOptions>} options
850
1024
  * @returns {this}
851
1025
  * @since 2.4.0
852
- * @category options
853
1026
  */
854
1027
  mergeOptions(options: DeepPartial<TOptions>): this;
855
1028
  /**
@@ -857,7 +1030,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
857
1030
  * @param {string} uid
858
1031
  * @returns {CustomChartDatasets<TType>}
859
1032
  * @since 1.0.0
860
- * @category dataset
861
1033
  * @example
862
1034
  * const dataset = chart.getChartData('dataset-uid-or-label');
863
1035
  * console.log(dataset);
@@ -869,7 +1041,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
869
1041
  * @param {string} uid
870
1042
  * @param {CustomChartDatasets<TType>} newDataset
871
1043
  * @since 1.0.0
872
- * @category dataset
873
1044
  * @example
874
1045
  * chart.setChartData('dataset-uid-or-label', { label: 'New Dataset', data: [10, 20, 30] });
875
1046
  * @beta
@@ -881,7 +1052,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
881
1052
  * @param {DeepPartial<CustomChartDatasets<TType>>} style
882
1053
  * @returns {this}
883
1054
  * @since 2.4.0
884
- * @category dataset
885
1055
  */
886
1056
  setDatasetStyle(uidOrIndex: string | number, style: DeepPartial<CustomChartDatasets<TType>>): this;
887
1057
  /**
@@ -889,7 +1059,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
889
1059
  * @param {DeepPartial<CustomChartDatasets<TType>>} style
890
1060
  * @returns {this}
891
1061
  * @since 2.4.0
892
- * @category dataset
893
1062
  */
894
1063
  setAllDatasetStyle(style: DeepPartial<CustomChartDatasets<TType>>): this;
895
1064
  /**
@@ -897,7 +1066,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
897
1066
  * @param {string | number} uidOrIndex
898
1067
  * @returns {this}
899
1068
  * @since 2.4.0
900
- * @category dataset
901
1069
  */
902
1070
  removeDataset(uidOrIndex: string | number): this;
903
1071
  /**
@@ -906,7 +1074,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
906
1074
  * @param {string | number} dataUidOrIndex
907
1075
  * @returns {this}
908
1076
  * @since 2.4.0
909
- * @category dataset
910
1077
  */
911
1078
  removeData(datasetUidOrIndex: string | number, dataUidOrIndex?: string | number): this;
912
1079
  /**
@@ -914,7 +1081,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
914
1081
  * @param {string | number} datasetUidOrIndex
915
1082
  * @returns {this}
916
1083
  * @since 2.4.0
917
- * @category dataset
918
1084
  */
919
1085
  clearData(datasetUidOrIndex?: string | number): this;
920
1086
  /**
@@ -924,7 +1090,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
924
1090
  * @param {boolean} syncGroup
925
1091
  * @returns {this}
926
1092
  * @since 2.4.0
927
- * @category dataset
928
1093
  */
929
1094
  setDatasetVisible(uidOrIndex: string | number, visible: boolean, syncGroup?: boolean): this;
930
1095
  /**
@@ -933,7 +1098,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
933
1098
  * @param {boolean} syncGroup
934
1099
  * @returns {this}
935
1100
  * @since 2.4.0
936
- * @category dataset
937
1101
  */
938
1102
  toggleDataset(uidOrIndex: string | number, syncGroup?: boolean): this;
939
1103
  /**
@@ -942,7 +1106,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
942
1106
  * @param {string | number} group
943
1107
  * @returns {this}
944
1108
  * @since 2.4.0
945
- * @category dataset
946
1109
  */
947
1110
  setDatasetGroup(uidOrIndex: string | number, group: string | number): this;
948
1111
  /**
@@ -951,7 +1114,6 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
951
1114
  * @param {StreamingOptions} streamingOptions - `chartjs-plugin-streaming` 플러그인에 전달할 옵션 객체.
952
1115
  * @returns {this}
953
1116
  * @since 1.8.0
954
- * @category plugin
955
1117
  * @example
956
1118
  * // 1. 사용자 측에서 웹소켓 등 데이터 소스 설정
957
1119
  * const myWebSocket = new WebSocket('wss://my-data-source');
@@ -1051,11 +1213,11 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1051
1213
  * @param {number} idx
1052
1214
  * @Returns {void}
1053
1215
  * @Since 1.0.1
1054
- * @category Dataset
1055
1216
  */
1056
1217
  protected decorateDataset(ds: any, idx: number): void;
1057
1218
  protected mustHavePlugins(): ({
1058
1219
  id: string;
1220
+ beforeInit(chart: any): void;
1059
1221
  afterDraw(chart: any, args: any, options: any): void;
1060
1222
  afterDestroy(chart: any): void;
1061
1223
  } | {
@@ -1079,6 +1241,16 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1079
1241
  protected applyGlobalZoomConfig(): void;
1080
1242
  protected ensureZoomResetPlugin(): void;
1081
1243
  protected removeZoomResetPlugin(): void;
1244
+ protected normalizeZoomOptions(zoomOption?: DeepPartialZoomType): DeepPartialZoomType;
1245
+ protected resolveAutoZoomLimits(autoLimits: AutoZoomLimits): ZoomLimitOptions;
1246
+ protected resolveAxisZoomLimits(axisId: string): ZoomScaleLimits | undefined;
1247
+ protected resolveZoomAxis(axisId: string): 'x' | 'y' | undefined;
1248
+ protected resolveAxisLabelLimitValues(axisId: string, datasets: CustomCartesianDataset<TType>[]): number[];
1249
+ protected extractParsedPointValue(point: unknown, dataset: CustomCartesianDataset<TType>, axis: 'x' | 'y'): number | undefined;
1250
+ protected resolveParsingKey(dataset: CustomCartesianDataset<TType>, axis: 'x' | 'y'): string;
1251
+ protected readValueByPath(source: Record<string, unknown>, path: string): unknown;
1252
+ protected normalizeLimitValue(value: unknown): number | undefined;
1253
+ protected toZoomScaleLimits(values: number[]): ZoomScaleLimits | undefined;
1082
1254
  protected normalize(): void;
1083
1255
  protected configAop(config: any): any;
1084
1256
  /**
@@ -1086,7 +1258,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1086
1258
  * @param id
1087
1259
  * @returns {ChartConfig}
1088
1260
  * @Since 1.0.0
1089
- * @category Chart
1090
1261
  */
1091
1262
  build(id?: string): ChartConfig;
1092
1263
  /**
@@ -1106,7 +1277,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1106
1277
  * @private
1107
1278
  * @description Cartesian chart type을 체크 합니다.
1108
1279
  * @since 1.0.0
1109
- * @category Chart
1110
1280
  */
1111
1281
  private isCartesianChartType;
1112
1282
  /**
@@ -1114,7 +1284,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1114
1284
  * @param scales
1115
1285
  * @returns {this}
1116
1286
  * @since 1.0.0
1117
- * @category Scales
1118
1287
  */
1119
1288
  setScales(scales: CommonAxesSacels): this;
1120
1289
  /**
@@ -1138,7 +1307,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1138
1307
  * @param {TimeScaleConfig} timeScaleConfig - 시간 축 상세 설정입니다. 비워두면 기본 시간 축 설정이 적용됩니다.
1139
1308
  * @returns {this}
1140
1309
  * @since 2.3.2
1141
- * @category Scales
1142
1310
  * @example
1143
1311
  * // 기본 시간 축 적용
1144
1312
  * const chart = ChartWrapper.create('line', [], [
@@ -1188,7 +1356,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1188
1356
  * @param {CommonCartesianTitleConfig} titleConfig - 축 제목 설정 옵션
1189
1357
  * @returns {this}
1190
1358
  * @since 1.0.0
1191
- * @category Scales
1192
1359
  * @example
1193
1360
  * chart.setAxisTitle('y', { display: true, text: 'Primary Y Axis' });
1194
1361
  * chart.setAxisTitle('y1', { display: true, text: 'Secondary Y Axis' });
@@ -1201,7 +1368,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1201
1368
  * @param gridOptions
1202
1369
  * @returns {this}
1203
1370
  * @since 1.0.0
1204
- * @category Scales
1205
1371
  */
1206
1372
  setGridOptions(axis: 'x' | 'y', gridOptions: {
1207
1373
  display?: boolean;
@@ -1212,10 +1378,26 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1212
1378
  * @description 줌 기능을 설정합니다. `false`를 전달하면 현재 차트의 줌 설정을 제거합니다.
1213
1379
  * 전역 `setChartConfig({ zoom: true })` 설정이 있더라도 이 메서드로 차트별 비활성화가 가능합니다.
1214
1380
  * @param {boolean} enabled
1215
- * @param {CustomZoomType<TType>} zoomOption
1381
+ * @param {DeepPartialZoomType} zoomOption
1216
1382
  * @returns {this}
1217
1383
  * @since 2.4.0
1218
- * @category Plugins
1384
+ * @example
1385
+ * chart.setZoom(true, {
1386
+ * limits: {
1387
+ * x: { min: 'original', max: 'original' },
1388
+ * y: { min: 0, max: 100 },
1389
+ * },
1390
+ * });
1391
+ *
1392
+ * @example
1393
+ * chart.setZoom(true, {
1394
+ * autoLimits: 'original',
1395
+ * });
1396
+ *
1397
+ * @example
1398
+ * chart.setZoom(true, {
1399
+ * autoLimits: { x: 'original', y1: 'data' },
1400
+ * });
1219
1401
  */
1220
1402
  setZoom(enabled: boolean, zoomOption?: DeepPartialZoomType): this;
1221
1403
  /**
@@ -1225,7 +1407,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1225
1407
  * @param zoomOption - 사용자 정의 줌 옵션입니다.
1226
1408
  * @returns {this}
1227
1409
  * @since 1.0.0
1228
- * @category Plugins
1229
1410
  * @defaultValue defaultZoom = false
1230
1411
  * @example
1231
1412
  * // 기존 방식
@@ -1252,7 +1433,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1252
1433
  * @param axisId
1253
1434
  * @returns {this}
1254
1435
  * @since 1.0.0
1255
- * @category Scales
1256
1436
  * @defaultValue axisId = 'y'
1257
1437
  */
1258
1438
  setYAxisForDataset(datasetIndex: number, axisId?: string): this;
@@ -1260,7 +1440,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1260
1440
  * @private
1261
1441
  * @description y1 축을 보장합니다.
1262
1442
  * @since 1.0.0
1263
- * @category Scales
1264
1443
  */
1265
1444
  private ensureY1AxisExists;
1266
1445
  /**
@@ -1270,7 +1449,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1270
1449
  * @param max
1271
1450
  * @returns {this}
1272
1451
  * @since 1.0.0
1273
- * @category Scales
1274
1452
  */
1275
1453
  setAxisRange(axis: 'x' | 'y', min?: number, max?: number): this;
1276
1454
  /**
@@ -1280,7 +1458,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1280
1458
  * @returns {this}
1281
1459
  * @throws {CustomError} 해당 차트 타입이 yAxisID 옵션을 지원하지 않을 경우 에러를 발생시킵니다.
1282
1460
  * @since 1.0.0
1283
- * @category Scales
1284
1461
  */
1285
1462
  setYAxisID(datasetIndex: number, axisID: string): this;
1286
1463
  /**
@@ -1290,7 +1467,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1290
1467
  * @returns {this}
1291
1468
  * @throws {CustomError} 해당 축이 존재하지 않거나 position 옵션을 지원하지 않을 경우 에러를 발생시킵니다.
1292
1469
  * @since 1.0.0
1293
- * @category Scales
1294
1470
  */
1295
1471
  setAxisPosition(axis: string, position: 'left' | 'right'): this;
1296
1472
  /**
@@ -1371,7 +1547,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1371
1547
  * @returns {this}
1372
1548
  * @throws {CustomError} 옵션이 비어있거나 객체가 아닐 경우 에러를 발생시킵니다.
1373
1549
  * @Since 1.0.0
1374
- * @category Plugins
1375
1550
  */
1376
1551
  customLegend(obj: HtmlLegendOptions): this;
1377
1552
  /**
@@ -1381,7 +1556,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1381
1556
  * @returns {CustomCartesianDataset<TType> | undefined}
1382
1557
  * @throws {CustomError} UID가 없거나 데이터셋이 비어있을 때 에러를 발생시킵니다.
1383
1558
  * @Since 1.0.0
1384
- * @category Dataset
1385
1559
  */
1386
1560
  getDataset(uid: string): CustomCartesianDataset<TType> | undefined;
1387
1561
  /**
@@ -1392,7 +1566,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1392
1566
  * @returns {this}
1393
1567
  * @throws {CustomError} UID가 없거나 데이터셋이 비어있을 때 에러를 발생시킵니다.
1394
1568
  * @Since 1.0.0
1395
- * @category Dataset
1396
1569
  */
1397
1570
  setDataset(uid: string, dataset: CustomCartesianDataset<TType>): this;
1398
1571
  /**
@@ -1401,7 +1574,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1401
1574
  * @returns {CustomCartesianDataset<TType> | undefined}
1402
1575
  * @throws {CustomError} 데이터셋이 없거나 찾을 수 없을 때 에러를 발생시킵니다.
1403
1576
  * @since 1.6.6
1404
- * @category Dataset
1405
1577
  * @example
1406
1578
  * // UID로 조회
1407
1579
  * const dataset = chart.getData('dataset-uid');
@@ -1417,7 +1589,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1417
1589
  * @returns {this}
1418
1590
  * @throws {CustomError} 데이터셋이 없거나 찾을 수 없을 때 에러를 발생시킵니다.
1419
1591
  * @since 1.6.6
1420
- * @category Dataset
1421
1592
  * @example
1422
1593
  * // UID로 교체
1423
1594
  * chart.setData('dataset-uid', { label: 'New Dataset', data: [...] });
@@ -1433,7 +1604,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1433
1604
  * @returns {string}
1434
1605
  * @throws {CustomError} 데이터셋이 null 또는 undefined일 때 에러를 발생시킵니다.
1435
1606
  * @Since 1.0.0
1436
- * @category Dataset
1437
1607
  */
1438
1608
  addDataset(dataset: CustomCartesianDataset<TType>): string;
1439
1609
  /**
@@ -1442,7 +1612,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1442
1612
  * @param {GridLineOptions} gridOptions
1443
1613
  * @returns {this}
1444
1614
  * @Since 1.0.0
1445
- * @category scales
1446
1615
  * @example
1447
1616
  * chart.setGrid('y', { color: 'rgba(0, 0, 0, 0.1)', lineWidth: 1 });
1448
1617
  */
@@ -1452,7 +1621,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1452
1621
  * @param {string} color
1453
1622
  * @returns {this}
1454
1623
  * @Since 1.0.0
1455
- * @category options
1456
1624
  * @example
1457
1625
  * chart.setBackgroundColor('rgba(255, 255, 255, 0.5)');
1458
1626
  * chart.setBackgroundColor('#f0f0f0');
@@ -1465,7 +1633,6 @@ declare abstract class CartesianChart<TType extends CartesianChartType> extends
1465
1633
  * @returns {this}
1466
1634
  * @throws {CustomError} 데이터셋이 없거나 인덱스가 유효하지 않을 경우 에러를 발생시킵니다.
1467
1635
  * @since 1.6.6
1468
- * @category Dataset
1469
1636
  * @example
1470
1637
  * // 마지막 데이터셋에 단일 데이터 추가
1471
1638
  * chart.addData({ x: 10, y: 20 });
@@ -1505,7 +1672,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1505
1672
  * @param {number} thickness
1506
1673
  * @description 데이터셋의 Bar Thickness를 설정합니다.
1507
1674
  * @Since 1.0.0
1508
- * @category dataset
1509
1675
  */
1510
1676
  setBarThickness(datasetIndex: number, thickness: number): this;
1511
1677
  /**
@@ -1513,7 +1679,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1513
1679
  * @param {number} thickness
1514
1680
  * @description 모든 데이터셋의 Bar Thickness를 설정합니다.
1515
1681
  * @Since 1.0.0
1516
- * @category dataset
1517
1682
  */
1518
1683
  setAllBarThickness(thickness: number): this;
1519
1684
  /**
@@ -1522,7 +1687,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1522
1687
  * @param {number} maxThickness
1523
1688
  * @description 데이터셋의 Max Bar Thickness를 설정합니다.
1524
1689
  * @Since 1.0.0
1525
- * @category dataset
1526
1690
  */
1527
1691
  setMaxBarThickness(datasetIndex: number, maxThickness: number): this;
1528
1692
  /**
@@ -1530,7 +1694,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1530
1694
  * @param {number} maxThickness
1531
1695
  * @description 모든 데이터셋의 Max Bar Thickness를 설정합니다.
1532
1696
  * @Since 1.0.0
1533
- * @category dataset
1534
1697
  */
1535
1698
  setAllMaxBarThickness(maxThickness: number): this;
1536
1699
  /**
@@ -1539,7 +1702,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1539
1702
  * @param {number} percentage
1540
1703
  * @description 데이터셋의 Bar Percentage를 설정합니다.
1541
1704
  * @Since 1.0.0
1542
- * @category dataset
1543
1705
  */
1544
1706
  setBarPercentage(datasetIndex: number, percentage: number): this;
1545
1707
  /**
@@ -1547,7 +1709,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1547
1709
  * @param {number} percentage
1548
1710
  * @description 모든 데이터셋의 Bar Percentage를 설정합니다.
1549
1711
  * @Since 1.0.0
1550
- * @category dataset
1551
1712
  */
1552
1713
  setAllBarPercentage(percentage: number): this;
1553
1714
  /**
@@ -1556,7 +1717,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1556
1717
  * @param {number} percentage
1557
1718
  * @description 데이터셋의 Category Percentage를 설정합니다.
1558
1719
  * @Since 1.0.0
1559
- * @category dataset
1560
1720
  */
1561
1721
  setCategoryPercentage(datasetIndex: number, percentage: number): this;
1562
1722
  /**
@@ -1564,7 +1724,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1564
1724
  * @param {number} percentage
1565
1725
  * @description 모든 데이터셋의 Category Percentage를 설정합니다.
1566
1726
  * @Since 1.0.0
1567
- * @category dataset
1568
1727
  */
1569
1728
  setAllCategoryPercentage(percentage: number): this;
1570
1729
  /**
@@ -1573,7 +1732,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1573
1732
  * @param {number} borderWidth
1574
1733
  * @description 데이터셋의 Border Width 설정합니다.
1575
1734
  * @Since 1.0.0
1576
- * @category dataset
1577
1735
  */
1578
1736
  setBorderWidth(datasetIndex: number, borderWidth: number): this;
1579
1737
  /**
@@ -1581,7 +1739,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1581
1739
  * @param {number} borderWidth
1582
1740
  * @description 모든 데이터셋의 Border Width 설정합니다.
1583
1741
  * @Since 1.0.0
1584
- * @category dataset
1585
1742
  */
1586
1743
  setAllBorderWidth(borderWidth: number): this;
1587
1744
  /**
@@ -1590,7 +1747,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1590
1747
  * @param {number} borderRadius
1591
1748
  * @description 데이터셋의 Border Radius 를 설정합니다.
1592
1749
  * @Since 1.0.0
1593
- * @category dataset
1594
1750
  */
1595
1751
  setBorderRadius(datasetIndex: number, borderRadius: number): this;
1596
1752
  /**
@@ -1598,7 +1754,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1598
1754
  * @param {number} borderRadius
1599
1755
  * @description 모든 데이터셋의 Border Radius 를 설정합니다.
1600
1756
  * @Since 1.0.0
1601
- * @category dataset
1602
1757
  */
1603
1758
  setAllBorderRadius(borderRadius: number): this;
1604
1759
  /**
@@ -1606,7 +1761,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1606
1761
  * @param {boolean} isStacked
1607
1762
  * @description 모든 축에 대해 Stacked 옵션을 설정합니다.
1608
1763
  * @Since 1.0.0
1609
- * @category scales
1610
1764
  */
1611
1765
  setStacked(isStacked: boolean): this;
1612
1766
  /**
@@ -1614,7 +1768,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1614
1768
  * @param {string} axis
1615
1769
  * @description 축에 이미지를 설정합니다. 축이 이미 존재하는 경우 경고 메시지를 출력합니다.
1616
1770
  * @Since 1.0.0
1617
- * @category plugins
1618
1771
  * @Returns {this}
1619
1772
  */
1620
1773
  setBarImg(axis: string): this;
@@ -1622,7 +1775,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1622
1775
  * @description 스파크바 차트 옵션을 적용합니다. mixed 차트에서는 동작하지 않습니다.
1623
1776
  * @returns {this}
1624
1777
  * @since 1.0.0
1625
- * @category options
1626
1778
  * @beta (기능 테스트 중)
1627
1779
  */
1628
1780
  sparkBarChart(): this;
@@ -1633,7 +1785,6 @@ declare class BarChart extends CartesianChart<'bar'> implements BarChartBuilder
1633
1785
  * @returns {this}
1634
1786
  * @throws {CustomError} 데이터가 yyyy-mm-dd 포맷이 아닐 경우 INVALID_DATA_STRUCTURE 에러 발생
1635
1787
  * @since 1.0.0
1636
- * @category options
1637
1788
  * @example
1638
1789
  * // 간트차트 데이터 형식 (배열):
1639
1790
  * const datasets = [
@@ -1676,7 +1827,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1676
1827
  * @returns {boolean}
1677
1828
  * @description 라인 차트는 카테고리형 x축일 때 라벨이 필수입니다.
1678
1829
  * @Since 1.0.0
1679
- * @category config
1680
1830
  * @override
1681
1831
  */
1682
1832
  protected requireLabels(): boolean;
@@ -1686,7 +1836,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1686
1836
  * @returns {ChartConfiguration}
1687
1837
  * @description 차트 설정 객체를 생성합니다.
1688
1838
  * @Since 1.0.0
1689
- * @category config
1690
1839
  * @override
1691
1840
  * @Deprecated use build() Method
1692
1841
  */
@@ -1704,7 +1853,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1704
1853
  * @param {string} backgroundColor
1705
1854
  * @description 데이터셋의 Fill 설정을 합니다.
1706
1855
  * @Since 1.0.0
1707
- * @category dataset
1708
1856
  */
1709
1857
  setFill(datasetIndex: number, enable: boolean, backgroundColor?: string): this;
1710
1858
  /**
@@ -1713,7 +1861,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1713
1861
  * @param {string} backgroundColor
1714
1862
  * @description 모든 데이터셋의 Fill 설정을 합니다.
1715
1863
  * @Since 1.0.0
1716
- * @category dataset
1717
1864
  *
1718
1865
  */
1719
1866
  setAllFill(enable: boolean, backgroundColor?: string): this;
@@ -1723,7 +1870,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1723
1870
  * @param {number} tension
1724
1871
  * @description 라인 차트의 곡률을 설정합니다.
1725
1872
  * @Since 1.0.0
1726
- * @category dataset
1727
1873
  */
1728
1874
  setTension(datasetIndex: number, tension: number): this;
1729
1875
  /**
@@ -1731,7 +1877,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1731
1877
  * @param {number} tension
1732
1878
  * @description 모든 데이터셋의 곡률을 설정합니다.
1733
1879
  * @Since 1.0.0
1734
- * @category dataset
1735
1880
  *
1736
1881
  */
1737
1882
  setAllTension(tension: number): this;
@@ -1741,7 +1886,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1741
1886
  * @param {number} borderWidth
1742
1887
  * @description 데이터셋의 Border Width를 설정합니다.
1743
1888
  * @Since 1.0.0
1744
- * @category dataset
1745
1889
  */
1746
1890
  setBorderWidth(datasetIndex: number, borderWidth: number): this;
1747
1891
  setAllBorderWidth(borderWidth: number): this;
@@ -1757,7 +1901,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1757
1901
  * @param {number} radius
1758
1902
  * @description 모든 라인 차트의 Point Radius를 설정합니다.
1759
1903
  * @Since 1.0.0
1760
- * @category dataset
1761
1904
  */
1762
1905
  setAllPointRadius(radius: number): this;
1763
1906
  /**
@@ -1766,7 +1909,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1766
1909
  * @param {number} hoverRadius
1767
1910
  * @description 데이터셋의 Point Hover Radius를 설정합니다.
1768
1911
  * @Since 1.0.0
1769
- * @category dataset
1770
1912
  */
1771
1913
  setPointHoverRadius(datasetIndex: number, hoverRadius: number): this;
1772
1914
  /**
@@ -1774,7 +1916,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1774
1916
  * @param {number} hoverRadius
1775
1917
  * @description 모든 데이터셋의 Point Hover Radius를 설정합니다.
1776
1918
  * @Since 1.0.0
1777
- * @category dataset
1778
1919
  *
1779
1920
  */
1780
1921
  setAllPointHoverRadius(hoverRadius: number): this;
@@ -1787,7 +1928,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1787
1928
  * @description 지정된 데이터셋에 단계별 그라디언트를 적용합니다.
1788
1929
  * @remarks step 인자는 2 이상만 지원할것입니다.
1789
1930
  * @Since 1.0.0
1790
- * @category dataset
1791
1931
  * @beta (기능 테스트 중)
1792
1932
  */
1793
1933
  setGradient(datasetIndex: number, steps: number, colors: string[], direction?: 'vertical' | 'horizontal'): this;
@@ -1798,7 +1938,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1798
1938
  * @param {'vertical' | 'horizontal'} direction - 그라디언트 방향 (기본값: vertical)
1799
1939
  * @description 모든 데이터셋에 동일한 그라디언트를 적용합니다.
1800
1940
  * @Since 1.0.0
1801
- * @category dataset
1802
1941
  * @beta (기능 테스트 중)
1803
1942
  */
1804
1943
  setAllGradient(steps: number, colors: string[], direction?: 'vertical' | 'horizontal'): this;
@@ -1807,7 +1946,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1807
1946
  * @param {number} datasetIndex - 대상 데이터셋 인덱스
1808
1947
  * @description 지정된 데이터셋의 그라디언트를 제거합니다.
1809
1948
  * @Since 1.0.0
1810
- * @category dataset
1811
1949
  * @beta (기능 테스트 중)
1812
1950
  */
1813
1951
  removeGradient(datasetIndex: number): this;
@@ -1815,7 +1953,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1815
1953
  *
1816
1954
  * @description 모든 데이터셋의 그라디언트를 제거합니다.
1817
1955
  * @Since 1.0.0
1818
- * @category dataset
1819
1956
  * @beta (기능 테스트 중)
1820
1957
  */
1821
1958
  removeAllGradients(): this;
@@ -1825,7 +1962,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1825
1962
  * @returns {number[]} 0부터 1까지의 위치 배열
1826
1963
  * @description 주어진 단계 수에 따라 그라디언트 위치를 계산합니다.
1827
1964
  * @Since 1.0.0
1828
- * @category utility
1829
1965
  * @private
1830
1966
  * @beta (기능 테스트 중)
1831
1967
  */
@@ -1834,7 +1970,6 @@ declare class LineChart extends CartesianChart<'line'> implements LineChartBuild
1834
1970
  * @description 스파크라인 차트 옵션을 적용합니다. mixed 차트에서는 동작하지 않습니다.
1835
1971
  * @returns {this}
1836
1972
  * @since 1.0.1
1837
- * @category options
1838
1973
  * @beta (기능 테스트 중)
1839
1974
  */
1840
1975
  sparkLineChart(): this;
@@ -1856,7 +1991,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1856
1991
  * @param {number} radius - 반지름 값
1857
1992
  * @returns {this}
1858
1993
  * @since 1.0.0
1859
- * @category dataset
1860
1994
  */
1861
1995
  setBubbleRadius(datasetIndex: number, radius: number): this;
1862
1996
  /**
@@ -1864,7 +1998,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1864
1998
  * @param {number} radius - 반지름 값
1865
1999
  * @returns {this}
1866
2000
  * @since 1.0.0
1867
- * @category dataset
1868
2001
  */
1869
2002
  setAllBubbleRadius(radius: number): this;
1870
2003
  /**
@@ -1874,7 +2007,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1874
2007
  * @param {number} radius - 반지름 값
1875
2008
  * @returns {this}
1876
2009
  * @since 1.0.0
1877
- * @category data
1878
2010
  * @example
1879
2011
  * bubbleChart.setBubbleDataRadius(0, 2, 25); // 첫 번째 데이터셋의 세 번째 버블 크기를 25로 설정
1880
2012
  */
@@ -1885,7 +2017,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1885
2017
  * @param {number} radius - 반지름 값
1886
2018
  * @returns {this}
1887
2019
  * @since 1.0.0
1888
- * @category data
1889
2020
  * @example
1890
2021
  * bubbleChart.setAllBubbleDataRadius(0, 15); // 첫 번째 데이터셋의 모든 버블 크기를 15로 설정
1891
2022
  */
@@ -1897,7 +2028,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1897
2028
  * @param {number} radius - 반지름 값
1898
2029
  * @returns {this}
1899
2030
  * @since 1.0.0
1900
- * @category data
1901
2031
  * @example
1902
2032
  * bubbleChart.setBubbleDataRadiusByName(0, '서울', 50); // '서울' 버블의 크기를 50으로 설정
1903
2033
  */
@@ -1908,7 +2038,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1908
2038
  * @param {Function} updateFn - 업데이트 함수 (dataPoint, index) => newRadius
1909
2039
  * @returns {this}
1910
2040
  * @since 1.0.0
1911
- * @category data
1912
2041
  * @example
1913
2042
  * // 모든 버블의 크기를 2배로
1914
2043
  * bubbleChart.updateBubbleDataRadius(0, (data) => data.r * 2);
@@ -1929,7 +2058,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1929
2058
  * @param {number} radius - 반지름 값
1930
2059
  * @returns {this}
1931
2060
  * @since 1.0.0
1932
- * @category data
1933
2061
  * @example
1934
2062
  * // 인구가 50 이상인 도시만 크기 50으로
1935
2063
  * bubbleChart.setBubbleDataRadiusWhere(0, (data) => data.population >= 50, 50);
@@ -1941,7 +2069,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1941
2069
  * @param {number} hoverRadius - 호버 시 반지름 값
1942
2070
  * @returns {this}
1943
2071
  * @since 1.0.0
1944
- * @category dataset
1945
2072
  */
1946
2073
  setHoverRadius(datasetIndex: number, hoverRadius: number): this;
1947
2074
  /**
@@ -1949,7 +2076,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1949
2076
  * @param {number} hoverRadius - 호버 시 반지름 값
1950
2077
  * @returns {this}
1951
2078
  * @since 1.0.0
1952
- * @category dataset
1953
2079
  */
1954
2080
  setAllHoverRadius(hoverRadius: number): this;
1955
2081
  /**
@@ -1958,7 +2084,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1958
2084
  * @param {number} borderWidth - 테두리 두께
1959
2085
  * @returns {this}
1960
2086
  * @since 1.0.0
1961
- * @category dataset
1962
2087
  */
1963
2088
  setBorderWidth(datasetIndex: number, borderWidth: number): this;
1964
2089
  /**
@@ -1966,14 +2091,12 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1966
2091
  * @param {number} borderWidth - 테두리 두께
1967
2092
  * @returns {this}
1968
2093
  * @since 1.0.0
1969
- * @category dataset
1970
2094
  */
1971
2095
  setAllBorderWidth(borderWidth: number): this;
1972
2096
  /**
1973
2097
  * @description 스파크 버블 차트 옵션을 적용합니다.
1974
2098
  * @returns {this}
1975
2099
  * @since 1.0.0
1976
- * @category options
1977
2100
  * @beta (기능 테스트 중)
1978
2101
  */
1979
2102
  sparkBubbleChart(): this;
@@ -1983,7 +2106,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1983
2106
  * @param {number} rotation - 회전 각도 (도 단위)
1984
2107
  * @returns {this}
1985
2108
  * @since 1.0.0
1986
- * @category dataset
1987
2109
  */
1988
2110
  setRotation(datasetIndex: number, rotation: number): this;
1989
2111
  /**
@@ -1991,7 +2113,6 @@ declare class BubbleChart extends CartesianChart<'bubble'> implements BubbleChar
1991
2113
  * @param {number} rotation - 회전 각도 (도 단위)
1992
2114
  * @returns {this}
1993
2115
  * @since 1.0.0
1994
- * @category dataset
1995
2116
  */
1996
2117
  setAllRotation(rotation: number): this;
1997
2118
  }
@@ -2027,12 +2148,12 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2027
2148
  * @param {number} idx
2028
2149
  * @Returns {void}
2029
2150
  * @Since 1.0.1
2030
- * @category Dataset
2031
2151
  * @beta
2032
2152
  */
2033
2153
  protected decorateDataset(ds: any, idx: number): void;
2034
2154
  protected mustHavePlugins(): {
2035
2155
  id: string;
2156
+ beforeInit(chart: any): void;
2036
2157
  afterDraw(chart: any, args: any, options: any): void;
2037
2158
  afterDestroy(chart: any): void;
2038
2159
  }[];
@@ -2044,7 +2165,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2044
2165
  * @param id
2045
2166
  * @returns {ChartConfig}
2046
2167
  * @Since 1.0.0
2047
- * @category Chart
2048
2168
  * @beta
2049
2169
  */
2050
2170
  build(id?: string): ChartConfig;
@@ -2053,7 +2173,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2053
2173
  * @param rotation - 시작 각도 (도 단위)
2054
2174
  * @returns {this}
2055
2175
  * @since 1.0.0
2056
- * @category Options
2057
2176
  * @beta
2058
2177
  */
2059
2178
  setRotation(rotation: number): this;
@@ -2062,7 +2181,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2062
2181
  * @param circumference - 원주각 (도 단위, 360 = 완전한 원)
2063
2182
  * @returns {this}
2064
2183
  * @since 1.0.0
2065
- * @category Options
2066
2184
  * @beta
2067
2185
  */
2068
2186
  setCircumference(circumference: number): this;
@@ -2071,7 +2189,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2071
2189
  * @param cutout - 구멍 크기 (퍼센트 문자열 또는 픽셀 숫자)
2072
2190
  * @returns {this}
2073
2191
  * @since 1.0.0
2074
- * @category Options
2075
2192
  * @beta
2076
2193
  */
2077
2194
  setCutout(cutout: string | number): this;
@@ -2080,7 +2197,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2080
2197
  * @param radius - 반지름 (퍼센트 문자열 또는 픽셀 숫자)
2081
2198
  * @returns {this}
2082
2199
  * @since 1.0.0
2083
- * @category Options
2084
2200
  * @beta
2085
2201
  */
2086
2202
  setRadius(radius: string | number): this;
@@ -2090,7 +2206,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2090
2206
  * @param borderWidth - 경계선 너비
2091
2207
  * @returns {this}
2092
2208
  * @since 1.0.0
2093
- * @category Dataset
2094
2209
  * @beta
2095
2210
  */
2096
2211
  setBorderWidth(datasetIndex: number, borderWidth: number): this;
@@ -2099,7 +2214,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2099
2214
  * @param borderWidth - 경계선 너비
2100
2215
  * @returns {this}
2101
2216
  * @since 1.0.0
2102
- * @category Dataset
2103
2217
  * @beta
2104
2218
  */
2105
2219
  setAllBorderWidth(borderWidth: number): this;
@@ -2109,7 +2223,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2109
2223
  * @param borderColor - 경계선 색상
2110
2224
  * @returns {this}
2111
2225
  * @since 1.0.0
2112
- * @category Dataset
2113
2226
  * @beta
2114
2227
  */
2115
2228
  setBorderColor(datasetIndex: number, borderColor: string | string[]): this;
@@ -2118,7 +2231,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2118
2231
  * @param borderColor - 경계선 색상
2119
2232
  * @returns {this}
2120
2233
  * @since 1.0.0
2121
- * @category Dataset
2122
2234
  * @beta
2123
2235
  */
2124
2236
  setAllBorderColor(borderColor: string | string[]): this;
@@ -2128,7 +2240,6 @@ declare abstract class ArcChart<TType extends ArcChartType> extends Chart<TType>
2128
2240
  * @param config - 이미지 설정 옵션
2129
2241
  * @returns {this}
2130
2242
  * @since 1.6.0
2131
- * @category Dataset
2132
2243
  * @beta
2133
2244
  * @example
2134
2245
  * // URL 방식 (순서대로 매핑)
@@ -2160,7 +2271,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2160
2271
  * @param {string} id
2161
2272
  * @returns {ChartConfig}
2162
2273
  * @Since 1.0.0
2163
- * @category config
2164
2274
  * @beta
2165
2275
  */
2166
2276
  makeConfig(id?: string): ChartConfig;
@@ -2169,7 +2279,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2169
2279
  * @param cutout - 구멍 크기 ('50%', '60%' 또는 픽셀값)
2170
2280
  * @returns {this}
2171
2281
  * @since 1.0.0
2172
- * @category Options
2173
2282
  * @beta
2174
2283
  */
2175
2284
  setCutout(cutout: string | number): this;
@@ -2177,7 +2286,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2177
2286
  * @description 도넛 차트를 파이 차트로 변경합니다 (구멍 제거).
2178
2287
  * @returns {this}
2179
2288
  * @since 1.0.0
2180
- * @category Options
2181
2289
  * @beta
2182
2290
  */
2183
2291
  convertToPie(): this;
@@ -2186,7 +2294,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2186
2294
  * @param colors - 색상 배열
2187
2295
  * @returns {this}
2188
2296
  * @since 1.0.0
2189
- * @category Dataset
2190
2297
  * @beta
2191
2298
  */
2192
2299
  setSegmentColors(colors: string[]): this;
@@ -2196,7 +2303,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2196
2303
  * @param offset - 분리 거리 (픽셀)
2197
2304
  * @returns {this}
2198
2305
  * @since 1.0.0
2199
- * @category Dataset
2200
2306
  * @beta
2201
2307
  */
2202
2308
  setSegmentOffset(dataIndex: number, offset: number): this;
@@ -2205,7 +2311,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2205
2311
  * @param rotation - 회전 각도 (도 단위)
2206
2312
  * @returns {this}
2207
2313
  * @since 1.0.0
2208
- * @category Options
2209
2314
  * @beta
2210
2315
  */
2211
2316
  setRotation(rotation: number): this;
@@ -2214,7 +2319,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2214
2319
  * @param circumference - 원주각 (도 단위, 360 = 완전한 원)
2215
2320
  * @returns {this}
2216
2321
  * @since 1.0.0
2217
- * @category Options
2218
2322
  * @beta
2219
2323
  */
2220
2324
  setCircumference(circumference: number): this;
@@ -2223,7 +2327,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2223
2327
  * @param radius - 반지름 ('90%', '100%' 또는 픽셀값)
2224
2328
  * @returns {this}
2225
2329
  * @since 1.0.0
2226
- * @category Options
2227
2330
  * @beta
2228
2331
  */
2229
2332
  setRadius(radius: string | number): this;
@@ -2232,7 +2335,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2232
2335
  * @param borderWidth - 경계선 너비
2233
2336
  * @returns {this}
2234
2337
  * @since 1.0.0
2235
- * @category Dataset
2236
2338
  * @beta
2237
2339
  */
2238
2340
  setAllBorderWidth(borderWidth: number): this;
@@ -2241,7 +2343,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2241
2343
  * @param borderColor - 경계선 색상
2242
2344
  * @returns {this}
2243
2345
  * @since 1.0.0
2244
- * @category Dataset
2245
2346
  * @beta
2246
2347
  */
2247
2348
  setAllBorderColor(borderColor: string | string[]): this;
@@ -2250,7 +2351,6 @@ declare class DoughnutChart extends ArcChart<'doughnut'> implements DoughnutChar
2250
2351
  * @param {{text: string | string[], color?: string, fontStyle?: string, sidePadding?: number, minFontSize?: number, maxFontSize?: number}} config
2251
2352
  * @returns {this}
2252
2353
  * @since 1.0.0
2253
- * @category plugin
2254
2354
  * @example
2255
2355
  * const chart = chartWrapper.create('doughnut', labels, datasets, options).setCenterText({
2256
2356
  * text: 'Center Text',
@@ -2280,7 +2380,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2280
2380
  * @param {string} id
2281
2381
  * @returns {ChartConfig}
2282
2382
  * @Since 1.0.0
2283
- * @category config
2284
2383
  * @beta
2285
2384
  */
2286
2385
  makeConfig(id?: string): ChartConfig;
@@ -2289,7 +2388,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2289
2388
  * @param colors - 색상 배열
2290
2389
  * @returns {this}
2291
2390
  * @since 1.0.0
2292
- * @category Dataset
2293
2391
  * @beta
2294
2392
  */
2295
2393
  setSegmentColors(colors: string[]): this;
@@ -2299,7 +2397,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2299
2397
  * @param offset - 분리 거리 (픽셀)
2300
2398
  * @returns {this}
2301
2399
  * @since 1.0.0
2302
- * @category Dataset
2303
2400
  * @beta
2304
2401
  */
2305
2402
  setSegmentOffset(dataIndex: number, offset: number): this;
@@ -2308,7 +2405,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2308
2405
  * @param rotation - 회전 각도 (도 단위)
2309
2406
  * @returns {this}
2310
2407
  * @since 1.0.0
2311
- * @category Options
2312
2408
  * @beta
2313
2409
  */
2314
2410
  setRotation(rotation: number): this;
@@ -2317,7 +2413,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2317
2413
  * @param circumference - 원주각 (도 단위, 360 = 완전한 원)
2318
2414
  * @returns {this}
2319
2415
  * @since 1.0.0
2320
- * @category Options
2321
2416
  * @beta
2322
2417
  */
2323
2418
  setCircumference(circumference: number): this;
@@ -2326,7 +2421,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2326
2421
  * @param radius - 반지름 ('90%', '100%' 또는 픽셀값)
2327
2422
  * @returns {this}
2328
2423
  * @since 1.0.0
2329
- * @category Options
2330
2424
  * @beta
2331
2425
  */
2332
2426
  setRadius(radius: string | number): this;
@@ -2335,7 +2429,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2335
2429
  * @param borderWidth - 경계선 너비
2336
2430
  * @returns {this}
2337
2431
  * @since 1.0.0
2338
- * @category Dataset
2339
2432
  * @beta
2340
2433
  */
2341
2434
  setAllBorderWidth(borderWidth: number): this;
@@ -2344,7 +2437,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2344
2437
  * @param borderColor - 경계선 색상
2345
2438
  * @returns {this}
2346
2439
  * @since 1.0.0
2347
- * @category Dataset
2348
2440
  * @beta
2349
2441
  */
2350
2442
  setAllBorderColor(borderColor: string | string[]): this;
@@ -2352,7 +2444,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2352
2444
  * @description 상단 반원형 파이 차트를 생성합니다.
2353
2445
  * @returns {this}
2354
2446
  * @since 1.0.0
2355
- * @category Options
2356
2447
  * @beta
2357
2448
  */
2358
2449
  setHalfPieTop(): this;
@@ -2360,7 +2451,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2360
2451
  * @description 하단 반원형 파이 차트를 생성합니다.
2361
2452
  * @returns {this}
2362
2453
  * @since 1.0.0
2363
- * @category Options
2364
2454
  * @beta
2365
2455
  */
2366
2456
  setHalfPieBottom(): this;
@@ -2368,7 +2458,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2368
2458
  * @description 좌측 반원형 파이 차트를 생성합니다.
2369
2459
  * @returns {this}
2370
2460
  * @since 1.0.0
2371
- * @category Options
2372
2461
  * @beta
2373
2462
  */
2374
2463
  setHalfPieLeft(): this;
@@ -2376,7 +2465,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2376
2465
  * @description 우측 반원형 파이 차트를 생성합니다.
2377
2466
  * @returns {this}
2378
2467
  * @since 1.0.0
2379
- * @category Options
2380
2468
  * @beta
2381
2469
  */
2382
2470
  setHalfPieRight(): this;
@@ -2385,7 +2473,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2385
2473
  * @param offset - 분리 거리 (픽셀, 기본값: 10)
2386
2474
  * @returns {this}
2387
2475
  * @since 1.0.0
2388
- * @category Dataset
2389
2476
  * @beta
2390
2477
  */
2391
2478
  highlightMaxSegment(offset?: number): this;
@@ -2394,7 +2481,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2394
2481
  * @param offset - 분리 거리 (픽셀, 기본값: 10)
2395
2482
  * @returns {this}
2396
2483
  * @since 1.0.0
2397
- * @category Dataset
2398
2484
  * @beta
2399
2485
  */
2400
2486
  highlightMinSegment(offset?: number): this;
@@ -2403,7 +2489,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2403
2489
  * @param offsets - 각 세그먼트의 offset 배열 또는 모든 세그먼트에 적용할 단일 값
2404
2490
  * @returns {this}
2405
2491
  * @since 1.0.0
2406
- * @category Dataset
2407
2492
  * @beta
2408
2493
  * @example
2409
2494
  * // 각 세그먼트마다 다른 offset
@@ -2419,7 +2504,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2419
2504
  * @param endColor - 종료 색상 (hex 형식, 예: '#36A2EB')
2420
2505
  * @returns {this}
2421
2506
  * @since 1.0.0
2422
- * @category Dataset
2423
2507
  * @beta
2424
2508
  */
2425
2509
  setGradientColors(startColor: string, endColor: string): this;
@@ -2429,7 +2513,6 @@ declare class PieChart extends ArcChart<'pie'> implements PieChartBuilder {
2429
2513
  * @param color - 적용할 색상
2430
2514
  * @returns {this}
2431
2515
  * @since 1.0.0
2432
- * @category Dataset
2433
2516
  * @beta
2434
2517
  * @example
2435
2518
  * // 값이 100 이상인 세그먼트만 빨간색으로
@@ -2478,6 +2561,7 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2478
2561
  protected normalize(): void;
2479
2562
  protected mustHavePlugins(): {
2480
2563
  id: string;
2564
+ beforeInit(chart: any): void;
2481
2565
  afterDraw(chart: any, args: any, options: any): void;
2482
2566
  afterDestroy(chart: any): void;
2483
2567
  }[];
@@ -2488,7 +2572,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2488
2572
  * @param id
2489
2573
  * @returns {ChartConfig}
2490
2574
  * @Since 1.0.0
2491
- * @category Chart
2492
2575
  */
2493
2576
  build(id?: string): ChartConfig;
2494
2577
  /**
@@ -2496,7 +2579,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2496
2579
  * @param data - 계층적 트리 데이터
2497
2580
  * @returns {this}
2498
2581
  * @since 1.0.0
2499
- * @category Data
2500
2582
  */
2501
2583
  setTreeData(data: Record<string, unknown>[] | number[] | Record<string, unknown>): this;
2502
2584
  /**
@@ -2504,7 +2586,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2504
2586
  * @param key - 색상 키
2505
2587
  * @returns {this}
2506
2588
  * @since 1.0.0
2507
- * @category Options
2508
2589
  */
2509
2590
  setColorKey(key: string): this;
2510
2591
  /**
@@ -2512,7 +2593,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2512
2593
  * @param key - 라벨 키
2513
2594
  * @returns {this}
2514
2595
  * @since 1.0.0
2515
- * @category Options
2516
2596
  */
2517
2597
  setLabelKey(key: string): this;
2518
2598
  /**
@@ -2520,7 +2600,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2520
2600
  * @param key - 값 키
2521
2601
  * @returns {this}
2522
2602
  * @since 1.0.0
2523
- * @category Options
2524
2603
  */
2525
2604
  setValueKey(key: string): this;
2526
2605
  /**
@@ -2528,7 +2607,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2528
2607
  * @param spacing - 간격 (픽셀)
2529
2608
  * @returns {this}
2530
2609
  * @since 1.0.0
2531
- * @category Options
2532
2610
  */
2533
2611
  setSpacing(spacing: number): this;
2534
2612
  /**
@@ -2536,7 +2614,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2536
2614
  * @param borderWidth - 경계선 너비
2537
2615
  * @returns {this}
2538
2616
  * @since 1.0.0
2539
- * @category Options
2540
2617
  */
2541
2618
  setBorderWidth(borderWidth: number): this;
2542
2619
  /**
@@ -2544,7 +2621,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2544
2621
  * @param borderColor - 경계선 색상
2545
2622
  * @returns {this}
2546
2623
  * @since 1.0.0
2547
- * @category Options
2548
2624
  */
2549
2625
  setBorderColor(borderColor: string): this;
2550
2626
  }
@@ -2552,7 +2628,6 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2552
2628
  /**
2553
2629
  * @description Cartesian 차트에서 사용할 수 있는 플러그인들을 제공합니다.
2554
2630
  * @since 1.6.6
2555
- * @category Plugins
2556
2631
  */
2557
2632
  /**
2558
2633
  * @description 오늘 날짜에 수직선을 그리는 플러그인을 생성합니다.
@@ -2560,7 +2635,7 @@ declare class TreemapChart extends Chart<'treemap', CustomTreemapChartOptions> i
2560
2635
  * @param text (기본값 : 'TODAY')
2561
2636
  * @returns {object} Chart.js 플러그인 객체
2562
2637
  * @since 1.6.6
2563
- * @category Plugins
2638
+ * @group Cartesian Plugins
2564
2639
  * @example
2565
2640
  * const todayLine = createTodayLinePlugin('rgb(255,0,0)');
2566
2641
  * chart.setPlugin(todayLine);
@@ -2574,7 +2649,7 @@ declare const createTodayLinePlugin: (color?: string, text?: string) => {
2574
2649
  * @param {string} color - 주말 배경색 (기본값: 'rgba(102, 102, 102, 0.2)')
2575
2650
  * @returns {object} Chart.js 플러그인 객체
2576
2651
  * @since 1.6.6
2577
- * @category Plugins
2652
+ * @group Cartesian Plugins
2578
2653
  * @example
2579
2654
  * const weekend = createWeekendPlugin('rgba(255, 0, 0, 0.1)');
2580
2655
  * chart.setPlugin(weekend);
@@ -2589,7 +2664,7 @@ declare const createWeekendPlugin: (color?: string) => {
2589
2664
  * @param {string} statusField - 상태값을 가져올 데이터 포인트의 필드명 (기본값: 'status')
2590
2665
  * @returns {object} Chart.js 플러그인 객체
2591
2666
  * @since 1.6.6
2592
- * @category Plugins
2667
+ * @group Cartesian Plugins
2593
2668
  * @example
2594
2669
  * // 기본 아이콘 사용
2595
2670
  * const status = createStatusPlugin();
@@ -2618,7 +2693,7 @@ declare const createStatusPlugin: (imageUrls?: {
2618
2693
  * @param {object} options - 텍스트 스타일 옵션
2619
2694
  * @returns {object} Chart.js 플러그인 객체
2620
2695
  * @since 1.6.6
2621
- * @category Plugins
2696
+ * @group Cartesian Plugins
2622
2697
  * @example
2623
2698
  * // assignee 필드 표시
2624
2699
  * const assignedTasks = createAssignedTasksPlugin('assignee');
@@ -2644,23 +2719,41 @@ declare const createAssignedTasksPlugin: (fieldName?: string, options?: {
2644
2719
  afterDatasetsDraw(chart: any, args: any, pluginOptions: any): void;
2645
2720
  };
2646
2721
 
2722
+ /**
2723
+ * @description 데이터가 없을 때 'No data' 텍스트를 차트 중앙에 표시하는 플러그인입니다.
2724
+ * @group Common Plugins
2725
+ */
2647
2726
  declare const noDataPlugin: {
2648
2727
  id: string;
2649
2728
  beforeUpdate: (chart: any) => void;
2650
2729
  afterDraw: (chart: any) => void;
2651
2730
  beforeDestroy(chart: any): void;
2652
2731
  };
2732
+ /**
2733
+ * @description 차트 줌 상태에서 초기 뷰로 돌아가는 리셋 버튼을 차트 위에 표시하는 플러그인입니다.
2734
+ * @group Common Plugins
2735
+ */
2653
2736
  declare const zoomResetPlugin: {
2654
2737
  id: string;
2655
2738
  afterDraw(chart: any, args: any, options: any): void;
2656
2739
  afterEvent(chart: any, args: any): void;
2657
2740
  };
2741
+ /**
2742
+ * @description 차트 첫 렌더 직전까지 placeholder 로딩 화면을 표시하는 플러그인입니다.
2743
+ * @group Common Plugins
2744
+ */
2658
2745
  declare const loadingPlugin: {
2659
2746
  id: string;
2660
- beforeInit(chart: any, args: any, options: any): void;
2661
- beforeDraw(chart: any): void;
2662
- startLoadingAnimation(chart: any): void;
2747
+ beforeInit(chart: any): void;
2748
+ beforeDraw(chart: any): false | undefined;
2749
+ drawLoadingPlaceholder(chart: any): void;
2750
+ afterDestroy(chart: any): void;
2663
2751
  };
2752
+ /**
2753
+ * @description 외부 HTML 컨테이너에 커스텀 범례를 렌더링하는 플러그인입니다.
2754
+ * containerID 옵션으로 렌더링 대상 엘리먼트를 지정합니다.
2755
+ * @group Common Plugins
2756
+ */
2664
2757
  declare const customLegend: {
2665
2758
  id: string;
2666
2759
  _Default: {
@@ -2700,10 +2793,12 @@ declare const customLegend: {
2700
2793
  afterUpdate(chart: any, args: any, options: any): void;
2701
2794
  };
2702
2795
  /**
2703
- * @description 차트가 마운트될 때 호출되는 플러그인입니다.
2796
+ * @description 차트가 마운트될 때 `_mounted` 콜백을 호출하고 ChartInstance에 등록하는 플러그인입니다.
2797
+ * @group Common Plugins
2704
2798
  */
2705
2799
  declare const chartMountPlugin: {
2706
2800
  id: string;
2801
+ beforeInit(chart: any): void;
2707
2802
  afterDraw(chart: any, args: any, options: any): void;
2708
2803
  afterDestroy(chart: any): void;
2709
2804
  };
@@ -2719,7 +2814,6 @@ declare const chartMountPlugin: {
2719
2814
  * - `_tooltip: string | function` - 범례 항목 마우스 오버 시 툴팁 표시
2720
2815
  *
2721
2816
  * @since 1.3.0
2722
- * @category plugin
2723
2817
  * @example
2724
2818
  * ```typescript
2725
2819
  * // 기본 사용법
@@ -2778,6 +2872,7 @@ declare const chartMountPlugin: {
2778
2872
  * - 메모리 누수 방지를 위해 차트 파괴 시 자동으로 정리됩니다
2779
2873
  *
2780
2874
  * @beta (aux 정상동작 , _group : 에러 , groupLabel : 정상 , _tooltip : 에러 , _toggleBehavior : 정상 , _visible : 정상 , _legendOrder : 확인중)
2875
+ * @group Common Plugins
2781
2876
  */
2782
2877
  declare const customDatasetPlugins: {
2783
2878
  id: string;
@@ -2793,12 +2888,33 @@ declare const customDatasetPlugins: {
2793
2888
  _hideTooltip(chart: any): void;
2794
2889
  afterDestroy(chart: any): void;
2795
2890
  };
2891
+ /**
2892
+ * @description 임계값을 초과하는 데이터 포인트에 깜빡이는 하이라이트 효과를 표시하는 플러그인입니다.
2893
+ * @group Common Plugins
2894
+ */
2796
2895
  declare const blinkPlugin: Plugin$1;
2896
+ /**
2897
+ * @description 도넛 차트 중앙에 표시할 HTML 문자열을 생성하는 유틸리티 함수입니다.
2898
+ * @param percent - 퍼센트 값
2899
+ * @param ok - 정상 건수
2900
+ * @param warn - 경고 건수
2901
+ * @param ng - 불량 건수
2902
+ * @group Common Plugins
2903
+ */
2797
2904
  declare const makeCenterHtml: (percent: number, ok?: number, warn?: number, ng?: number) => string;
2905
+ /**
2906
+ * @description 바 차트 축 레이블 위치에 이미지를 표시하는 플러그인입니다.
2907
+ * 데이터셋에 `image` 프로퍼티를 지정하면 해당 이미지가 렌더링됩니다.
2908
+ * @group Common Plugins
2909
+ */
2798
2910
  declare const barScaleImgPlugin: {
2799
2911
  id: string;
2800
2912
  beforeDatasetsDraw(chart: any, args: any, options: any): void;
2801
2913
  };
2914
+ /**
2915
+ * @description 차트 우측 상단에 설정 아이콘 버튼을 표시하고 클릭 이벤트를 처리하는 플러그인입니다.
2916
+ * @group Common Plugins
2917
+ */
2802
2918
  declare const changeSetting: {
2803
2919
  id: string;
2804
2920
  _Default: SettingOptions;
@@ -2806,6 +2922,11 @@ declare const changeSetting: {
2806
2922
  beforeDraw(chart: any): void;
2807
2923
  afterDestroy(chart: any): void;
2808
2924
  };
2925
+ /**
2926
+ * @description 차트 하단에 드래그 가능한 범위 슬라이더를 렌더링하여 x축 줌을 제어하는 플러그인입니다.
2927
+ * 색상 커스터마이징이 필요하다면 {@link CreateZoomRangeSlider}를 사용하세요.
2928
+ * @group Common Plugins
2929
+ */
2809
2930
  declare const zoomRangeSlider: {
2810
2931
  id: string;
2811
2932
  var: {
@@ -2817,8 +2938,26 @@ declare const zoomRangeSlider: {
2817
2938
  afterUpdate(chart: any, args: any, options: any): void;
2818
2939
  afterEvent(chart: any, args: any, options: any): void;
2819
2940
  };
2941
+ /**
2942
+ * @description 색상을 커스터마이징 가능한 줌 범위 슬라이더 플러그인 인스턴스를 생성합니다.
2943
+ * @param colors - 슬라이더 색상 옵션 {@link ZoomRangeSliderColors}
2944
+ * @returns Chart.js 플러그인 객체
2945
+ * @group Common Plugins
2946
+ */
2820
2947
  declare const CreateZoomRangeSlider: (colors?: ZoomRangeSliderColors) => ZoomRangeSliderPlugin;
2821
2948
 
2949
+ /**
2950
+ * @description 도넛 차트 중앙에 텍스트를 HTML 오버레이로 표시하는 플러그인 인스턴스를 생성합니다.
2951
+ * 데이터가 없으면 자동으로 숨겨집니다.
2952
+ * @param config - 텍스트, 색상, 폰트 설정
2953
+ * @returns Chart.js 플러그인 객체
2954
+ * @group Doughnut Plugins
2955
+ * @example
2956
+ * ```typescript
2957
+ * const plugin = doughnutCenterTextPlugin({ text: ['75%', '정상'], color: '#333' });
2958
+ * chart.setPlugin(plugin);
2959
+ * ```
2960
+ */
2822
2961
  declare function doughnutCenterTextPlugin(config: {
2823
2962
  text: string | string[];
2824
2963
  color?: string;
@@ -2831,6 +2970,13 @@ declare function doughnutCenterTextPlugin(config: {
2831
2970
  updatePosition(chart: Chart$1): void;
2832
2971
  destroy(chart: Chart$1): void;
2833
2972
  };
2973
+ /**
2974
+ * @description 도넛/파이 차트의 각 세그먼트 중앙에 이미지를 렌더링하는 플러그인 인스턴스를 생성합니다.
2975
+ * `string[]` 또는 `_uid` 매핑 방식을 모두 지원합니다.
2976
+ * @param config - 이미지 소스 및 크기 설정 {@link SegmentImageConfig}
2977
+ * @returns Chart.js 플러그인 객체
2978
+ * @group Doughnut Plugins
2979
+ */
2834
2980
  declare function segmentImagePlugin(config: SegmentImageConfig): {
2835
2981
  id: string;
2836
2982
  afterDatasetDraw(chart: Chart$1<"doughnut" | "pie">, args: any): void;
@@ -2916,7 +3062,6 @@ declare const DefaultDataLabelsOptions: {
2916
3062
  * @description `setTimeScale()` 호출 시 별도 값이 전달되지 않았을 때 적용되는 시간 축 기본 옵션입니다.
2917
3063
  * `unit`, `tooltipFormat`, `displayFormats.hour`의 기본값을 제공합니다.
2918
3064
  * @since 2.4.0
2919
- * @category Scales
2920
3065
  * @example
2921
3066
  * // setTimeScale('x')만 호출하면 아래 기본값이 적용됩니다.
2922
3067
  * ChartWrapper.create('line', [], datasets)
@@ -3141,6 +3286,11 @@ interface StzConfig {
3141
3286
  defaultColor?: string[];
3142
3287
  zoom?: boolean | DeepPartialZoomType;
3143
3288
  loading?: boolean;
3289
+ /**
3290
+ * {@link mountChart} 에서 사용하는 DOM 기반 spinner overlay의 전역 기본값입니다.
3291
+ * 차트별 `spinnerOverlay` 옵션이 있으면 그 값이 우선합니다.
3292
+ */
3293
+ spinnerOverlay?: SpinnerOverlayOption;
3144
3294
  legend?: DeepPartial<LegendOptions<any>>;
3145
3295
  tooltip?: DeepPartial<TooltipOptions<any>>;
3146
3296
  /** @deprecated no-op. Built-in chart types are bootstrapped at package load time. */
@@ -3185,6 +3335,57 @@ interface StzConfig {
3185
3335
  */
3186
3336
  declare function setChartConfig(config: StzConfig): void;
3187
3337
 
3338
+ /**
3339
+ * {@link mountChart} 가 반환하는 마운트 결과입니다.
3340
+ *
3341
+ * @group Spinner Overlay
3342
+ */
3343
+ interface MountChartHandle {
3344
+ /** `config._chartId` 또는 `config.options._chartId` 에서 해석된 안정적인 차트 id입니다. */
3345
+ chartId: string;
3346
+ /** 마운트된 차트를 제거하고 활성 overlay도 함께 정리합니다. */
3347
+ destroy: () => void;
3348
+ /** 차트 인스턴스 생성과 spinner overlay lifecycle이 모두 끝나면 resolve 됩니다. */
3349
+ ready: Promise<Chart$1>;
3350
+ }
3351
+ /**
3352
+ * `_chartId`를 기준으로 대상 canvas를 찾아 차트 설정을 마운트합니다.
3353
+ *
3354
+ * 차트 옵션이나 전역 설정에서 `spinnerOverlay`가 활성화되어 있으면,
3355
+ * 이 helper는 먼저 DOM overlay를 만들고 브라우저 paint를 한 번 양보한 뒤 Chart.js 인스턴스를 생성합니다.
3356
+ * 첫 렌더가 안정화되면 overlay를 제거합니다.
3357
+ *
3358
+ * 즉 `spinnerOverlay`의 실제 런타임은 이 helper이며, `build()`만으로는 설정 객체만 만들어집니다.
3359
+ *
3360
+ * @param config `build(id)`로 생성한 차트 설정 객체
3361
+ * @returns `ready`, `destroy`를 포함한 마운트 핸들
3362
+ *
3363
+ * @example
3364
+ * ```ts
3365
+ * const config = ChartWrapper
3366
+ * .create('bar', labels, datasets)
3367
+ * .setSpinnerOverlay({
3368
+ * enabled: true,
3369
+ * text: '차트 준비 중...',
3370
+ * })
3371
+ * .build('sales-chart');
3372
+ *
3373
+ * const mounted = mountChart(config);
3374
+ * await mounted.ready;
3375
+ * ```
3376
+ *
3377
+ * @example
3378
+ * ```tsx
3379
+ * useEffect(() => {
3380
+ * const mounted = mountChart(config);
3381
+ * return () => mounted.destroy();
3382
+ * }, [config]);
3383
+ * ```
3384
+ *
3385
+ * @group Spinner Overlay
3386
+ */
3387
+ declare function mountChart(config: ChartConfig): MountChartHandle;
3388
+
3188
3389
  interface ChartImageExportOptions {
3189
3390
  format?: 'png' | 'jpeg' | 'webp';
3190
3391
  quality?: number;
@@ -3198,7 +3399,6 @@ type ChartTarget = string | Chart$1;
3198
3399
  * @param target 차트 ID 또는 Chart 인스턴스
3199
3400
  * @returns Chart.js 인스턴스
3200
3401
  * @since 2.3.5
3201
- * @category util
3202
3402
  * @example
3203
3403
  * ```ts
3204
3404
  * const chart = getChartInstance('sales-chart');
@@ -3211,7 +3411,6 @@ declare function getChartInstance(chartId: string): Chart$1;
3211
3411
  * 차트의 zoom 상태를 초기화합니다.
3212
3412
  * @param target 차트 ID 또는 Chart 인스턴스
3213
3413
  * @since 2.3.5
3214
- * @category util
3215
3414
  * @example
3216
3415
  * ```ts
3217
3416
  * resetChartZoom('sales-chart');
@@ -3224,7 +3423,6 @@ declare function resetChartZoom(chartId: string): void;
3224
3423
  * @param target 차트 ID 또는 Chart 인스턴스
3225
3424
  * @param mode Chart.js update mode
3226
3425
  * @since 2.3.5
3227
- * @category util
3228
3426
  * @example
3229
3427
  * ```ts
3230
3428
  * updateChart('sales-chart', 'none');
@@ -3236,7 +3434,6 @@ declare function updateChart(chartId: string, mode?: Parameters<Chart$1['update'
3236
3434
  * 차트 크기를 다시 계산합니다.
3237
3435
  * @param target 차트 ID 또는 Chart 인스턴스
3238
3436
  * @since 2.3.5
3239
- * @category util
3240
3437
  * @example
3241
3438
  * ```ts
3242
3439
  * resizeChart('sales-chart');
@@ -3249,7 +3446,6 @@ declare function resizeChart(chartId: string): void;
3249
3446
  * @param target 차트 ID 또는 Chart 인스턴스
3250
3447
  * @param activeElements 활성화할 요소 목록
3251
3448
  * @since 2.3.5
3252
- * @category util
3253
3449
  * @example
3254
3450
  * ```ts
3255
3451
  * setChartActiveElements('sales-chart', [{ datasetIndex: 0, index: 2 }]);
@@ -3261,7 +3457,6 @@ declare function setChartActiveElements(chartId: string, activeElements: ActiveE
3261
3457
  * 차트의 active element를 모두 해제합니다.
3262
3458
  * @param target 차트 ID 또는 Chart 인스턴스
3263
3459
  * @since 2.3.5
3264
- * @category util
3265
3460
  * @example
3266
3461
  * ```ts
3267
3462
  * clearChartActiveElements('sales-chart');
@@ -3275,7 +3470,6 @@ declare function clearChartActiveElements(chartId: string): void;
3275
3470
  * @param datasetIndex dataset index
3276
3471
  * @param visible 표시 여부
3277
3472
  * @since 2.3.5
3278
- * @category util
3279
3473
  * @example
3280
3474
  * ```ts
3281
3475
  * setChartDatasetVisibility('sales-chart', 1, false);
@@ -3289,7 +3483,6 @@ declare function setChartDatasetVisibility(chartId: string, datasetIndex: number
3289
3483
  * @param datasetIndex dataset index
3290
3484
  * @returns 토글 후 표시 여부
3291
3485
  * @since 2.3.5
3292
- * @category util
3293
3486
  * @example
3294
3487
  * ```ts
3295
3488
  * const visible = toggleChartDatasetVisibility('sales-chart', 1);
@@ -3303,7 +3496,6 @@ declare function toggleChartDatasetVisibility(chartId: string, datasetIndex: num
3303
3496
  * @param datasetIndex dataset index
3304
3497
  * @returns 표시 여부
3305
3498
  * @since 2.3.5
3306
- * @category util
3307
3499
  * @example
3308
3500
  * ```ts
3309
3501
  * const visible = isChartDatasetVisible('sales-chart', 1);
@@ -3317,7 +3509,6 @@ declare function isChartDatasetVisible(chartId: string, datasetIndex: number): b
3317
3509
  * @param activeElements 활성화할 요소 목록
3318
3510
  * @param position tooltip 위치. 생략 시 활성 요소 위치를 사용합니다.
3319
3511
  * @since 2.3.5
3320
- * @category util
3321
3512
  * @example
3322
3513
  * ```ts
3323
3514
  * showChartTooltip('sales-chart', [{ datasetIndex: 0, index: 2 }]);
@@ -3335,7 +3526,6 @@ declare function showChartTooltip(chartId: string, activeElements: ActiveElement
3335
3526
  * 차트 tooltip을 숨기고 active element를 해제합니다.
3336
3527
  * @param target 차트 ID 또는 Chart 인스턴스
3337
3528
  * @since 2.3.5
3338
- * @category util
3339
3529
  * @example
3340
3530
  * ```ts
3341
3531
  * hideChartTooltip('sales-chart');
@@ -3349,7 +3539,6 @@ declare function hideChartTooltip(chartId: string): void;
3349
3539
  * @param datasetIndex dataset index
3350
3540
  * @returns dataset meta
3351
3541
  * @since 2.3.5
3352
- * @category util
3353
3542
  * @example
3354
3543
  * ```ts
3355
3544
  * const meta = getChartDatasetMeta('sales-chart', 0);
@@ -3363,7 +3552,6 @@ declare function getChartDatasetMeta(chartId: string, datasetIndex: number): Ret
3363
3552
  * @param target 차트 ID 또는 Chart 인스턴스
3364
3553
  * @param options 이미지 내보내기 옵션
3365
3554
  * @since 1.5.0
3366
- * @category util
3367
3555
  */
3368
3556
  declare function downloadChartAsImage(target: Chart$1, options?: ChartImageExportOptions): void;
3369
3557
  declare function downloadChartAsImage(target: string, options?: ChartImageExportOptions): void;
@@ -3372,7 +3560,6 @@ declare function downloadChartAsImage(target: string, options?: ChartImageExport
3372
3560
  * @param chart Chart 인스턴스
3373
3561
  * @param options 이미지 내보내기 옵션
3374
3562
  * @since 1.5.0
3375
- * @category util
3376
3563
  */
3377
3564
  declare function downloadChartAsImageByInstance(chart: Chart$1, options?: ChartImageExportOptions): void;
3378
3565
  /**
@@ -3381,7 +3568,6 @@ declare function downloadChartAsImageByInstance(chart: Chart$1, options?: ChartI
3381
3568
  * @param options 이미지 내보내기 옵션
3382
3569
  * @returns Base64 인코딩된 이미지 데이터 URL
3383
3570
  * @since 1.5.0
3384
- * @category util
3385
3571
  */
3386
3572
  declare function getChartAsBase64(target: Chart$1, options?: Omit<ChartImageExportOptions, 'filename'>): string;
3387
3573
  declare function getChartAsBase64(target: string, options?: Omit<ChartImageExportOptions, 'filename'>): string;
@@ -3391,7 +3577,6 @@ declare function getChartAsBase64(target: string, options?: Omit<ChartImageExpor
3391
3577
  * @param options 이미지 내보내기 옵션
3392
3578
  * @returns Base64 인코딩된 이미지 데이터 URL
3393
3579
  * @since 1.5.0
3394
- * @category util
3395
3580
  */
3396
3581
  declare function getChartAsBase64ByInstance(chart: Chart$1, options?: Omit<ChartImageExportOptions, 'filename'>): string;
3397
3582
  /**
@@ -3400,7 +3585,6 @@ declare function getChartAsBase64ByInstance(chart: Chart$1, options?: Omit<Chart
3400
3585
  * @param options 이미지 내보내기 옵션
3401
3586
  * @returns Promise<Blob> 이미지 Blob
3402
3587
  * @since 1.5.0
3403
- * @category util
3404
3588
  */
3405
3589
  declare function getChartAsBlob(target: Chart$1, options?: Omit<ChartImageExportOptions, 'filename'>): Promise<Blob>;
3406
3590
  declare function getChartAsBlob(target: string, options?: Omit<ChartImageExportOptions, 'filename'>): Promise<Blob>;
@@ -3410,7 +3594,6 @@ declare function getChartAsBlob(target: string, options?: Omit<ChartImageExportO
3410
3594
  * @param options 이미지 내보내기 옵션
3411
3595
  * @returns Promise<Blob> 이미지 Blob
3412
3596
  * @since 1.5.0
3413
- * @category util
3414
3597
  */
3415
3598
  declare function getChartAsBlobByInstance(chart: Chart$1, options?: Omit<ChartImageExportOptions, 'filename'>): Promise<Blob>;
3416
3599
 
@@ -3447,5 +3630,5 @@ declare const T$: {
3447
3630
  };
3448
3631
  };
3449
3632
 
3450
- export { ArcChart, ArcChart as ArcChartWrapper, BarChart, BarChart as BarChartWrapper, BubbleChart, BubbleChart as BubbleChartWrapper, CartesianChart, CartesianChart as CartesianChartWrapper, Chart, ChartFactory, ChartInstance, ChartToolBox, ChartTypes, Chart as ChartWrapper, CreateZoomRangeSlider, DefaultArcRadius, DefaultDataLabelsOptions, DefaultHiddenLegendTopOptions, DefaultHiddenSparkScales, DefaultResponsiveChartOptions, DefaultSparkPluginOptions, DefaultTimeScaleOptions, DefaultTopLegendOptions, DefaultZoomOptions, DoughnutChart, DoughnutChart as DoughnutChartWrapper, LineChart, LineChart as LineChartWrapper, PieChart, PieChart as PieChartWrapper, T$, TreemapChart, TreemapChart as TreemapChartWrapper, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, clearChartActiveElements, createAssignedTasksPlugin, createDefaultBarOptions, createDefaultBubbleOptions, createDefaultCartesianScales, createDefaultDoughnutOptions, createDefaultLineOptions, createDefaultPieOptions, createDefaultTreemapOptions, createStatusPlugin, createTodayLinePlugin, createWeekendPlugin, customDatasetPlugins, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultBubbleScales, defaultBubbleTooltipCallback, defaultDoughnutTooltipCallback, defaultLineScales, defaultLineTooltipCallback, defaultPieTooltipCallback, defaultTreemapTooltipCallback, doughnutCenterTextPlugin, downloadChartAsImage, downloadChartAsImageByInstance, getChartAsBase64, getChartAsBase64ByInstance, getChartAsBlob, getChartAsBlobByInstance, getChartDatasetMeta, getChartInstance, hideChartTooltip, isChartDatasetVisible, loadingPlugin, makeCenterHtml, noDataPlugin, resetChartZoom, resizeChart, segmentImagePlugin, setChartActiveElements, setChartConfig, setChartDatasetVisibility, showChartTooltip, sparkBarOptions, sparkBubbleOptions, sparkLineOptions, toggleChartDatasetVisibility, updateChart, zoomRangeSlider, zoomResetPlugin };
3451
- export type { Align, AllChartTypes, ArcChartBuilder, ArcChartType, ArcDataset, AxisColors, BarChartBuilder, BubbleChartBuilder, CartesianChartBuilder, CartesianChartType, CartesianDataset, ChartBuilder, ChartImageExportOptions, ChartTarget, ChartWithFocus, Color, CommonAxes, CommonAxesSacels, CommonCartesian, CommonCartesianAxes, CommonCartesianLegendConfig, CommonCartesianTicks, CommonCartesianTitleConfig, CommonTicks, Constructor, CustomArcChartOptions, CustomBarChartOptions, CustomBubbleChartOptions, CustomCartesianDataset, CustomChartDatasets, CustomChartOptions, CustomDoughnutChartOptions, CustomLineChartOptions, CustomOptionPlugins, CustomPieChartOptions, CustomTreemapChartOptions, CustomTreemapDataset, CustomZoomType, DataLabels, DataLabelsContext, DatasetWithPrevColors, DeepPartial, DeepPartialCartesianAxes, DeepPartialPluginOptions, DeepPartialZoomType, DoughnutChartBuilder, FocusCallback, HierarchicalChartType, HtmlLegendOptions, LineChartBuilder, Mode, OriginalColors, Override, PartialDataLabels, PieChartBuilder, Position, RadarChartBuilder, RadialChartType, ScaleWithOriginalColors, SegmentImageConfig, SettingOptions, StzConfig, TimeScaleConfig, TimeScaleType, TimeUnit, TreemapChartBuilder, UidImageMapping, ZoomRangeSliderColors, ZoomRangeSliderPlugin, ZoomRangeSliderVar };
3633
+ export { ArcChart, ArcChart as ArcChartWrapper, BarChart, BarChart as BarChartWrapper, BubbleChart, BubbleChart as BubbleChartWrapper, CartesianChart, CartesianChart as CartesianChartWrapper, Chart, ChartFactory, ChartInstance, ChartToolBox, ChartTypes, Chart as ChartWrapper, CreateZoomRangeSlider, DefaultArcRadius, DefaultDataLabelsOptions, DefaultHiddenLegendTopOptions, DefaultHiddenSparkScales, DefaultResponsiveChartOptions, DefaultSparkPluginOptions, DefaultTimeScaleOptions, DefaultTopLegendOptions, DefaultZoomOptions, DoughnutChart, DoughnutChart as DoughnutChartWrapper, LineChart, LineChart as LineChartWrapper, PieChart, PieChart as PieChartWrapper, T$, TreemapChart, TreemapChart as TreemapChartWrapper, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, clearChartActiveElements, createAssignedTasksPlugin, createDefaultBarOptions, createDefaultBubbleOptions, createDefaultCartesianScales, createDefaultDoughnutOptions, createDefaultLineOptions, createDefaultPieOptions, createDefaultTreemapOptions, createStatusPlugin, createTodayLinePlugin, createWeekendPlugin, customDatasetPlugins, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultBubbleScales, defaultBubbleTooltipCallback, defaultDoughnutTooltipCallback, defaultLineScales, defaultLineTooltipCallback, defaultPieTooltipCallback, defaultTreemapTooltipCallback, doughnutCenterTextPlugin, downloadChartAsImage, downloadChartAsImageByInstance, getChartAsBase64, getChartAsBase64ByInstance, getChartAsBlob, getChartAsBlobByInstance, getChartDatasetMeta, getChartInstance, hideChartTooltip, isChartDatasetVisible, loadingPlugin, makeCenterHtml, mountChart, noDataPlugin, resetChartZoom, resizeChart, segmentImagePlugin, setChartActiveElements, setChartConfig, setChartDatasetVisibility, showChartTooltip, sparkBarOptions, sparkBubbleOptions, sparkLineOptions, toggleChartDatasetVisibility, updateChart, zoomRangeSlider, zoomResetPlugin };
3634
+ export type { Align, AllChartTypes, ArcChartBuilder, ArcChartType, ArcDataset, AutoZoomLimitMode, AutoZoomLimits, AxisColors, BarChartBuilder, BubbleChartBuilder, CartesianChartBuilder, CartesianChartType, CartesianDataset, ChartBuilder, ChartImageExportOptions, ChartTarget, ChartWithFocus, Color, CommonAxes, CommonAxesSacels, CommonCartesian, CommonCartesianAxes, CommonCartesianLegendConfig, CommonCartesianTicks, CommonCartesianTitleConfig, CommonTicks, Constructor, CustomArcChartOptions, CustomBarChartOptions, CustomBubbleChartOptions, CustomCartesianDataset, CustomChartDatasets, CustomChartOptions, CustomDoughnutChartOptions, CustomLineChartOptions, CustomOptionPlugins, CustomPieChartOptions, CustomTreemapChartOptions, CustomTreemapDataset, CustomZoomType, DataLabels, DataLabelsContext, DatasetWithPrevColors, DeepPartial, DeepPartialCartesianAxes, DeepPartialPluginOptions, DeepPartialZoomType, DoughnutChartBuilder, FocusCallback, HierarchicalChartType, HtmlLegendOptions, LineChartBuilder, Mode, MountChartHandle, OriginalColors, Override, PartialDataLabels, PieChartBuilder, Position, RadarChartBuilder, RadialChartType, ScaleWithOriginalColors, SegmentImageConfig, SettingOptions, SpinnerOverlayConfig, SpinnerOverlayOption, SpinnerOverlayRenderContext, SpinnerOverlaySpinnerContent, SpinnerOverlayStyle, StzConfig, TimeScaleConfig, TimeScaleType, TimeUnit, TreemapChartBuilder, UidImageMapping, ZoomLimitOptions, ZoomRangeSliderColors, ZoomRangeSliderPlugin, ZoomRangeSliderVar, ZoomScaleLimits };