stz-chart-maker 1.0.19 → 1.1.1
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 +271 -10
- package/dist/index.js +1661 -1437
- package/package.json +21 -1
package/dist/index.d.ts
CHANGED
|
@@ -68,9 +68,17 @@ interface ChartBuilder<TType extends ChartType> {
|
|
|
68
68
|
setPlugin(plugins: any): this;
|
|
69
69
|
removePlugin(pluginId: string): this;
|
|
70
70
|
build(id?: string): ChartConfig;
|
|
71
|
+
makeConfig(id?: string): ChartConfig;
|
|
72
|
+
hasPlugin(pluginId: string): boolean;
|
|
73
|
+
onResize(callback: (chart: Chart<TType>, size: {
|
|
74
|
+
width: number;
|
|
75
|
+
height: number;
|
|
76
|
+
}) => void): this;
|
|
71
77
|
}
|
|
72
78
|
type Position = 'start' | 'center' | 'end' | 'left' | 'right' | 'top' | 'bottom';
|
|
73
79
|
type CartesianChartType = 'line' | 'bar' | 'scatter' | 'bubble';
|
|
80
|
+
type ArcChartType = 'doughnut' | 'pie';
|
|
81
|
+
type RadialChartType = 'radar' | 'polarArea';
|
|
74
82
|
type Color = string | CanvasGradient | CanvasPattern;
|
|
75
83
|
type Mode = 'default' | 'resize' | 'reset' | 'none' | 'hide' | 'show' | 'active';
|
|
76
84
|
type DeepPartial<T> = {
|
|
@@ -220,9 +228,17 @@ type CustomChartOptions<TType extends ChartType = ChartType> = Override<ChartOpt
|
|
|
220
228
|
_mounted?: (chart: Chart<TType>) => void;
|
|
221
229
|
_chartId?: string;
|
|
222
230
|
};
|
|
231
|
+
type CustomArcChartOptions<TType extends ArcChartType = ArcChartType> = CustomChartOptions<TType> & {
|
|
232
|
+
scales?: never;
|
|
233
|
+
rotation?: number;
|
|
234
|
+
circumference?: number;
|
|
235
|
+
cutout?: string | number;
|
|
236
|
+
radius?: number | string;
|
|
237
|
+
};
|
|
223
238
|
type CustomBarChartOptions = CustomChartOptions<'bar'>;
|
|
224
239
|
type CustomLineChartOptions = CustomChartOptions<'line'>;
|
|
225
|
-
type CustomPieChartOptions =
|
|
240
|
+
type CustomPieChartOptions = CustomArcChartOptions<'pie'>;
|
|
241
|
+
type CustomDoughnutChartOptions = CustomArcChartOptions<'doughnut'>;
|
|
226
242
|
type CartesianDataset<TType extends CartesianChartType = CartesianChartType> = ChartDataset<TType, (number | null)[]> & {
|
|
227
243
|
yAxisID?: string;
|
|
228
244
|
xAxisID?: string;
|
|
@@ -257,8 +273,6 @@ type HtmlLegendOptions = {
|
|
|
257
273
|
getDatasetType?: (chart: Chart, item: Record<string, any>) => string | undefined;
|
|
258
274
|
};
|
|
259
275
|
interface CartesianChartBuilder<TType extends CartesianChartType> extends ChartBuilder<TType> {
|
|
260
|
-
makeConfig(id?: string): any;
|
|
261
|
-
hasPlugin(pluginId: string): boolean;
|
|
262
276
|
setScales(scales: CommonAxesSacels): this;
|
|
263
277
|
setAxisTitle(axis: 'x' | 'y', titleConfig: CommonCartesianTitleConfig): this;
|
|
264
278
|
setGridOptions(axis: 'x' | 'y', gridOptions: {
|
|
@@ -307,7 +321,25 @@ interface LineChartBuilder extends CartesianChartBuilder<'line'> {
|
|
|
307
321
|
setPointHoverRadius(datasetIndex: number, hoverRadius: number): this;
|
|
308
322
|
setAllPointHoverRadius(hoverRadius: number): this;
|
|
309
323
|
}
|
|
324
|
+
interface RadarChartBuilder extends ChartBuilder<'radar'> {
|
|
325
|
+
}
|
|
326
|
+
interface ArcChartBuilder<TType extends ArcChartType> extends ChartBuilder<TType> {
|
|
327
|
+
setRotation(rotation: number): this;
|
|
328
|
+
setCircumference(circumference: number): this;
|
|
329
|
+
setCutout(cutout: string | number): this;
|
|
330
|
+
setRadius(radius: string | number): this;
|
|
331
|
+
setBorderWidth(datasetIndex: number, borderWidth: number): this;
|
|
332
|
+
setAllBorderWidth(borderWidth: number): this;
|
|
333
|
+
setBorderColor(datasetIndex: number, borderColor: string | string[]): this;
|
|
334
|
+
setAllBorderColor(borderColor: string | string[]): this;
|
|
335
|
+
}
|
|
336
|
+
interface PieChartBuilder extends ArcChartBuilder<'pie'> {
|
|
337
|
+
}
|
|
338
|
+
interface DoughnutChartBuilder extends ArcChartBuilder<'doughnut'> {
|
|
339
|
+
}
|
|
310
340
|
|
|
341
|
+
type Types_ArcChartBuilder<TType extends ArcChartType> = ArcChartBuilder<TType>;
|
|
342
|
+
type Types_ArcChartType = ArcChartType;
|
|
311
343
|
type Types_BarChartBuilder = BarChartBuilder;
|
|
312
344
|
type Types_CartesianChartBuilder<TType extends CartesianChartType> = CartesianChartBuilder<TType>;
|
|
313
345
|
type Types_CartesianChartType = CartesianChartType;
|
|
@@ -322,22 +354,28 @@ type Types_CommonCartesianTicks = CommonCartesianTicks;
|
|
|
322
354
|
type Types_CommonCartesianTitleConfig = CommonCartesianTitleConfig;
|
|
323
355
|
type Types_CommonTicks = CommonTicks;
|
|
324
356
|
type Types_Constructor<TType extends ChartType, TInstance> = Constructor<TType, TInstance>;
|
|
357
|
+
type Types_CustomArcChartOptions<TType extends ArcChartType = ArcChartType> = CustomArcChartOptions<TType>;
|
|
325
358
|
type Types_CustomBarChartOptions = CustomBarChartOptions;
|
|
326
359
|
type Types_CustomCartesianDataset<TType extends CartesianChartType = CartesianChartType> = CustomCartesianDataset<TType>;
|
|
327
360
|
type Types_CustomChartOptions<TType extends ChartType = ChartType> = CustomChartOptions<TType>;
|
|
361
|
+
type Types_CustomDoughnutChartOptions = CustomDoughnutChartOptions;
|
|
328
362
|
type Types_CustomLineChartOptions = CustomLineChartOptions;
|
|
329
363
|
type Types_CustomOptionPlugins<TType extends ChartType = ChartType> = CustomOptionPlugins<TType>;
|
|
330
364
|
type Types_CustomPieChartOptions = CustomPieChartOptions;
|
|
331
365
|
type Types_DeepPartial<T> = DeepPartial<T>;
|
|
332
366
|
type Types_DeepPartialCartesianAxes = DeepPartialCartesianAxes;
|
|
333
367
|
type Types_DeepPartialPluginOptions<T extends ChartType> = DeepPartialPluginOptions<T>;
|
|
368
|
+
type Types_DoughnutChartBuilder = DoughnutChartBuilder;
|
|
334
369
|
type Types_HtmlLegendOptions = HtmlLegendOptions;
|
|
335
370
|
type Types_LineChartBuilder = LineChartBuilder;
|
|
336
371
|
type Types_Mode = Mode;
|
|
372
|
+
type Types_PieChartBuilder = PieChartBuilder;
|
|
337
373
|
type Types_Position = Position;
|
|
374
|
+
type Types_RadarChartBuilder = RadarChartBuilder;
|
|
375
|
+
type Types_RadialChartType = RadialChartType;
|
|
338
376
|
type Types_SettingOptions = SettingOptions;
|
|
339
377
|
declare namespace Types {
|
|
340
|
-
export type { Types_BarChartBuilder as BarChartBuilder, 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_CommonCartesianTicks as CommonCartesianTicks, Types_CommonCartesianTitleConfig as CommonCartesianTitleConfig, Types_CommonTicks as CommonTicks, Types_Constructor as Constructor, Types_CustomBarChartOptions as CustomBarChartOptions, Types_CustomCartesianDataset as CustomCartesianDataset, Types_CustomChartOptions as CustomChartOptions, Types_CustomLineChartOptions as CustomLineChartOptions, Types_CustomOptionPlugins as CustomOptionPlugins, Types_CustomPieChartOptions as CustomPieChartOptions, Types_DeepPartial as DeepPartial, Types_DeepPartialCartesianAxes as DeepPartialCartesianAxes, Types_DeepPartialPluginOptions as DeepPartialPluginOptions, Types_HtmlLegendOptions as HtmlLegendOptions, Types_LineChartBuilder as LineChartBuilder, Types_Mode as Mode, Types_Position as Position, Types_SettingOptions as SettingOptions };
|
|
378
|
+
export type { Types_ArcChartBuilder as ArcChartBuilder, Types_ArcChartType as ArcChartType, Types_BarChartBuilder as BarChartBuilder, 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_CommonCartesianTicks as CommonCartesianTicks, Types_CommonCartesianTitleConfig as CommonCartesianTitleConfig, Types_CommonTicks as CommonTicks, Types_Constructor as Constructor, Types_CustomArcChartOptions as CustomArcChartOptions, Types_CustomBarChartOptions as CustomBarChartOptions, Types_CustomCartesianDataset as CustomCartesianDataset, Types_CustomChartOptions as CustomChartOptions, Types_CustomDoughnutChartOptions as CustomDoughnutChartOptions, Types_CustomLineChartOptions as CustomLineChartOptions, Types_CustomOptionPlugins as CustomOptionPlugins, Types_CustomPieChartOptions as CustomPieChartOptions, Types_DeepPartial as DeepPartial, Types_DeepPartialCartesianAxes as DeepPartialCartesianAxes, Types_DeepPartialPluginOptions as DeepPartialPluginOptions, Types_DoughnutChartBuilder as DoughnutChartBuilder, Types_HtmlLegendOptions as HtmlLegendOptions, Types_LineChartBuilder as LineChartBuilder, Types_Mode as Mode, Types_PieChartBuilder as PieChartBuilder, Types_Position as Position, Types_RadarChartBuilder as RadarChartBuilder, Types_RadialChartType as RadialChartType, Types_SettingOptions as SettingOptions };
|
|
341
379
|
}
|
|
342
380
|
|
|
343
381
|
interface ChartConfig {
|
|
@@ -348,15 +386,15 @@ interface ChartConfig {
|
|
|
348
386
|
options: any;
|
|
349
387
|
plugins?: any;
|
|
350
388
|
}
|
|
351
|
-
declare abstract class ChartWrapper<TType extends ChartType> implements ChartBuilder<TType> {
|
|
389
|
+
declare abstract class ChartWrapper<TType extends ChartType, TOptions extends CustomChartOptions<TType> = CustomChartOptions<TType>> implements ChartBuilder<TType> {
|
|
352
390
|
protected type: TType;
|
|
353
391
|
protected labels: (string | number)[];
|
|
354
392
|
protected datasets: ChartDataset<TType, (number | null)[]>[];
|
|
355
|
-
protected options:
|
|
393
|
+
protected options: TOptions;
|
|
356
394
|
protected plugins?: any | undefined;
|
|
357
395
|
static registry: Map<string, Constructor<any, any>>;
|
|
358
|
-
constructor(type: TType, labels: (string | number)[], datasets: ChartDataset<TType, (number | null)[]>[], options:
|
|
359
|
-
static create<TType extends ChartType>(type: TType, labels: (string | number)[], datasets: ChartDataset<TType, (number | null)[]>[], options?: CustomChartOptions<TType>, plugins?:
|
|
396
|
+
constructor(type: TType, labels: (string | number)[], datasets: ChartDataset<TType, (number | null)[]>[], options: TOptions, plugins?: any | undefined);
|
|
397
|
+
static create<TType extends ChartType>(type: TType, labels: (string | number)[], datasets: ChartDataset<TType, (number | null)[]>[], options?: CustomChartOptions<TType>, plugins?: Plugin$1): TType extends CartesianChartType ? CartesianChartBuilder<TType> : TType extends ArcChartType ? ArcChartBuilder<TType> : ChartBuilder<TType>;
|
|
360
398
|
static register<TType extends ChartType, TInstance>(type: TType, wrapperClass: Constructor<TType, TInstance>): void;
|
|
361
399
|
static has(type: ChartType): boolean;
|
|
362
400
|
protected abstract normalize(): void;
|
|
@@ -1033,6 +1071,227 @@ declare class LineChartWrapper extends CartesianChartWrapper<'line'> implements
|
|
|
1033
1071
|
private calculateGradientPositions;
|
|
1034
1072
|
}
|
|
1035
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* ═════════════════════════════════════════════════════════════
|
|
1076
|
+
* 📄 FILE : ArcChartWrapper.ts
|
|
1077
|
+
* 📁 PACKAGE : chart-toolbox
|
|
1078
|
+
* 👤 AUTHOR : stz
|
|
1079
|
+
* 🕒 CREATED : 25. 9. 28.
|
|
1080
|
+
* ═════════════════════════════════════════════════════════════
|
|
1081
|
+
* ═════════════════════════════════════════════════════════════
|
|
1082
|
+
* 📝 DESCRIPTION
|
|
1083
|
+
* Arc Chart (Pie, Doughnut) 를 위한 추상 클래스
|
|
1084
|
+
* ═════════════════════════════════════════════════════════════
|
|
1085
|
+
* ═════════════════════════════════════════════════════════════
|
|
1086
|
+
* 🔄 CHANGE LOG
|
|
1087
|
+
* - DATE : 2025/09/28 | Author : stz | 최초 생성
|
|
1088
|
+
* ═════════════════════════════════════════════════════════════
|
|
1089
|
+
*/
|
|
1090
|
+
|
|
1091
|
+
declare abstract class ArcChartWrapper<TType extends ArcChartType> extends ChartWrapper<TType> implements ArcChartBuilder<TType> {
|
|
1092
|
+
readonly type: TType;
|
|
1093
|
+
private _chartId?;
|
|
1094
|
+
protected constructor(type: TType, labels: (string | number)[], datasets: ChartDataset<TType, (number | null)[]>[], options?: CustomArcChartOptions<TType>, plugins?: Plugin$1);
|
|
1095
|
+
get chartId(): string;
|
|
1096
|
+
set chartId(value: string);
|
|
1097
|
+
protected requireLabels(): boolean;
|
|
1098
|
+
/**
|
|
1099
|
+
* @protected
|
|
1100
|
+
* @description 데이터셋의 기본적인 옵션을 추가하거나 부여합니다. (Arc 차트용)
|
|
1101
|
+
* @param ds
|
|
1102
|
+
* @param {number} idx
|
|
1103
|
+
* @Returns {void}
|
|
1104
|
+
* @Since 1.0.1
|
|
1105
|
+
* @category Dataset
|
|
1106
|
+
* @beta
|
|
1107
|
+
*/
|
|
1108
|
+
protected decorateDataset(ds: any, idx: number): void;
|
|
1109
|
+
protected mustHavePlugins(): {
|
|
1110
|
+
id: string;
|
|
1111
|
+
afterDraw(chart: any, args: any, options: any): void;
|
|
1112
|
+
}[];
|
|
1113
|
+
protected normalize(): void;
|
|
1114
|
+
protected configAop(config: any): any;
|
|
1115
|
+
/**
|
|
1116
|
+
* @Description 차트 설정 객체를 생성합니다. 이 메소드는 차트의 구성 요소를 종합하여 Chart.js에서 사용할 수 있는 형식으로 반환합니다.
|
|
1117
|
+
* @param id
|
|
1118
|
+
* @returns {ChartConfig}
|
|
1119
|
+
* @Since 1.0.0
|
|
1120
|
+
* @category Chart
|
|
1121
|
+
* @beta
|
|
1122
|
+
*/
|
|
1123
|
+
build(id?: string): ChartConfig;
|
|
1124
|
+
/**
|
|
1125
|
+
* @description 도넛/파이 차트의 회전 각도를 설정합니다.
|
|
1126
|
+
* @param rotation - 시작 각도 (도 단위)
|
|
1127
|
+
* @returns {this}
|
|
1128
|
+
* @since 1.0.0
|
|
1129
|
+
* @category Options
|
|
1130
|
+
* @beta
|
|
1131
|
+
*/
|
|
1132
|
+
setRotation(rotation: number): this;
|
|
1133
|
+
/**
|
|
1134
|
+
* @description 도넛/파이 차트의 원주각을 설정합니다.
|
|
1135
|
+
* @param circumference - 원주각 (도 단위, 360 = 완전한 원)
|
|
1136
|
+
* @returns {this}
|
|
1137
|
+
* @since 1.0.0
|
|
1138
|
+
* @category Options
|
|
1139
|
+
* @beta
|
|
1140
|
+
*/
|
|
1141
|
+
setCircumference(circumference: number): this;
|
|
1142
|
+
/**
|
|
1143
|
+
* @description 도넛 차트의 중앙 구멍 크기를 설정합니다.
|
|
1144
|
+
* @param cutout - 구멍 크기 (퍼센트 문자열 또는 픽셀 숫자)
|
|
1145
|
+
* @returns {this}
|
|
1146
|
+
* @since 1.0.0
|
|
1147
|
+
* @category Options
|
|
1148
|
+
* @beta
|
|
1149
|
+
*/
|
|
1150
|
+
setCutout(cutout: string | number): this;
|
|
1151
|
+
/**
|
|
1152
|
+
* @description 차트의 반지름을 설정합니다.
|
|
1153
|
+
* @param radius - 반지름 (퍼센트 문자열 또는 픽셀 숫자)
|
|
1154
|
+
* @returns {this}
|
|
1155
|
+
* @since 1.0.0
|
|
1156
|
+
* @category Options
|
|
1157
|
+
* @beta
|
|
1158
|
+
*/
|
|
1159
|
+
setRadius(radius: string | number): this;
|
|
1160
|
+
/**
|
|
1161
|
+
* @description 데이터셋의 경계선 너비를 설정합니다.
|
|
1162
|
+
* @param datasetIndex - 데이터셋 인덱스
|
|
1163
|
+
* @param borderWidth - 경계선 너비
|
|
1164
|
+
* @returns {this}
|
|
1165
|
+
* @since 1.0.0
|
|
1166
|
+
* @category Dataset
|
|
1167
|
+
* @beta
|
|
1168
|
+
*/
|
|
1169
|
+
setBorderWidth(datasetIndex: number, borderWidth: number): this;
|
|
1170
|
+
/**
|
|
1171
|
+
* @description 모든 데이터셋의 경계선 너비를 설정합니다.
|
|
1172
|
+
* @param borderWidth - 경계선 너비
|
|
1173
|
+
* @returns {this}
|
|
1174
|
+
* @since 1.0.0
|
|
1175
|
+
* @category Dataset
|
|
1176
|
+
* @beta
|
|
1177
|
+
*/
|
|
1178
|
+
setAllBorderWidth(borderWidth: number): this;
|
|
1179
|
+
/**
|
|
1180
|
+
* @description 데이터셋의 경계선 색상을 설정합니다.
|
|
1181
|
+
* @param datasetIndex - 데이터셋 인덱스
|
|
1182
|
+
* @param borderColor - 경계선 색상
|
|
1183
|
+
* @returns {this}
|
|
1184
|
+
* @since 1.0.0
|
|
1185
|
+
* @category Dataset
|
|
1186
|
+
* @beta
|
|
1187
|
+
*/
|
|
1188
|
+
setBorderColor(datasetIndex: number, borderColor: string | string[]): this;
|
|
1189
|
+
/**
|
|
1190
|
+
* @description 모든 데이터셋의 경계선 색상을 설정합니다.
|
|
1191
|
+
* @param borderColor - 경계선 색상
|
|
1192
|
+
* @returns {this}
|
|
1193
|
+
* @since 1.0.0
|
|
1194
|
+
* @category Dataset
|
|
1195
|
+
* @beta
|
|
1196
|
+
*/
|
|
1197
|
+
setAllBorderColor(borderColor: string | string[]): this;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
declare class DoughnutChartWrapper extends ArcChartWrapper<'doughnut'> implements DoughnutChartBuilder {
|
|
1201
|
+
constructor(type: 'doughnut', labels: (string | number)[], datasets: ChartDataset<'doughnut', (number | null)[]>[], options?: CustomDoughnutChartOptions, plugins?: any);
|
|
1202
|
+
protected requireLabels(): boolean;
|
|
1203
|
+
/**
|
|
1204
|
+
* @description 레거시 지원용 차트 설정 객체를 생성합니다.
|
|
1205
|
+
* @param {string} id
|
|
1206
|
+
* @returns {ChartConfig}
|
|
1207
|
+
* @Since 1.0.0
|
|
1208
|
+
* @category config
|
|
1209
|
+
* @beta
|
|
1210
|
+
*/
|
|
1211
|
+
makeConfig(id?: string): ChartConfig;
|
|
1212
|
+
/**
|
|
1213
|
+
* @description 도넛 구멍 크기를 설정합니다.
|
|
1214
|
+
* @param cutout - 구멍 크기 ('50%', '60%' 또는 픽셀값)
|
|
1215
|
+
* @returns {this}
|
|
1216
|
+
* @since 1.0.0
|
|
1217
|
+
* @category Options
|
|
1218
|
+
* @beta
|
|
1219
|
+
*/
|
|
1220
|
+
setCutout(cutout: string | number): this;
|
|
1221
|
+
/**
|
|
1222
|
+
* @description 도넛 차트를 파이 차트로 변경합니다 (구멍 제거).
|
|
1223
|
+
* @returns {this}
|
|
1224
|
+
* @since 1.0.0
|
|
1225
|
+
* @category Options
|
|
1226
|
+
* @beta
|
|
1227
|
+
*/
|
|
1228
|
+
convertToPie(): this;
|
|
1229
|
+
/**
|
|
1230
|
+
* @description 모든 세그먼트의 색상을 설정합니다.
|
|
1231
|
+
* @param colors - 색상 배열
|
|
1232
|
+
* @returns {this}
|
|
1233
|
+
* @since 1.0.0
|
|
1234
|
+
* @category Dataset
|
|
1235
|
+
* @beta
|
|
1236
|
+
*/
|
|
1237
|
+
setSegmentColors(colors: string[]): this;
|
|
1238
|
+
/**
|
|
1239
|
+
* @description 특정 세그먼트만 분리해서 표시합니다.
|
|
1240
|
+
* @param dataIndex - 분리할 데이터 인덱스
|
|
1241
|
+
* @param offset - 분리 거리 (픽셀)
|
|
1242
|
+
* @returns {this}
|
|
1243
|
+
* @since 1.0.0
|
|
1244
|
+
* @category Dataset
|
|
1245
|
+
* @beta
|
|
1246
|
+
*/
|
|
1247
|
+
setSegmentOffset(dataIndex: number, offset: number): this;
|
|
1248
|
+
/**
|
|
1249
|
+
* @description 차트의 시작 각도를 설정합니다.
|
|
1250
|
+
* @param rotation - 회전 각도 (도 단위)
|
|
1251
|
+
* @returns {this}
|
|
1252
|
+
* @since 1.0.0
|
|
1253
|
+
* @category Options
|
|
1254
|
+
* @beta
|
|
1255
|
+
*/
|
|
1256
|
+
setRotation(rotation: number): this;
|
|
1257
|
+
/**
|
|
1258
|
+
* @description 차트의 원주각을 설정합니다.
|
|
1259
|
+
* @param circumference - 원주각 (도 단위, 360 = 완전한 원)
|
|
1260
|
+
* @returns {this}
|
|
1261
|
+
* @since 1.0.0
|
|
1262
|
+
* @category Options
|
|
1263
|
+
* @beta
|
|
1264
|
+
*/
|
|
1265
|
+
setCircumference(circumference: number): this;
|
|
1266
|
+
/**
|
|
1267
|
+
* @description 차트의 반지름을 설정합니다.
|
|
1268
|
+
* @param radius - 반지름 ('90%', '100%' 또는 픽셀값)
|
|
1269
|
+
* @returns {this}
|
|
1270
|
+
* @since 1.0.0
|
|
1271
|
+
* @category Options
|
|
1272
|
+
* @beta
|
|
1273
|
+
*/
|
|
1274
|
+
setRadius(radius: string | number): this;
|
|
1275
|
+
/**
|
|
1276
|
+
* @description 모든 데이터셋의 경계선 너비를 설정합니다.
|
|
1277
|
+
* @param borderWidth - 경계선 너비
|
|
1278
|
+
* @returns {this}
|
|
1279
|
+
* @since 1.0.0
|
|
1280
|
+
* @category Dataset
|
|
1281
|
+
* @beta
|
|
1282
|
+
*/
|
|
1283
|
+
setAllBorderWidth(borderWidth: number): this;
|
|
1284
|
+
/**
|
|
1285
|
+
* @description 모든 데이터셋의 경계선 색상을 설정합니다.
|
|
1286
|
+
* @param borderColor - 경계선 색상
|
|
1287
|
+
* @returns {this}
|
|
1288
|
+
* @since 1.0.0
|
|
1289
|
+
* @category Dataset
|
|
1290
|
+
* @beta
|
|
1291
|
+
*/
|
|
1292
|
+
setAllBorderColor(borderColor: string | string[]): this;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1036
1295
|
declare const noDataPlugin: {
|
|
1037
1296
|
id: string;
|
|
1038
1297
|
beforeUpdate: (chart: any) => void;
|
|
@@ -1213,6 +1472,8 @@ declare const T$: {
|
|
|
1213
1472
|
readonly CartesianChartWrapper: typeof CartesianChartWrapper;
|
|
1214
1473
|
readonly BarChartWrapper: typeof BarChartWrapper;
|
|
1215
1474
|
readonly LineChartWrapper: typeof LineChartWrapper;
|
|
1475
|
+
readonly ArcChartWrapper: typeof ArcChartWrapper;
|
|
1476
|
+
readonly DoughnutChartWrapper: typeof DoughnutChartWrapper;
|
|
1216
1477
|
readonly defaultTypes: typeof Types;
|
|
1217
1478
|
readonly defaultsOptions: typeof LocalDefaults;
|
|
1218
1479
|
readonly toolBox: {
|
|
@@ -1220,5 +1481,5 @@ declare const T$: {
|
|
|
1220
1481
|
};
|
|
1221
1482
|
};
|
|
1222
1483
|
|
|
1223
|
-
export { BarChartWrapper, CartesianChartWrapper, ChartFactory, ChartInstance, ChartToolBox, ChartTypes, ChartWrapper, CreateZoomRangeSlider, LineChartWrapper, T$, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, createDefaultBarOptions, createDefaultLineOptions, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultLineScales, defaultLineTooltipCallback, doughnutCenterTextPlugin, loadingPlugin, makeCenterHtml, noDataPlugin, zoomRangeSlider, zoomResetPlugin };
|
|
1224
|
-
export type { AllChartTypes, AxisColors, BarChartBuilder, CartesianChartBuilder, CartesianChartType, CartesianDataset, ChartBuilder, ChartWithFocus, Color, CommonAxes, CommonAxesSacels, CommonCartesian, CommonCartesianAxes, CommonCartesianTicks, CommonCartesianTitleConfig, CommonTicks, Constructor, CustomBarChartOptions, CustomCartesianDataset, CustomChartOptions, CustomLineChartOptions, CustomOptionPlugins, CustomPieChartOptions, CustomZoomType, DataLabels, DataLabelsContext, DatasetWithPrevColors, DeepPartial, DeepPartialCartesianAxes, DeepPartialPluginOptions, DeepPartialZoomType, FocusCallback, HtmlLegendOptions, LineChartBuilder, Mode, OriginalColors, PartialDataLabels, Position, ScaleWithOriginalColors, SettingOptions, ZoomRangeSliderColors, ZoomRangeSliderPlugin, ZoomRangeSliderVar };
|
|
1484
|
+
export { ArcChartWrapper, BarChartWrapper, CartesianChartWrapper, ChartFactory, ChartInstance, ChartToolBox, ChartTypes, ChartWrapper, CreateZoomRangeSlider, DoughnutChartWrapper, LineChartWrapper, T$, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, createDefaultBarOptions, createDefaultLineOptions, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultLineScales, defaultLineTooltipCallback, doughnutCenterTextPlugin, loadingPlugin, makeCenterHtml, noDataPlugin, zoomRangeSlider, zoomResetPlugin };
|
|
1485
|
+
export type { AllChartTypes, ArcChartBuilder, ArcChartType, AxisColors, BarChartBuilder, CartesianChartBuilder, CartesianChartType, CartesianDataset, ChartBuilder, ChartWithFocus, Color, CommonAxes, CommonAxesSacels, CommonCartesian, CommonCartesianAxes, CommonCartesianTicks, CommonCartesianTitleConfig, CommonTicks, Constructor, CustomArcChartOptions, CustomBarChartOptions, CustomCartesianDataset, CustomChartOptions, CustomDoughnutChartOptions, CustomLineChartOptions, CustomOptionPlugins, CustomPieChartOptions, CustomZoomType, DataLabels, DataLabelsContext, DatasetWithPrevColors, DeepPartial, DeepPartialCartesianAxes, DeepPartialPluginOptions, DeepPartialZoomType, DoughnutChartBuilder, FocusCallback, HtmlLegendOptions, LineChartBuilder, Mode, OriginalColors, PartialDataLabels, PieChartBuilder, Position, RadarChartBuilder, RadialChartType, ScaleWithOriginalColors, SettingOptions, ZoomRangeSliderColors, ZoomRangeSliderPlugin, ZoomRangeSliderVar };
|