@opsnow-mcp/opsnow-mcp-common-ui-server 1.0.40 → 1.0.42
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/build/components/all-component-tools.js +2 -0
- package/build/components/data/icon-names.generated.js +341 -0
- package/build/components/data/icon-names.js +32 -16
- package/build/components/examples/opsnow-common-chart-examples-data.js +73 -471
- package/build/components/examples/opsnow-common-forms-examples-data.js +1 -11
- package/build/components/examples/opsnow-common-grid-examples-data.js +93 -129
- package/build/components/examples/opsnow-common-layout-examples-data.js +12 -13
- package/build/components/examples/opsnow-common-popup-examples-data.js +14 -28
- package/build/components/examples/opsnow-common-progress-examples-data.js +0 -5
- package/build/components/examples/opsnow-common-select-examples-data.js +16 -0
- package/build/components/examples/opsnow-common-stepper-examples-data.js +2 -3
- package/build/components/examples/opsnow-common-storage-examples-data.js +23 -4
- package/build/components/examples/opsnow-common-tab-examples-data.js +37 -0
- package/build/components/examples/opsnow-common-tooltip-examples-data.js +1 -21
- package/build/components/opsnow-common-calendar.js +36 -15
- package/build/components/opsnow-common-chart.js +245 -156
- package/build/components/opsnow-common-coach-mark.js +3 -2
- package/build/components/opsnow-common-data-status.js +17 -11
- package/build/components/opsnow-common-dropdown.js +80 -0
- package/build/components/opsnow-common-examples.js +4 -2
- package/build/components/opsnow-common-file-upload.js +4 -1
- package/build/components/opsnow-common-forms.js +73 -36
- package/build/components/opsnow-common-grid.js +110 -79
- package/build/components/opsnow-common-icons.js +23 -39
- package/build/components/opsnow-common-jsx-helper.js +36 -0
- package/build/components/opsnow-common-layout.js +66 -25
- package/build/components/opsnow-common-notification.js +3 -2
- package/build/components/opsnow-common-pagination.js +4 -4
- package/build/components/opsnow-common-popup.js +12 -11
- package/build/components/opsnow-common-progress.js +10 -16
- package/build/components/opsnow-common-select.js +30 -15
- package/build/components/opsnow-common-stepper.js +30 -7
- package/build/components/opsnow-common-tab.js +26 -3
- package/build/components/opsnow-common-toast-popup.js +1 -0
- package/build/components/opsnow-common-tooltip.js +44 -46
- package/build/components/opsnow-common-typography.js +11 -5
- package/build/components/opsnow-common-validate-props.js +0 -0
- package/build/index.js +43 -0
- package/package.json +2 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 예제별 chartId 접미사 — 순번이라 빌드마다 결과가 같다
|
|
2
|
+
let generalIdSeq = 0;
|
|
2
3
|
function generateUniqueGeneralId() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// 예: Math.random() = 0.123456789 -> toString(36) = '0.4fzyo5j' -> slice(2, 9) = '4fzyo5j'
|
|
6
|
-
const random = Math.random().toString(36).slice(2, 9);
|
|
7
|
-
const timestamp = Date.now().toString(36);
|
|
8
|
-
return `${timestamp}-${random}`;
|
|
4
|
+
generalIdSeq += 1;
|
|
5
|
+
return `ex${generalIdSeq.toString().padStart(3, '0')}`;
|
|
9
6
|
}
|
|
10
7
|
// Chart 컴포넌트 예제 데이터
|
|
11
8
|
export const GaugeChartExamples = [
|
|
@@ -65,7 +62,7 @@ export const GaugeChartExamples = [
|
|
|
65
62
|
`,
|
|
66
63
|
code: `<OpsnowCommonGaugeChart
|
|
67
64
|
chartId={chartId}
|
|
68
|
-
|
|
65
|
+
ref={chartRef}
|
|
69
66
|
chartProps={chartProps}
|
|
70
67
|
chartValue={chartValue}
|
|
71
68
|
/>`
|
|
@@ -154,7 +151,7 @@ export const PieChartExamples = [
|
|
|
154
151
|
`,
|
|
155
152
|
code: `<OpsnowCommonPieChart
|
|
156
153
|
chartId={chartId}
|
|
157
|
-
|
|
154
|
+
ref={chartRef}
|
|
158
155
|
chartProps={chartProps}
|
|
159
156
|
chartData={chartData}
|
|
160
157
|
chartLocaleProps={chartLocaleProps()}
|
|
@@ -227,7 +224,7 @@ export const PieChartExamples = [
|
|
|
227
224
|
`,
|
|
228
225
|
code: `<OpsnowCommonPieChart
|
|
229
226
|
chartId={chartId}
|
|
230
|
-
|
|
227
|
+
ref={chartRef}
|
|
231
228
|
chartProps={chartProps}
|
|
232
229
|
chartData={chartData}
|
|
233
230
|
onChartClick={selectItem}
|
|
@@ -297,7 +294,7 @@ export const PieChartExamples = [
|
|
|
297
294
|
`,
|
|
298
295
|
code: `<OpsnowCommonPieChart
|
|
299
296
|
chartId={chartId}
|
|
300
|
-
|
|
297
|
+
ref={chartRef}
|
|
301
298
|
chartProps={chartProps}
|
|
302
299
|
chartData={chartData}
|
|
303
300
|
/>`
|
|
@@ -386,7 +383,7 @@ export const PieChartExamples = [
|
|
|
386
383
|
`,
|
|
387
384
|
code: `<OpsnowCommonPieChart
|
|
388
385
|
chartId={chartId}
|
|
389
|
-
|
|
386
|
+
ref={chartRef}
|
|
390
387
|
chartProps={chartProps}
|
|
391
388
|
chartData={chartData}
|
|
392
389
|
chartCustomCategory={chartCustomCategory}
|
|
@@ -453,7 +450,7 @@ export const PieChartExamples = [
|
|
|
453
450
|
`,
|
|
454
451
|
code: `<OpsnowCommonPieChart
|
|
455
452
|
chartId={chartId}
|
|
456
|
-
|
|
453
|
+
ref={chartRef}
|
|
457
454
|
chartProps={chartProps}
|
|
458
455
|
chartData={chartData}
|
|
459
456
|
/>`
|
|
@@ -508,7 +505,7 @@ export const PieChartExamples = [
|
|
|
508
505
|
`,
|
|
509
506
|
code: `<OpsnowCommonPieChart
|
|
510
507
|
chartId={chartId}
|
|
511
|
-
|
|
508
|
+
ref={chartRef}
|
|
512
509
|
chartProps={chartProps}
|
|
513
510
|
chartData={chartData}
|
|
514
511
|
chartCustomCategory={chartCustomCategory}
|
|
@@ -516,7 +513,7 @@ export const PieChartExamples = [
|
|
|
516
513
|
},
|
|
517
514
|
{
|
|
518
515
|
title: '파이 차트 - 다운로드',
|
|
519
|
-
description: 'ref를 사용하여 파이 차트를 다양한 형식으로 다운로드하는 예제입니다.
|
|
516
|
+
description: 'ref를 사용하여 파이 차트를 다양한 형식으로 다운로드하는 예제입니다. 차트 ref는 ref prop으로 넘깁니다(chartRef라는 prop은 없음). downloadFile(fileName, fileType, fileOption?)을 호출합니다.',
|
|
520
517
|
code_props_usage: `
|
|
521
518
|
const chartId = 'pie-chart-download-${generateUniqueGeneralId()}'
|
|
522
519
|
const chartRef = useRef(null)
|
|
@@ -540,7 +537,6 @@ export const PieChartExamples = [
|
|
|
540
537
|
{ service: 'RDS', cost: 8200 },
|
|
541
538
|
{ service: 'S3', cost: 4300 }
|
|
542
539
|
])
|
|
543
|
-
const [chartCategory] = useState(['EC2', 'RDS', 'S3'])
|
|
544
540
|
|
|
545
541
|
// 다운로드 핸들러
|
|
546
542
|
const handleDownload = () => {
|
|
@@ -563,7 +559,6 @@ export const PieChartExamples = [
|
|
|
563
559
|
ref={chartRef}
|
|
564
560
|
chartId={chartId}
|
|
565
561
|
chartProps={chartProps}
|
|
566
|
-
chartCategory={chartCategory}
|
|
567
562
|
chartData={chartData}
|
|
568
563
|
/>`
|
|
569
564
|
},
|
|
@@ -578,20 +573,6 @@ export const BarChartExamples = [
|
|
|
578
573
|
const [chartProps, setChartProps] = useState({
|
|
579
574
|
xAxis: {
|
|
580
575
|
type: 'date',
|
|
581
|
-
dateFormats: [
|
|
582
|
-
{
|
|
583
|
-
type: 'day',
|
|
584
|
-
dateFormat: '{l.month.day.format}'
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
type: 'week',
|
|
588
|
-
dateFormat: '{l.month.day.format}'
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
type: 'month',
|
|
592
|
-
dateFormat: '{l.month.day.format}'
|
|
593
|
-
}
|
|
594
|
-
],
|
|
595
576
|
baseInterval: {
|
|
596
577
|
timeUnit: 'day',
|
|
597
578
|
count: 1
|
|
@@ -680,7 +661,7 @@ export const BarChartExamples = [
|
|
|
680
661
|
`,
|
|
681
662
|
code: `<OpsnowCommonBarChart
|
|
682
663
|
chartId={chartId}
|
|
683
|
-
|
|
664
|
+
ref={chartRef}
|
|
684
665
|
chartProps={chartProps}
|
|
685
666
|
chartData={chartData}
|
|
686
667
|
chartCategory={chartCategory}
|
|
@@ -698,20 +679,6 @@ export const BarChartExamples = [
|
|
|
698
679
|
const [chartProps, setChartProps] = useState({
|
|
699
680
|
xAxis: {
|
|
700
681
|
type: 'date',
|
|
701
|
-
dateFormats: [
|
|
702
|
-
{
|
|
703
|
-
type: 'day',
|
|
704
|
-
dateFormat: 'MM/dd'
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
type: 'week',
|
|
708
|
-
dateFormat: 'MM/dd'
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
type: 'month',
|
|
712
|
-
dateFormat: 'MM/dd'
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
682
|
baseInterval: {
|
|
716
683
|
timeUnit: 'day',
|
|
717
684
|
count: 1
|
|
@@ -772,7 +739,7 @@ export const BarChartExamples = [
|
|
|
772
739
|
`,
|
|
773
740
|
code: `<OpsnowCommonBarChart
|
|
774
741
|
chartId={chartId}
|
|
775
|
-
|
|
742
|
+
ref={chartRef}
|
|
776
743
|
chartProps={chartProps}
|
|
777
744
|
chartData={chartData}
|
|
778
745
|
chartCategory={chartCategory}
|
|
@@ -788,20 +755,6 @@ export const BarChartExamples = [
|
|
|
788
755
|
const [chartProps, setChartProps] = useState({
|
|
789
756
|
xAxis: {
|
|
790
757
|
type: 'date',
|
|
791
|
-
dateFormats: [
|
|
792
|
-
{
|
|
793
|
-
type: 'day',
|
|
794
|
-
dateFormat: 'MM/dd'
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
type: 'week',
|
|
798
|
-
dateFormat: 'MM/dd'
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
type: 'month',
|
|
802
|
-
dateFormat: 'MM/dd'
|
|
803
|
-
}
|
|
804
|
-
],
|
|
805
758
|
baseInterval: {
|
|
806
759
|
timeUnit: 'day',
|
|
807
760
|
count: 1
|
|
@@ -866,7 +819,7 @@ export const BarChartExamples = [
|
|
|
866
819
|
`,
|
|
867
820
|
code: `<OpsnowCommonBarChart
|
|
868
821
|
chartId={chartId}
|
|
869
|
-
|
|
822
|
+
ref={chartRef}
|
|
870
823
|
chartProps={chartProps}
|
|
871
824
|
chartData={chartData}
|
|
872
825
|
chartCategory={chartCategory}
|
|
@@ -881,20 +834,6 @@ export const BarChartExamples = [
|
|
|
881
834
|
const [chartProps, setChartProps] = useState({
|
|
882
835
|
xAxis: {
|
|
883
836
|
type: 'date',
|
|
884
|
-
dateFormats: [
|
|
885
|
-
{
|
|
886
|
-
type: 'day',
|
|
887
|
-
dateFormat: 'MM/dd'
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
type: 'week',
|
|
891
|
-
dateFormat: 'MM/dd'
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
type: 'month',
|
|
895
|
-
dateFormat: 'MM/dd'
|
|
896
|
-
}
|
|
897
|
-
],
|
|
898
837
|
baseInterval: {
|
|
899
838
|
timeUnit: 'day',
|
|
900
839
|
count: 1
|
|
@@ -967,7 +906,7 @@ export const BarChartExamples = [
|
|
|
967
906
|
`,
|
|
968
907
|
code: `<OpsnowCommonBarChart
|
|
969
908
|
chartId={chartId}
|
|
970
|
-
|
|
909
|
+
ref={chartRef}
|
|
971
910
|
chartProps={chartProps}
|
|
972
911
|
chartData={chartData}
|
|
973
912
|
chartCategory={chartCategory}
|
|
@@ -1031,7 +970,7 @@ export const BarChartExamples = [
|
|
|
1031
970
|
`,
|
|
1032
971
|
code: `<OpsnowCommonBarChart
|
|
1033
972
|
chartId={chartId}
|
|
1034
|
-
|
|
973
|
+
ref={chartRef}
|
|
1035
974
|
chartProps={chartProps}
|
|
1036
975
|
chartData={chartData}
|
|
1037
976
|
chartCategory={chartCategory}
|
|
@@ -1103,7 +1042,7 @@ export const BarChartExamples = [
|
|
|
1103
1042
|
`,
|
|
1104
1043
|
code: `<OpsnowCommonBarChart
|
|
1105
1044
|
chartId={chartId}
|
|
1106
|
-
|
|
1045
|
+
ref={chartRef}
|
|
1107
1046
|
chartProps={chartProps}
|
|
1108
1047
|
chartData={chartData}
|
|
1109
1048
|
chartCategory={chartCategory}
|
|
@@ -1118,16 +1057,6 @@ export const BarChartExamples = [
|
|
|
1118
1057
|
const [chartProps, setChartProps] = useState({
|
|
1119
1058
|
xAxis: {
|
|
1120
1059
|
type: 'date',
|
|
1121
|
-
dateFormats: [
|
|
1122
|
-
{
|
|
1123
|
-
type: 'day',
|
|
1124
|
-
dateFormat: 'MM/dd'
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
type: 'month',
|
|
1128
|
-
dateFormat: 'yyyy/MM'
|
|
1129
|
-
}
|
|
1130
|
-
],
|
|
1131
1060
|
baseInterval: {
|
|
1132
1061
|
timeUnit: 'day',
|
|
1133
1062
|
count: 1
|
|
@@ -1229,7 +1158,7 @@ export const BarChartExamples = [
|
|
|
1229
1158
|
`,
|
|
1230
1159
|
code: `<OpsnowCommonBarChart
|
|
1231
1160
|
chartId={chartId}
|
|
1232
|
-
|
|
1161
|
+
ref={chartRef}
|
|
1233
1162
|
chartProps={chartProps}
|
|
1234
1163
|
chartData={chartData}
|
|
1235
1164
|
chartCategory={chartCategory}
|
|
@@ -1246,12 +1175,6 @@ export const BarChartExamples = [
|
|
|
1246
1175
|
xAxis: {
|
|
1247
1176
|
type: 'date',
|
|
1248
1177
|
valueField: 'daySt',
|
|
1249
|
-
dateFormats: [
|
|
1250
|
-
{
|
|
1251
|
-
type: 'day',
|
|
1252
|
-
dateFormat: 'MM/dd'
|
|
1253
|
-
},
|
|
1254
|
-
],
|
|
1255
1178
|
baseInterval: {
|
|
1256
1179
|
timeUnit: 'day',
|
|
1257
1180
|
count: 1
|
|
@@ -1322,7 +1245,7 @@ export const BarChartExamples = [
|
|
|
1322
1245
|
`,
|
|
1323
1246
|
code: `<OpsnowCommonBarChart
|
|
1324
1247
|
chartId={chartId}
|
|
1325
|
-
|
|
1248
|
+
ref={chartRef}
|
|
1326
1249
|
chartProps={chartProps}
|
|
1327
1250
|
chartData={chartData}
|
|
1328
1251
|
chartCategory={chartCategory}
|
|
@@ -1330,7 +1253,7 @@ export const BarChartExamples = [
|
|
|
1330
1253
|
},
|
|
1331
1254
|
{
|
|
1332
1255
|
title: '바 차트 - 다운로드 (기본)',
|
|
1333
|
-
description: 'ref를 사용하여 바 차트를 다양한 형식으로 다운로드하는 예제입니다.
|
|
1256
|
+
description: 'ref를 사용하여 바 차트를 다양한 형식으로 다운로드하는 예제입니다. 차트 ref는 ref prop으로 넘깁니다(chartRef라는 prop은 없음). downloadFile(fileName, fileType, fileOption?)을 호출합니다.',
|
|
1334
1257
|
code_props_usage: `
|
|
1335
1258
|
const chartId = 'bar-chart-download-${generateUniqueGeneralId()}'
|
|
1336
1259
|
const chartRef = useRef(null)
|
|
@@ -1430,20 +1353,6 @@ export const LineChartExamples = [
|
|
|
1430
1353
|
const [chartProps, setChartProps] = useState({
|
|
1431
1354
|
xAxis: {
|
|
1432
1355
|
type: 'date',
|
|
1433
|
-
dateFormats: [
|
|
1434
|
-
{
|
|
1435
|
-
type: 'day',
|
|
1436
|
-
dateFormat: 'MM/dd'
|
|
1437
|
-
},
|
|
1438
|
-
{
|
|
1439
|
-
type: 'week',
|
|
1440
|
-
dateFormat: 'MM/dd'
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
type: 'month',
|
|
1444
|
-
dateFormat: 'MM/dd'
|
|
1445
|
-
}
|
|
1446
|
-
],
|
|
1447
1356
|
baseInterval: {
|
|
1448
1357
|
timeUnit: 'day',
|
|
1449
1358
|
count: 1
|
|
@@ -1505,7 +1414,7 @@ export const LineChartExamples = [
|
|
|
1505
1414
|
`,
|
|
1506
1415
|
code: `<OpsnowCommonLineChart
|
|
1507
1416
|
chartId={chartId}
|
|
1508
|
-
|
|
1417
|
+
ref={chartRef}
|
|
1509
1418
|
chartProps={chartProps}
|
|
1510
1419
|
chartCategory={chartCategory}
|
|
1511
1420
|
chartData={chartData}
|
|
@@ -1552,7 +1461,7 @@ export const LineChartExamples = [
|
|
|
1552
1461
|
`,
|
|
1553
1462
|
code: `<OpsnowCommonLineChart
|
|
1554
1463
|
chartId={chartId}
|
|
1555
|
-
|
|
1464
|
+
ref={chartRef}
|
|
1556
1465
|
chartProps={chartProps}
|
|
1557
1466
|
chartCategory={chartCategory}
|
|
1558
1467
|
chartData={chartData}
|
|
@@ -1570,20 +1479,6 @@ export const LineChartExamples = [
|
|
|
1570
1479
|
const [chartProps, setChartProps] = useState({
|
|
1571
1480
|
xAxis: {
|
|
1572
1481
|
type: 'date',
|
|
1573
|
-
dateFormats: [
|
|
1574
|
-
{
|
|
1575
|
-
type: 'day',
|
|
1576
|
-
dateFormat: '{l.month.day.format}'
|
|
1577
|
-
},
|
|
1578
|
-
{
|
|
1579
|
-
type: 'week',
|
|
1580
|
-
dateFormat: '{l.month.day.format}'
|
|
1581
|
-
},
|
|
1582
|
-
{
|
|
1583
|
-
type: 'month',
|
|
1584
|
-
dateFormat: '{l.month.day.format}'
|
|
1585
|
-
}
|
|
1586
|
-
],
|
|
1587
1482
|
baseInterval: {
|
|
1588
1483
|
timeUnit: 'day',
|
|
1589
1484
|
count: 1
|
|
@@ -1673,7 +1568,7 @@ export const LineChartExamples = [
|
|
|
1673
1568
|
`,
|
|
1674
1569
|
code: `<OpsnowCommonLineChart
|
|
1675
1570
|
chartId={chartId}
|
|
1676
|
-
|
|
1571
|
+
ref={chartRef}
|
|
1677
1572
|
chartProps={chartProps}
|
|
1678
1573
|
chartCategory={chartCategory}
|
|
1679
1574
|
chartData={chartData}
|
|
@@ -1691,20 +1586,6 @@ export const LineChartExamples = [
|
|
|
1691
1586
|
const [chartProps, setChartProps] = useState({
|
|
1692
1587
|
xAxis: {
|
|
1693
1588
|
type: 'date',
|
|
1694
|
-
dateFormats: [
|
|
1695
|
-
{
|
|
1696
|
-
type: 'day',
|
|
1697
|
-
dateFormat: 'MM/dd'
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
type: 'week',
|
|
1701
|
-
dateFormat: 'MM/dd'
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
type: 'month',
|
|
1705
|
-
dateFormat: 'MM/dd'
|
|
1706
|
-
}
|
|
1707
|
-
],
|
|
1708
1589
|
baseInterval: {
|
|
1709
1590
|
timeUnit: 'day',
|
|
1710
1591
|
count: 1
|
|
@@ -1776,7 +1657,7 @@ export const LineChartExamples = [
|
|
|
1776
1657
|
`,
|
|
1777
1658
|
code: `<OpsnowCommonLineChart
|
|
1778
1659
|
chartId={chartId}
|
|
1779
|
-
|
|
1660
|
+
ref={chartRef}
|
|
1780
1661
|
chartProps={chartProps}
|
|
1781
1662
|
chartCategory={chartCategory}
|
|
1782
1663
|
chartData={chartData}
|
|
@@ -1792,20 +1673,6 @@ export const LineChartExamples = [
|
|
|
1792
1673
|
const [chartProps, setChartProps] = useState({
|
|
1793
1674
|
xAxis: {
|
|
1794
1675
|
type: 'date',
|
|
1795
|
-
dateFormats: [
|
|
1796
|
-
{
|
|
1797
|
-
type: 'day',
|
|
1798
|
-
dateFormat: 'MM/dd'
|
|
1799
|
-
},
|
|
1800
|
-
{
|
|
1801
|
-
type: 'week',
|
|
1802
|
-
dateFormat: 'MM/dd'
|
|
1803
|
-
},
|
|
1804
|
-
{
|
|
1805
|
-
type: 'month',
|
|
1806
|
-
dateFormat: 'MM/dd'
|
|
1807
|
-
}
|
|
1808
|
-
],
|
|
1809
1676
|
baseInterval: {
|
|
1810
1677
|
timeUnit: 'day',
|
|
1811
1678
|
count: 1
|
|
@@ -1889,7 +1756,7 @@ export const LineChartExamples = [
|
|
|
1889
1756
|
`,
|
|
1890
1757
|
code: `<OpsnowCommonLineChart
|
|
1891
1758
|
chartId={chartId}
|
|
1892
|
-
|
|
1759
|
+
ref={chartRef}
|
|
1893
1760
|
chartProps={chartProps}
|
|
1894
1761
|
chartCategory={chartCategory}
|
|
1895
1762
|
chartData={chartData}
|
|
@@ -1980,7 +1847,7 @@ export const LineChartExamples = [
|
|
|
1980
1847
|
`,
|
|
1981
1848
|
code: `<OpsnowCommonLineChart
|
|
1982
1849
|
chartId={chartId}
|
|
1983
|
-
|
|
1850
|
+
ref={chartRef}
|
|
1984
1851
|
chartProps={chartProps}
|
|
1985
1852
|
chartCategory={chartCategory}
|
|
1986
1853
|
chartData={chartData}
|
|
@@ -2068,7 +1935,7 @@ export const LineChartExamples = [
|
|
|
2068
1935
|
`,
|
|
2069
1936
|
code: `<OpsnowCommonLineChart
|
|
2070
1937
|
chartId={chartId}
|
|
2071
|
-
|
|
1938
|
+
ref={chartRef}
|
|
2072
1939
|
chartProps={chartProps}
|
|
2073
1940
|
chartCategory={chartCategory}
|
|
2074
1941
|
chartData={chartData}
|
|
@@ -2084,16 +1951,6 @@ export const LineChartExamples = [
|
|
|
2084
1951
|
const [chartProps, setChartProps] = useState({
|
|
2085
1952
|
xAxis: {
|
|
2086
1953
|
type: 'date',
|
|
2087
|
-
dateFormats: [
|
|
2088
|
-
{
|
|
2089
|
-
type: 'day',
|
|
2090
|
-
dateFormat: 'MM/dd'
|
|
2091
|
-
},
|
|
2092
|
-
{
|
|
2093
|
-
type: 'month',
|
|
2094
|
-
dateFormat: 'yyyy/MM'
|
|
2095
|
-
}
|
|
2096
|
-
],
|
|
2097
1954
|
baseInterval: {
|
|
2098
1955
|
timeUnit: 'day',
|
|
2099
1956
|
count: 1
|
|
@@ -2202,7 +2059,7 @@ export const LineChartExamples = [
|
|
|
2202
2059
|
`,
|
|
2203
2060
|
code: `<OpsnowCommonLineChart
|
|
2204
2061
|
chartId={chartId}
|
|
2205
|
-
|
|
2062
|
+
ref={chartRef}
|
|
2206
2063
|
chartProps={chartProps}
|
|
2207
2064
|
chartCategory={chartCategory}
|
|
2208
2065
|
chartData={chartData}
|
|
@@ -2219,12 +2076,6 @@ export const LineChartExamples = [
|
|
|
2219
2076
|
xAxis: {
|
|
2220
2077
|
type: 'date',
|
|
2221
2078
|
valueField: 'daySt',
|
|
2222
|
-
dateFormats: [
|
|
2223
|
-
{
|
|
2224
|
-
type: 'day',
|
|
2225
|
-
dateFormat: 'MM/dd'
|
|
2226
|
-
},
|
|
2227
|
-
],
|
|
2228
2079
|
baseInterval: {
|
|
2229
2080
|
timeUnit: 'day',
|
|
2230
2081
|
count: 1
|
|
@@ -2303,7 +2154,7 @@ export const LineChartExamples = [
|
|
|
2303
2154
|
`,
|
|
2304
2155
|
code: `<OpsnowCommonLineChart
|
|
2305
2156
|
chartId={chartId}
|
|
2306
|
-
|
|
2157
|
+
ref={chartRef}
|
|
2307
2158
|
chartProps={chartProps}
|
|
2308
2159
|
chartCategory={chartCategory}
|
|
2309
2160
|
chartData={chartData}
|
|
@@ -2322,10 +2173,6 @@ export const LineChartExamples = [
|
|
|
2322
2173
|
},
|
|
2323
2174
|
xAxis: {
|
|
2324
2175
|
type: 'date',
|
|
2325
|
-
dateFormats: [
|
|
2326
|
-
{ type: 'day', dateFormat: 'MM-dd' },
|
|
2327
|
-
{ type: 'month', dateFormat: 'yy-MM' }
|
|
2328
|
-
],
|
|
2329
2176
|
baseInterval: { timeUnit: 'month', count: 1 },
|
|
2330
2177
|
gridHidden: true
|
|
2331
2178
|
},
|
|
@@ -2376,7 +2223,7 @@ export const LineChartExamples = [
|
|
|
2376
2223
|
`,
|
|
2377
2224
|
code: `<OpsnowCommonLineChart
|
|
2378
2225
|
chartId={chartId}
|
|
2379
|
-
|
|
2226
|
+
ref={chartRef}
|
|
2380
2227
|
chartProps={chartProps}
|
|
2381
2228
|
chartCategory={chartCategory}
|
|
2382
2229
|
chartData={chartData}
|
|
@@ -2385,7 +2232,7 @@ export const LineChartExamples = [
|
|
|
2385
2232
|
},
|
|
2386
2233
|
{
|
|
2387
2234
|
title: '라인 차트 - 다운로드',
|
|
2388
|
-
description: 'ref를 사용하여 라인 차트를 다양한 형식으로 다운로드하는 예제입니다.
|
|
2235
|
+
description: 'ref를 사용하여 라인 차트를 다양한 형식으로 다운로드하는 예제입니다. 차트 ref는 ref prop으로 넘깁니다(chartRef라는 prop은 없음). downloadFile(fileName, fileType, fileOption?)을 호출합니다.',
|
|
2389
2236
|
code_props_usage: `
|
|
2390
2237
|
const chartId = 'line-chart-download-${generateUniqueGeneralId()}'
|
|
2391
2238
|
const chartRef = useRef(null)
|
|
@@ -2447,20 +2294,6 @@ export const StackChartExamples = [
|
|
|
2447
2294
|
const [chartProps, setChartProps] = useState({
|
|
2448
2295
|
xAxis: {
|
|
2449
2296
|
type: 'date',
|
|
2450
|
-
dateFormats: [
|
|
2451
|
-
{
|
|
2452
|
-
type: 'day',
|
|
2453
|
-
dateFormat: '{l.month.day.format}'
|
|
2454
|
-
},
|
|
2455
|
-
{
|
|
2456
|
-
type: 'week',
|
|
2457
|
-
dateFormat: '{l.month.day.format}'
|
|
2458
|
-
},
|
|
2459
|
-
{
|
|
2460
|
-
type: 'month',
|
|
2461
|
-
dateFormat: '{l.month.day.format}'
|
|
2462
|
-
}
|
|
2463
|
-
],
|
|
2464
2297
|
baseInterval: {
|
|
2465
2298
|
timeUnit: 'day',
|
|
2466
2299
|
count: 1
|
|
@@ -2544,7 +2377,7 @@ export const StackChartExamples = [
|
|
|
2544
2377
|
`,
|
|
2545
2378
|
code: `<OpsnowCommonStackChart
|
|
2546
2379
|
chartId={chartId}
|
|
2547
|
-
|
|
2380
|
+
ref={chartRef}
|
|
2548
2381
|
chartProps={chartProps}
|
|
2549
2382
|
chartData={chartData}
|
|
2550
2383
|
chartCategory={chartCategory}
|
|
@@ -2562,20 +2395,6 @@ export const StackChartExamples = [
|
|
|
2562
2395
|
const [chartProps, setChartProps] = useState({
|
|
2563
2396
|
xAxis: {
|
|
2564
2397
|
type: 'date',
|
|
2565
|
-
dateFormats: [
|
|
2566
|
-
{
|
|
2567
|
-
type: 'day',
|
|
2568
|
-
dateFormat: 'MM/dd'
|
|
2569
|
-
},
|
|
2570
|
-
{
|
|
2571
|
-
type: 'week',
|
|
2572
|
-
dateFormat: 'MM/dd'
|
|
2573
|
-
},
|
|
2574
|
-
{
|
|
2575
|
-
type: 'month',
|
|
2576
|
-
dateFormat: 'MM/dd'
|
|
2577
|
-
}
|
|
2578
|
-
],
|
|
2579
2398
|
baseInterval: {
|
|
2580
2399
|
timeUnit: 'day',
|
|
2581
2400
|
count: 1
|
|
@@ -2635,7 +2454,7 @@ export const StackChartExamples = [
|
|
|
2635
2454
|
`,
|
|
2636
2455
|
code: `<OpsnowCommonStackChart
|
|
2637
2456
|
chartId={chartId}
|
|
2638
|
-
|
|
2457
|
+
ref={chartRef}
|
|
2639
2458
|
chartProps={chartProps}
|
|
2640
2459
|
chartData={chartData}
|
|
2641
2460
|
chartCategory={chartCategory}
|
|
@@ -2650,20 +2469,6 @@ export const StackChartExamples = [
|
|
|
2650
2469
|
const [chartProps, setChartProps] = useState({
|
|
2651
2470
|
xAxis: {
|
|
2652
2471
|
type: 'date',
|
|
2653
|
-
dateFormats: [
|
|
2654
|
-
{
|
|
2655
|
-
type: 'day',
|
|
2656
|
-
dateFormat: 'MM/dd'
|
|
2657
|
-
},
|
|
2658
|
-
{
|
|
2659
|
-
type: 'week',
|
|
2660
|
-
dateFormat: 'MM/dd'
|
|
2661
|
-
},
|
|
2662
|
-
{
|
|
2663
|
-
type: 'month',
|
|
2664
|
-
dateFormat: 'MM/dd'
|
|
2665
|
-
}
|
|
2666
|
-
],
|
|
2667
2472
|
baseInterval: {
|
|
2668
2473
|
timeUnit: 'day',
|
|
2669
2474
|
count: 1
|
|
@@ -2729,7 +2534,7 @@ export const StackChartExamples = [
|
|
|
2729
2534
|
`,
|
|
2730
2535
|
code: `<OpsnowCommonStackChart
|
|
2731
2536
|
chartId={chartId}
|
|
2732
|
-
|
|
2537
|
+
ref={chartRef}
|
|
2733
2538
|
chartProps={chartProps}
|
|
2734
2539
|
chartData={chartData}
|
|
2735
2540
|
chartCategory={chartCategory}
|
|
@@ -2745,12 +2550,6 @@ export const StackChartExamples = [
|
|
|
2745
2550
|
xAxis: {
|
|
2746
2551
|
type: 'date',
|
|
2747
2552
|
valueField: 'daySt',
|
|
2748
|
-
dateFormats: [
|
|
2749
|
-
{
|
|
2750
|
-
type: 'day',
|
|
2751
|
-
dateFormat: 'MM/dd'
|
|
2752
|
-
},
|
|
2753
|
-
],
|
|
2754
2553
|
baseInterval: {
|
|
2755
2554
|
timeUnit: 'day',
|
|
2756
2555
|
count: 1
|
|
@@ -2813,7 +2612,7 @@ export const StackChartExamples = [
|
|
|
2813
2612
|
`,
|
|
2814
2613
|
code: `<OpsnowCommonStackChart
|
|
2815
2614
|
chartId={chartId}
|
|
2816
|
-
|
|
2615
|
+
ref={chartRef}
|
|
2817
2616
|
chartProps={chartProps}
|
|
2818
2617
|
chartData={chartData}
|
|
2819
2618
|
chartCategory={chartCategory}
|
|
@@ -2829,12 +2628,6 @@ export const StackChartExamples = [
|
|
|
2829
2628
|
xAxis: {
|
|
2830
2629
|
type: 'date',
|
|
2831
2630
|
valueField: 'daySt',
|
|
2832
|
-
dateFormats: [
|
|
2833
|
-
{
|
|
2834
|
-
type: 'day',
|
|
2835
|
-
dateFormat: 'MM/dd'
|
|
2836
|
-
},
|
|
2837
|
-
],
|
|
2838
2631
|
baseInterval: {
|
|
2839
2632
|
timeUnit: 'day',
|
|
2840
2633
|
count: 1
|
|
@@ -2910,7 +2703,7 @@ export const StackChartExamples = [
|
|
|
2910
2703
|
`,
|
|
2911
2704
|
code: `<OpsnowCommonStackChart
|
|
2912
2705
|
chartId={chartId}
|
|
2913
|
-
|
|
2706
|
+
ref={chartRef}
|
|
2914
2707
|
chartProps={chartProps}
|
|
2915
2708
|
chartData={chartData}
|
|
2916
2709
|
chartCategory={chartCategory}
|
|
@@ -2925,20 +2718,6 @@ export const StackChartExamples = [
|
|
|
2925
2718
|
const [chartProps, setChartProps] = useState({
|
|
2926
2719
|
xAxis: {
|
|
2927
2720
|
type: 'date',
|
|
2928
|
-
dateFormats: [
|
|
2929
|
-
{
|
|
2930
|
-
type: 'day',
|
|
2931
|
-
dateFormat: 'MM/dd'
|
|
2932
|
-
},
|
|
2933
|
-
{
|
|
2934
|
-
type: 'week',
|
|
2935
|
-
dateFormat: 'MM/dd'
|
|
2936
|
-
},
|
|
2937
|
-
{
|
|
2938
|
-
type: 'month',
|
|
2939
|
-
dateFormat: 'MM/dd'
|
|
2940
|
-
}
|
|
2941
|
-
],
|
|
2942
2721
|
baseInterval: {
|
|
2943
2722
|
timeUnit: 'day',
|
|
2944
2723
|
count: 1
|
|
@@ -2994,7 +2773,7 @@ export const StackChartExamples = [
|
|
|
2994
2773
|
`,
|
|
2995
2774
|
code: `<OpsnowCommonStackChart
|
|
2996
2775
|
chartId={chartId}
|
|
2997
|
-
|
|
2776
|
+
ref={chartRef}
|
|
2998
2777
|
chartProps={chartProps}
|
|
2999
2778
|
chartData={chartData}
|
|
3000
2779
|
chartCategory={chartCategory}
|
|
@@ -3069,7 +2848,7 @@ export const StackChartExamples = [
|
|
|
3069
2848
|
`,
|
|
3070
2849
|
code: `<OpsnowCommonStackChart
|
|
3071
2850
|
chartId={chartId}
|
|
3072
|
-
|
|
2851
|
+
ref={chartRef}
|
|
3073
2852
|
chartProps={chartProps}
|
|
3074
2853
|
chartData={chartData}
|
|
3075
2854
|
chartCategory={chartCategory}
|
|
@@ -3188,7 +2967,7 @@ export const StackChartExamples = [
|
|
|
3188
2967
|
`,
|
|
3189
2968
|
code: `<OpsnowCommonStackChart
|
|
3190
2969
|
chartId={chartId}
|
|
3191
|
-
|
|
2970
|
+
ref={chartRef}
|
|
3192
2971
|
chartProps={chartProps}
|
|
3193
2972
|
chartData={chartData}
|
|
3194
2973
|
chartCategory={chartCategory}
|
|
@@ -3309,7 +3088,7 @@ export const StackChartExamples = [
|
|
|
3309
3088
|
`,
|
|
3310
3089
|
code: `<OpsnowCommonStackChart
|
|
3311
3090
|
chartId={chartId}
|
|
3312
|
-
|
|
3091
|
+
ref={chartRef}
|
|
3313
3092
|
chartProps={chartProps}
|
|
3314
3093
|
chartData={chartData}
|
|
3315
3094
|
chartCategory={chartCategory}
|
|
@@ -3404,7 +3183,7 @@ export const StackChartExamples = [
|
|
|
3404
3183
|
`,
|
|
3405
3184
|
code: `<OpsnowCommonStackChart
|
|
3406
3185
|
chartId={chartId}
|
|
3407
|
-
|
|
3186
|
+
ref={chartRef}
|
|
3408
3187
|
chartProps={chartProps}
|
|
3409
3188
|
chartData={chartData}
|
|
3410
3189
|
chartCategory={chartCategory}
|
|
@@ -3419,12 +3198,6 @@ export const StackChartExamples = [
|
|
|
3419
3198
|
const [chartProps, setChartProps] = useState({
|
|
3420
3199
|
xAxis: {
|
|
3421
3200
|
type: 'date',
|
|
3422
|
-
dateFormats: [
|
|
3423
|
-
{
|
|
3424
|
-
type: 'month',
|
|
3425
|
-
dateFormat: 'yyyy/MM'
|
|
3426
|
-
}
|
|
3427
|
-
],
|
|
3428
3201
|
baseInterval: {
|
|
3429
3202
|
timeUnit: 'month',
|
|
3430
3203
|
count: 1
|
|
@@ -3488,7 +3261,7 @@ export const StackChartExamples = [
|
|
|
3488
3261
|
`,
|
|
3489
3262
|
code: `<OpsnowCommonStackChart
|
|
3490
3263
|
chartId={chartId}
|
|
3491
|
-
|
|
3264
|
+
ref={chartRef}
|
|
3492
3265
|
chartProps={chartProps}
|
|
3493
3266
|
chartData={chartData}
|
|
3494
3267
|
chartCategory={chartCategory}
|
|
@@ -3559,7 +3332,7 @@ export const StackChartExamples = [
|
|
|
3559
3332
|
`,
|
|
3560
3333
|
code: `<OpsnowCommonStackChart
|
|
3561
3334
|
chartId={chartId}
|
|
3562
|
-
|
|
3335
|
+
ref={chartRef}
|
|
3563
3336
|
chartProps={chartProps}
|
|
3564
3337
|
chartData={chartData}
|
|
3565
3338
|
chartCategory={chartCategory}
|
|
@@ -3575,12 +3348,6 @@ export const StackChartExamples = [
|
|
|
3575
3348
|
xAxis: {
|
|
3576
3349
|
type: 'date',
|
|
3577
3350
|
valueField: 'daySt',
|
|
3578
|
-
dateFormats: [
|
|
3579
|
-
{
|
|
3580
|
-
type: 'day',
|
|
3581
|
-
dateFormat: 'MM/dd'
|
|
3582
|
-
},
|
|
3583
|
-
],
|
|
3584
3351
|
baseInterval: {
|
|
3585
3352
|
timeUnit: 'day',
|
|
3586
3353
|
count: 1
|
|
@@ -3657,7 +3424,7 @@ export const StackChartExamples = [
|
|
|
3657
3424
|
`,
|
|
3658
3425
|
code: `<OpsnowCommonStackChart
|
|
3659
3426
|
chartId={chartId}
|
|
3660
|
-
|
|
3427
|
+
ref={chartRef}
|
|
3661
3428
|
chartProps={chartProps}
|
|
3662
3429
|
chartData={chartData}
|
|
3663
3430
|
chartCategory={chartCategory}
|
|
@@ -3676,10 +3443,6 @@ export const StackChartExamples = [
|
|
|
3676
3443
|
},
|
|
3677
3444
|
xAxis: {
|
|
3678
3445
|
type: 'date',
|
|
3679
|
-
dateFormats: [
|
|
3680
|
-
{ type: 'day', dateFormat: 'MM-dd' },
|
|
3681
|
-
{ type: 'month', dateFormat: 'yy년 M월' }
|
|
3682
|
-
],
|
|
3683
3446
|
baseInterval: { timeUnit: 'month', count: 1 },
|
|
3684
3447
|
gridHidden: true
|
|
3685
3448
|
},
|
|
@@ -3739,7 +3502,7 @@ export const StackChartExamples = [
|
|
|
3739
3502
|
`,
|
|
3740
3503
|
code: `<OpsnowCommonStackChart
|
|
3741
3504
|
chartId={chartId}
|
|
3742
|
-
|
|
3505
|
+
ref={chartRef}
|
|
3743
3506
|
chartProps={chartProps}
|
|
3744
3507
|
chartData={chartData}
|
|
3745
3508
|
chartCategory={chartCategory}
|
|
@@ -3807,7 +3570,7 @@ export const StackChartExamples = [
|
|
|
3807
3570
|
`,
|
|
3808
3571
|
code: `<OpsnowCommonStackChart
|
|
3809
3572
|
chartId={chartId}
|
|
3810
|
-
|
|
3573
|
+
ref={chartRef}
|
|
3811
3574
|
chartProps={chartProps}
|
|
3812
3575
|
chartData={chartData}
|
|
3813
3576
|
chartCategory={chartCategory}
|
|
@@ -3817,7 +3580,7 @@ export const StackChartExamples = [
|
|
|
3817
3580
|
},
|
|
3818
3581
|
{
|
|
3819
3582
|
title: '스택 차트 - 다운로드',
|
|
3820
|
-
description: 'ref를 사용하여 스택 차트를 다양한 형식으로 다운로드하는 예제입니다.
|
|
3583
|
+
description: 'ref를 사용하여 스택 차트를 다양한 형식으로 다운로드하는 예제입니다. 차트 ref는 ref prop으로 넘깁니다(chartRef라는 prop은 없음). downloadFile(fileName, fileType, fileOption?)을 호출합니다.',
|
|
3821
3584
|
code_props_usage: `
|
|
3822
3585
|
const chartId = 'stack-chart-download-${generateUniqueGeneralId()}'
|
|
3823
3586
|
const chartRef = useRef(null)
|
|
@@ -3880,20 +3643,6 @@ export const XyMultiChartExamples = [
|
|
|
3880
3643
|
const [chartProps, setChartProps] = useState({
|
|
3881
3644
|
xAxis: {
|
|
3882
3645
|
type: 'date',
|
|
3883
|
-
dateFormats: [
|
|
3884
|
-
{
|
|
3885
|
-
type: 'day',
|
|
3886
|
-
dateFormat: '{l.month.day.format}'
|
|
3887
|
-
},
|
|
3888
|
-
{
|
|
3889
|
-
type: 'week',
|
|
3890
|
-
dateFormat: '{l.month.day.format}'
|
|
3891
|
-
},
|
|
3892
|
-
{
|
|
3893
|
-
type: 'month',
|
|
3894
|
-
dateFormat: '{l.month.day.format}'
|
|
3895
|
-
}
|
|
3896
|
-
],
|
|
3897
3646
|
baseInterval: {
|
|
3898
3647
|
timeUnit: 'day',
|
|
3899
3648
|
count: 1
|
|
@@ -4076,7 +3825,7 @@ export const XyMultiChartExamples = [
|
|
|
4076
3825
|
`,
|
|
4077
3826
|
code: `<OpsnowCommonXyMultiChart
|
|
4078
3827
|
chartId={chartId}
|
|
4079
|
-
|
|
3828
|
+
ref={chartRef}
|
|
4080
3829
|
chartProps={chartProps}
|
|
4081
3830
|
chartData={chartData}
|
|
4082
3831
|
chartCategory={chartCategory}
|
|
@@ -4095,20 +3844,6 @@ export const XyMultiChartExamples = [
|
|
|
4095
3844
|
xAxis: {
|
|
4096
3845
|
type: 'date',
|
|
4097
3846
|
valueField: 'date',
|
|
4098
|
-
dateFormats: [
|
|
4099
|
-
{
|
|
4100
|
-
type: 'day',
|
|
4101
|
-
dateFormat: 'MM/dd'
|
|
4102
|
-
},
|
|
4103
|
-
{
|
|
4104
|
-
type: 'week',
|
|
4105
|
-
dateFormat: 'MM/dd'
|
|
4106
|
-
},
|
|
4107
|
-
{
|
|
4108
|
-
type: 'month',
|
|
4109
|
-
dateFormat: 'MM/dd'
|
|
4110
|
-
}
|
|
4111
|
-
],
|
|
4112
3847
|
baseInterval: {
|
|
4113
3848
|
timeUnit: 'day',
|
|
4114
3849
|
count: 1
|
|
@@ -4218,7 +3953,7 @@ export const XyMultiChartExamples = [
|
|
|
4218
3953
|
`,
|
|
4219
3954
|
code: `<OpsnowCommonXyMultiChart
|
|
4220
3955
|
chartId={chartId}
|
|
4221
|
-
|
|
3956
|
+
ref={chartRef}
|
|
4222
3957
|
chartProps={chartProps}
|
|
4223
3958
|
chartData={chartData}
|
|
4224
3959
|
chartCategory={chartCategory}
|
|
@@ -4234,20 +3969,6 @@ export const XyMultiChartExamples = [
|
|
|
4234
3969
|
const [chartProps, setChartProps] = useState({
|
|
4235
3970
|
xAxis: {
|
|
4236
3971
|
type: 'date',
|
|
4237
|
-
dateFormats: [
|
|
4238
|
-
{
|
|
4239
|
-
type: 'day',
|
|
4240
|
-
dateFormat: 'MM/dd'
|
|
4241
|
-
},
|
|
4242
|
-
{
|
|
4243
|
-
type: 'week',
|
|
4244
|
-
dateFormat: 'MM/dd'
|
|
4245
|
-
},
|
|
4246
|
-
{
|
|
4247
|
-
type: 'month',
|
|
4248
|
-
dateFormat: 'MM/dd'
|
|
4249
|
-
}
|
|
4250
|
-
],
|
|
4251
3972
|
baseInterval: {
|
|
4252
3973
|
timeUnit: 'day',
|
|
4253
3974
|
count: 1
|
|
@@ -4368,7 +4089,7 @@ export const XyMultiChartExamples = [
|
|
|
4368
4089
|
`,
|
|
4369
4090
|
code: `<OpsnowCommonXyMultiChart
|
|
4370
4091
|
chartId={chartId}
|
|
4371
|
-
|
|
4092
|
+
ref={chartRef}
|
|
4372
4093
|
chartProps={chartProps}
|
|
4373
4094
|
chartData={chartData}
|
|
4374
4095
|
chartCategory={chartCategory}
|
|
@@ -4499,7 +4220,7 @@ export const XyMultiChartExamples = [
|
|
|
4499
4220
|
`,
|
|
4500
4221
|
code: `<OpsnowCommonXyMultiChart
|
|
4501
4222
|
chartId={chartId}
|
|
4502
|
-
|
|
4223
|
+
ref={chartRef}
|
|
4503
4224
|
chartProps={chartProps}
|
|
4504
4225
|
chartData={chartData}
|
|
4505
4226
|
chartCategory={chartCategory}
|
|
@@ -4515,20 +4236,6 @@ export const XyMultiChartExamples = [
|
|
|
4515
4236
|
const [chartProps, setChartProps] = useState({
|
|
4516
4237
|
xAxis: {
|
|
4517
4238
|
type: 'date',
|
|
4518
|
-
dateFormats: [
|
|
4519
|
-
{
|
|
4520
|
-
type: 'day',
|
|
4521
|
-
dateFormat: 'yyyy/MM/dd'
|
|
4522
|
-
},
|
|
4523
|
-
{
|
|
4524
|
-
type: 'week',
|
|
4525
|
-
dateFormat: 'yyyy/MM/dd'
|
|
4526
|
-
},
|
|
4527
|
-
{
|
|
4528
|
-
type: 'month',
|
|
4529
|
-
dateFormat: 'yyyy/MM/dd'
|
|
4530
|
-
}
|
|
4531
|
-
],
|
|
4532
4239
|
baseInterval: {
|
|
4533
4240
|
timeUnit: 'day',
|
|
4534
4241
|
count: 1
|
|
@@ -4687,7 +4394,7 @@ export const XyMultiChartExamples = [
|
|
|
4687
4394
|
`,
|
|
4688
4395
|
code: `<OpsnowCommonXyMultiChart
|
|
4689
4396
|
chartId={chartId}
|
|
4690
|
-
|
|
4397
|
+
ref={chartRef}
|
|
4691
4398
|
chartProps={chartProps}
|
|
4692
4399
|
chartData={chartData}
|
|
4693
4400
|
chartCategory={chartCategory}
|
|
@@ -4703,20 +4410,6 @@ export const XyMultiChartExamples = [
|
|
|
4703
4410
|
const [chartProps, setChartProps] = useState({
|
|
4704
4411
|
xAxis: {
|
|
4705
4412
|
type: 'date',
|
|
4706
|
-
dateFormats: [
|
|
4707
|
-
{
|
|
4708
|
-
type: 'day',
|
|
4709
|
-
dateFormat: 'yyyy/MM/dd'
|
|
4710
|
-
},
|
|
4711
|
-
{
|
|
4712
|
-
type: 'week',
|
|
4713
|
-
dateFormat: 'yyyy/MM/dd'
|
|
4714
|
-
},
|
|
4715
|
-
{
|
|
4716
|
-
type: 'month',
|
|
4717
|
-
dateFormat: 'yyyy/MM/dd'
|
|
4718
|
-
}
|
|
4719
|
-
],
|
|
4720
4413
|
baseInterval: {
|
|
4721
4414
|
timeUnit: 'day',
|
|
4722
4415
|
count: 1
|
|
@@ -4878,7 +4571,7 @@ export const XyMultiChartExamples = [
|
|
|
4878
4571
|
`,
|
|
4879
4572
|
code: `<OpsnowCommonXyMultiChart
|
|
4880
4573
|
chartId={chartId}
|
|
4881
|
-
|
|
4574
|
+
ref={chartRef}
|
|
4882
4575
|
chartProps={chartProps}
|
|
4883
4576
|
chartData={chartData}
|
|
4884
4577
|
chartCategory={chartCategory}
|
|
@@ -4896,12 +4589,6 @@ export const XyMultiChartExamples = [
|
|
|
4896
4589
|
const [chartProps, setChartProps] = useState({
|
|
4897
4590
|
xAxis: {
|
|
4898
4591
|
type: 'date',
|
|
4899
|
-
dateFormats: [
|
|
4900
|
-
{
|
|
4901
|
-
type: 'day',
|
|
4902
|
-
dateFormat: 'MMM d'
|
|
4903
|
-
},
|
|
4904
|
-
],
|
|
4905
4592
|
baseInterval: {
|
|
4906
4593
|
timeUnit: 'day',
|
|
4907
4594
|
count: 1
|
|
@@ -5019,7 +4706,7 @@ export const XyMultiChartExamples = [
|
|
|
5019
4706
|
`,
|
|
5020
4707
|
code: `<OpsnowCommonXyMultiChart
|
|
5021
4708
|
chartId={chartId}
|
|
5022
|
-
|
|
4709
|
+
ref={chartRef}
|
|
5023
4710
|
chartProps={chartProps}
|
|
5024
4711
|
chartData={chartData}
|
|
5025
4712
|
chartCategory={chartCategory}
|
|
@@ -5149,7 +4836,7 @@ export const XyMultiChartExamples = [
|
|
|
5149
4836
|
`,
|
|
5150
4837
|
code: `<OpsnowCommonXyMultiChart
|
|
5151
4838
|
chartId={chartId}
|
|
5152
|
-
|
|
4839
|
+
ref={chartRef}
|
|
5153
4840
|
chartProps={chartProps}
|
|
5154
4841
|
chartData={chartData}
|
|
5155
4842
|
chartCategory={chartCategory}
|
|
@@ -5165,12 +4852,6 @@ export const XyMultiChartExamples = [
|
|
|
5165
4852
|
const [chartProps, setChartProps] = useState({
|
|
5166
4853
|
xAxis: {
|
|
5167
4854
|
type: 'date',
|
|
5168
|
-
dateFormats: [
|
|
5169
|
-
{
|
|
5170
|
-
type: 'day',
|
|
5171
|
-
dateFormat: 'MM/dd'
|
|
5172
|
-
}
|
|
5173
|
-
],
|
|
5174
4855
|
baseInterval: {
|
|
5175
4856
|
timeUnit: 'day',
|
|
5176
4857
|
count: 1
|
|
@@ -5277,7 +4958,7 @@ export const XyMultiChartExamples = [
|
|
|
5277
4958
|
`,
|
|
5278
4959
|
code: `<OpsnowCommonXyMultiChart
|
|
5279
4960
|
chartId={chartId}
|
|
5280
|
-
|
|
4961
|
+
ref={chartRef}
|
|
5281
4962
|
chartProps={chartProps}
|
|
5282
4963
|
chartData={chartData}
|
|
5283
4964
|
chartCategory={chartCategory}
|
|
@@ -5293,12 +4974,6 @@ export const XyMultiChartExamples = [
|
|
|
5293
4974
|
const [chartProps, setChartProps] = useState({
|
|
5294
4975
|
xAxis: {
|
|
5295
4976
|
type: 'date',
|
|
5296
|
-
dateFormats: [
|
|
5297
|
-
{
|
|
5298
|
-
type: 'day',
|
|
5299
|
-
dateFormat: 'MM/dd'
|
|
5300
|
-
}
|
|
5301
|
-
],
|
|
5302
4977
|
baseInterval: {
|
|
5303
4978
|
timeUnit: 'day',
|
|
5304
4979
|
count: 1
|
|
@@ -5407,7 +5082,7 @@ export const XyMultiChartExamples = [
|
|
|
5407
5082
|
`,
|
|
5408
5083
|
code: `<OpsnowCommonXyMultiChart
|
|
5409
5084
|
chartId={chartId}
|
|
5410
|
-
|
|
5085
|
+
ref={chartRef}
|
|
5411
5086
|
chartProps={chartProps}
|
|
5412
5087
|
chartData={chartData}
|
|
5413
5088
|
chartCategory={chartCategory}
|
|
@@ -5423,12 +5098,6 @@ export const XyMultiChartExamples = [
|
|
|
5423
5098
|
xAxis: {
|
|
5424
5099
|
type: 'date',
|
|
5425
5100
|
// valueField: 'day',
|
|
5426
|
-
dateFormats: [
|
|
5427
|
-
{
|
|
5428
|
-
type: 'month',
|
|
5429
|
-
dateFormat: 'yy/MM'
|
|
5430
|
-
}
|
|
5431
|
-
],
|
|
5432
5101
|
baseInterval: {
|
|
5433
5102
|
timeUnit: 'month',
|
|
5434
5103
|
count: 1
|
|
@@ -5533,7 +5202,7 @@ export const XyMultiChartExamples = [
|
|
|
5533
5202
|
`,
|
|
5534
5203
|
code: `<OpsnowCommonXyMultiChart
|
|
5535
5204
|
chartId={chartId}
|
|
5536
|
-
|
|
5205
|
+
ref={chartRef}
|
|
5537
5206
|
chartProps={chartProps}
|
|
5538
5207
|
chartData={chartData}
|
|
5539
5208
|
chartCategory={chartCategory}
|
|
@@ -5645,7 +5314,7 @@ export const XyMultiChartExamples = [
|
|
|
5645
5314
|
`,
|
|
5646
5315
|
code: `<OpsnowCommonXyMultiChart
|
|
5647
5316
|
chartId={chartId}
|
|
5648
|
-
|
|
5317
|
+
ref={chartRef}
|
|
5649
5318
|
chartProps={chartProps}
|
|
5650
5319
|
chartData={chartData}
|
|
5651
5320
|
chartCategory={chartCategory}
|
|
@@ -5660,16 +5329,6 @@ export const XyMultiChartExamples = [
|
|
|
5660
5329
|
const [chartProps, setChartProps] = useState({
|
|
5661
5330
|
xAxis: {
|
|
5662
5331
|
type: 'date',
|
|
5663
|
-
dateFormats: [
|
|
5664
|
-
{
|
|
5665
|
-
type: 'month',
|
|
5666
|
-
dateFormat: 'yyyy/MM'
|
|
5667
|
-
},
|
|
5668
|
-
{
|
|
5669
|
-
type: 'year',
|
|
5670
|
-
dateFormat: 'yyyy/MM'
|
|
5671
|
-
},
|
|
5672
|
-
],
|
|
5673
5332
|
baseInterval: {
|
|
5674
5333
|
timeUnit: 'month',
|
|
5675
5334
|
count: 1
|
|
@@ -5788,7 +5447,7 @@ export const XyMultiChartExamples = [
|
|
|
5788
5447
|
`,
|
|
5789
5448
|
code: `<OpsnowCommonXyMultiChart
|
|
5790
5449
|
chartId={chartId}
|
|
5791
|
-
|
|
5450
|
+
ref={chartRef}
|
|
5792
5451
|
chartProps={chartProps}
|
|
5793
5452
|
chartData={chartData}
|
|
5794
5453
|
chartCategory={chartCategory}
|
|
@@ -5803,16 +5462,6 @@ export const XyMultiChartExamples = [
|
|
|
5803
5462
|
const [chartProps, setChartProps] = useState({
|
|
5804
5463
|
xAxis: {
|
|
5805
5464
|
type: 'date',
|
|
5806
|
-
dateFormats: [
|
|
5807
|
-
{
|
|
5808
|
-
type: 'month',
|
|
5809
|
-
dateFormat: 'yyyy/MM'
|
|
5810
|
-
},
|
|
5811
|
-
{
|
|
5812
|
-
type: 'year',
|
|
5813
|
-
dateFormat: 'yyyy/MM'
|
|
5814
|
-
},
|
|
5815
|
-
],
|
|
5816
5465
|
baseInterval: {
|
|
5817
5466
|
timeUnit: 'month',
|
|
5818
5467
|
count: 1
|
|
@@ -5960,7 +5609,7 @@ export const XyMultiChartExamples = [
|
|
|
5960
5609
|
`,
|
|
5961
5610
|
code: `<OpsnowCommonXyMultiChart
|
|
5962
5611
|
chartId={chartId}
|
|
5963
|
-
|
|
5612
|
+
ref={chartRef}
|
|
5964
5613
|
chartProps={chartProps}
|
|
5965
5614
|
chartData={chartData}
|
|
5966
5615
|
chartCategory={chartCategory}
|
|
@@ -5981,20 +5630,6 @@ export const XyMultiChartExamples = [
|
|
|
5981
5630
|
},
|
|
5982
5631
|
xAxis: {
|
|
5983
5632
|
type: 'date',
|
|
5984
|
-
dateFormats: [
|
|
5985
|
-
{
|
|
5986
|
-
type: 'day',
|
|
5987
|
-
dateFormat: 'MMM d, yyyy'
|
|
5988
|
-
},
|
|
5989
|
-
{
|
|
5990
|
-
type: 'month',
|
|
5991
|
-
dateFormat: 'MMM yyyy',
|
|
5992
|
-
},
|
|
5993
|
-
{
|
|
5994
|
-
type: 'year',
|
|
5995
|
-
dateFormat: 'yyyy',
|
|
5996
|
-
},
|
|
5997
|
-
],
|
|
5998
5633
|
baseInterval: {
|
|
5999
5634
|
timeUnit: 'day',
|
|
6000
5635
|
count: 1,
|
|
@@ -6097,7 +5732,7 @@ export const XyMultiChartExamples = [
|
|
|
6097
5732
|
`,
|
|
6098
5733
|
code: `<OpsnowCommonXyMultiChart
|
|
6099
5734
|
chartId={chartId}
|
|
6100
|
-
|
|
5735
|
+
ref={chartRef}
|
|
6101
5736
|
chartProps={chartProps}
|
|
6102
5737
|
chartData={chartData}
|
|
6103
5738
|
chartCategory={chartCategory}
|
|
@@ -6113,16 +5748,6 @@ export const XyMultiChartExamples = [
|
|
|
6113
5748
|
xAxis: {
|
|
6114
5749
|
type: 'date',
|
|
6115
5750
|
valueField: 'date',
|
|
6116
|
-
dateFormats: [
|
|
6117
|
-
{
|
|
6118
|
-
type: 'month',
|
|
6119
|
-
dateFormat: 'MM/yyyy'
|
|
6120
|
-
},
|
|
6121
|
-
{
|
|
6122
|
-
type: 'year',
|
|
6123
|
-
dateFormat: 'MM/yyyy'
|
|
6124
|
-
}
|
|
6125
|
-
],
|
|
6126
5751
|
baseInterval: {
|
|
6127
5752
|
timeUnit: 'month',
|
|
6128
5753
|
count: 1
|
|
@@ -6290,7 +5915,7 @@ export const XyMultiChartExamples = [
|
|
|
6290
5915
|
`,
|
|
6291
5916
|
code: `<OpsnowCommonXyMultiChart
|
|
6292
5917
|
chartId={chartId}
|
|
6293
|
-
|
|
5918
|
+
ref={chartRef}
|
|
6294
5919
|
chartProps={chartProps}
|
|
6295
5920
|
chartData={chartData}
|
|
6296
5921
|
chartCategory={chartCategory}
|
|
@@ -6308,16 +5933,6 @@ export const XyMultiChartExamples = [
|
|
|
6308
5933
|
xAxis: {
|
|
6309
5934
|
type: 'date',
|
|
6310
5935
|
valueField: 'date',
|
|
6311
|
-
dateFormats: [
|
|
6312
|
-
{
|
|
6313
|
-
type: 'month',
|
|
6314
|
-
dateFormat: 'MM/yyyy'
|
|
6315
|
-
},
|
|
6316
|
-
{
|
|
6317
|
-
type: 'year',
|
|
6318
|
-
dateFormat: 'MM/yyyy'
|
|
6319
|
-
}
|
|
6320
|
-
],
|
|
6321
5936
|
baseInterval: {
|
|
6322
5937
|
timeUnit: 'month',
|
|
6323
5938
|
count: 1
|
|
@@ -6505,7 +6120,7 @@ export const XyMultiChartExamples = [
|
|
|
6505
6120
|
`,
|
|
6506
6121
|
code: `<OpsnowCommonXyMultiChart
|
|
6507
6122
|
chartId={chartId}
|
|
6508
|
-
|
|
6123
|
+
ref={chartRef}
|
|
6509
6124
|
chartProps={chartProps}
|
|
6510
6125
|
chartData={chartData}
|
|
6511
6126
|
chartCategory={chartCategory}
|
|
@@ -6526,10 +6141,6 @@ export const XyMultiChartExamples = [
|
|
|
6526
6141
|
},
|
|
6527
6142
|
xAxis: {
|
|
6528
6143
|
type: 'date',
|
|
6529
|
-
dateFormats: [
|
|
6530
|
-
{ type: 'day', dateFormat: 'MM-dd' },
|
|
6531
|
-
{ type: 'month', dateFormat: 'yy-MM' }
|
|
6532
|
-
],
|
|
6533
6144
|
baseInterval: { timeUnit: 'month', count: 1 },
|
|
6534
6145
|
gridHidden: true
|
|
6535
6146
|
},
|
|
@@ -6615,7 +6226,7 @@ export const XyMultiChartExamples = [
|
|
|
6615
6226
|
`,
|
|
6616
6227
|
code: `<OpsnowCommonXyMultiChart
|
|
6617
6228
|
chartId={chartId}
|
|
6618
|
-
|
|
6229
|
+
ref={chartRef}
|
|
6619
6230
|
chartProps={chartProps}
|
|
6620
6231
|
chartCategory={chartCategory}
|
|
6621
6232
|
chartData={chartData}
|
|
@@ -6635,10 +6246,6 @@ export const XyMultiChartExamples = [
|
|
|
6635
6246
|
},
|
|
6636
6247
|
xAxis: {
|
|
6637
6248
|
type: 'date',
|
|
6638
|
-
dateFormats: [
|
|
6639
|
-
{ type: 'day', dateFormat: 'MM-dd' },
|
|
6640
|
-
{ type: 'month', dateFormat: 'MMM\\nyyyy' }
|
|
6641
|
-
],
|
|
6642
6249
|
baseInterval: { timeUnit: 'month', count: 1 },
|
|
6643
6250
|
gridHidden: true
|
|
6644
6251
|
},
|
|
@@ -6734,7 +6341,7 @@ export const XyMultiChartExamples = [
|
|
|
6734
6341
|
`,
|
|
6735
6342
|
code: `<OpsnowCommonXyMultiChart
|
|
6736
6343
|
chartId={chartId}
|
|
6737
|
-
|
|
6344
|
+
ref={chartRef}
|
|
6738
6345
|
chartProps={chartProps}
|
|
6739
6346
|
chartCategory={chartCategory}
|
|
6740
6347
|
chartData={chartData}
|
|
@@ -6754,10 +6361,6 @@ export const XyMultiChartExamples = [
|
|
|
6754
6361
|
},
|
|
6755
6362
|
xAxis: {
|
|
6756
6363
|
type: 'date',
|
|
6757
|
-
dateFormats: [
|
|
6758
|
-
{ type: 'day', dateFormat: 'MM-dd' },
|
|
6759
|
-
{ type: 'month', dateFormat: 'yy년 M월' }
|
|
6760
|
-
],
|
|
6761
6364
|
baseInterval: { timeUnit: 'month', count: 1 },
|
|
6762
6365
|
gridHidden: true,
|
|
6763
6366
|
cellStartLocation: 0.1,
|
|
@@ -6830,7 +6433,7 @@ export const XyMultiChartExamples = [
|
|
|
6830
6433
|
`,
|
|
6831
6434
|
code: `<OpsnowCommonXyMultiChart
|
|
6832
6435
|
chartId={chartId}
|
|
6833
|
-
|
|
6436
|
+
ref={chartRef}
|
|
6834
6437
|
chartProps={chartProps}
|
|
6835
6438
|
chartCategory={chartCategory}
|
|
6836
6439
|
chartData={chartData}
|
|
@@ -6848,7 +6451,6 @@ export const XyMultiChartExamples = [
|
|
|
6848
6451
|
const [chartProps, setChartProps] = useState({
|
|
6849
6452
|
xAxis: {
|
|
6850
6453
|
type: 'date',
|
|
6851
|
-
dateFormats: [{ type: 'day', dateFormat: 'yyyy/MM/dd' }],
|
|
6852
6454
|
baseInterval: { timeUnit: 'day', count: 1 },
|
|
6853
6455
|
gridHidden: true,
|
|
6854
6456
|
renderer: { minGridDistance: 30 },
|
|
@@ -7432,7 +7034,7 @@ export const BubbleChartExamples = [
|
|
|
7432
7034
|
`,
|
|
7433
7035
|
code: `<OpsnowCommonBubbleChart
|
|
7434
7036
|
chartId={chartId}
|
|
7435
|
-
|
|
7037
|
+
ref={chartRef}
|
|
7436
7038
|
chartProps={chartProps}
|
|
7437
7039
|
chartData={chartData}
|
|
7438
7040
|
chartLocaleMessage={chartLocaleMessage}
|
|
@@ -7489,7 +7091,7 @@ export const BubbleChartExamples = [
|
|
|
7489
7091
|
`,
|
|
7490
7092
|
code: `<OpsnowCommonBubbleChart
|
|
7491
7093
|
chartId={chartId}
|
|
7492
|
-
|
|
7094
|
+
ref={chartRef}
|
|
7493
7095
|
chartProps={chartProps}
|
|
7494
7096
|
chartData={chartData}
|
|
7495
7097
|
chartLocaleMessage={chartLocaleMessage}
|
|
@@ -7534,7 +7136,7 @@ export const BubbleChartExamples = [
|
|
|
7534
7136
|
`,
|
|
7535
7137
|
code: `<OpsnowCommonBubbleChart
|
|
7536
7138
|
chartId={chartId}
|
|
7537
|
-
|
|
7139
|
+
ref={chartRef}
|
|
7538
7140
|
chartProps={chartProps}
|
|
7539
7141
|
chartData={chartData}
|
|
7540
7142
|
chartLocaleMessage={chartLocaleMessage}
|
|
@@ -7599,14 +7201,14 @@ export const BubbleChartExamples = [
|
|
|
7599
7201
|
{/* Before — extraMin/extraMax 없음 */}
|
|
7600
7202
|
<OpsnowCommonBubbleChart
|
|
7601
7203
|
chartId={chartIdA}
|
|
7602
|
-
|
|
7204
|
+
ref={chartRefA}
|
|
7603
7205
|
chartProps={chartPropsA}
|
|
7604
7206
|
chartData={chartData}
|
|
7605
7207
|
/>
|
|
7606
7208
|
{/* After — extraMin/extraMax=0.1 (가장자리 여백) */}
|
|
7607
7209
|
<OpsnowCommonBubbleChart
|
|
7608
7210
|
chartId={chartIdB}
|
|
7609
|
-
|
|
7211
|
+
ref={chartRefB}
|
|
7610
7212
|
chartProps={chartPropsB}
|
|
7611
7213
|
chartData={chartData}
|
|
7612
7214
|
/>
|