lowcoder-map-component 0.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.
Files changed (123) hide show
  1. package/README.md +37 -0
  2. package/icons/demo-icon.svg +10 -0
  3. package/icons/hills.svg +17 -0
  4. package/index.css +27 -0
  5. package/index.html +35 -0
  6. package/index.tsx +20 -0
  7. package/loader.mjs +11 -0
  8. package/package.json +175 -0
  9. package/src/README.md +35 -0
  10. package/src/components/ChartPropertyView.tsx +961 -0
  11. package/src/components/SeriesComp.tsx +368 -0
  12. package/src/components/TabPropertyView.tsx +127 -0
  13. package/src/comps/Barcharts/comp.tsx +338 -0
  14. package/src/comps/Barcharts/constants.tsx +77 -0
  15. package/src/comps/Linecharts/comp.tsx +350 -0
  16. package/src/comps/Linecharts/constants.tsx +53 -0
  17. package/src/comps/Linechartsv2/comp.tsx +350 -0
  18. package/src/comps/Linechartsv2/constants.tsx +68 -0
  19. package/src/comps/Mapcharts/comp.tsx +381 -0
  20. package/src/comps/Mapcharts/constants.tsx +312 -0
  21. package/src/comps/Mapchartsv2/comp.tsx +393 -0
  22. package/src/comps/Mapchartsv2/constants.tsx +340 -0
  23. package/src/comps/MixedLineBarCharts/comp.tsx +353 -0
  24. package/src/comps/MixedLineBarCharts/constants.tsx +60 -0
  25. package/src/comps/MultiLineCharts/comp.tsx +362 -0
  26. package/src/comps/MultiLineCharts/constants.tsx +96 -0
  27. package/src/comps/PercentageCharts/comp.tsx +359 -0
  28. package/src/comps/PercentageCharts/constants.tsx +98 -0
  29. package/src/comps/Piecharts/comp.tsx +334 -0
  30. package/src/comps/Piecharts/constants.tsx +48 -0
  31. package/src/comps/Tablecharts/comp.tsx +429 -0
  32. package/src/comps/Tablecharts/constants.tsx +97 -0
  33. package/src/comps/Totalcharts/comp.tsx +463 -0
  34. package/src/comps/Totalcharts/constants.tsx +66 -0
  35. package/src/comps/TwoLineCharts/comp.tsx +350 -0
  36. package/src/comps/TwoLineCharts/constants.tsx +82 -0
  37. package/src/comps/mapComponent/comp.tsx +338 -0
  38. package/src/comps/mapComponent/constants.tsx +2149 -0
  39. package/src/comps/tab/comp.tsx +283 -0
  40. package/src/comps/tab/constants.tsx +79 -0
  41. package/src/configs/barChartConfig.tsx +153 -0
  42. package/src/configs/baseConfig.tsx +66 -0
  43. package/src/configs/candleStickChartConfig.tsx +35 -0
  44. package/src/configs/cartesianAxisConfig.tsx +314 -0
  45. package/src/configs/chartUrls.tsx +9 -0
  46. package/src/configs/echartConfig.tsx +260 -0
  47. package/src/configs/echartsLabelConfig.tsx +47 -0
  48. package/src/configs/echartsLegendConfig.tsx +29 -0
  49. package/src/configs/echartsTitleConfig.tsx +49 -0
  50. package/src/configs/echartsTitleVerticalConfig.tsx +50 -0
  51. package/src/configs/funnelChartConfig.tsx +35 -0
  52. package/src/configs/gaugeChartConfig.tsx +31 -0
  53. package/src/configs/graphChartConfig.tsx +31 -0
  54. package/src/configs/heatmapChartConfig.tsx +31 -0
  55. package/src/configs/legendConfig.tsx +55 -0
  56. package/src/configs/lineChartConfig.tsx +246 -0
  57. package/src/configs/lineChartConfigv2.tsx +246 -0
  58. package/src/configs/mapChartConfig.tsx +106 -0
  59. package/src/configs/mapChartConfigv2.tsx +106 -0
  60. package/src/configs/mixedChartConfig.tsx +21 -0
  61. package/src/configs/pieChartConfig.tsx +156 -0
  62. package/src/configs/radarChartConfig.tsx +31 -0
  63. package/src/configs/sankeyChartConfig.tsx +35 -0
  64. package/src/configs/scatterChartConfig.tsx +152 -0
  65. package/src/configs/sunburstChartConfig.tsx +31 -0
  66. package/src/configs/tabConfig.tsx +0 -0
  67. package/src/configs/tableChartConfig.tsx +81 -0
  68. package/src/configs/themeriverChartConfig.tsx +31 -0
  69. package/src/configs/totalChartConfig.tsx +670 -0
  70. package/src/configs/treeChartConfig.tsx +31 -0
  71. package/src/configs/treemapChartConfig.tsx +31 -0
  72. package/src/controls/AnimationsControls.tsx +3 -0
  73. package/src/controls/AutoHeightControl.tsx +2 -0
  74. package/src/controls/AxisControls.tsx +146 -0
  75. package/src/controls/AxisVisibilityControl.tsx +14 -0
  76. package/src/controls/ChartTypeControl.tsx +15 -0
  77. package/src/controls/ColorScaleControl.tsx +221 -0
  78. package/src/controls/ColumnControl.tsx +204 -0
  79. package/src/controls/ConfigControl.tsx +37 -0
  80. package/src/controls/DirectionControls.tsx +20 -0
  81. package/src/controls/IconControl.tsx +88 -0
  82. package/src/controls/LegendControl.tsx +8 -0
  83. package/src/controls/RowLimitControl.tsx +91 -0
  84. package/src/controls/StyleControls.tsx +22 -0
  85. package/src/controls/TimeControls.tsx +41 -0
  86. package/src/controls/TrendlineControl.tsx +89 -0
  87. package/src/controls/UIEventControl.tsx +21 -0
  88. package/src/controls/index.ts +16 -0
  89. package/src/controls/radioControl.tsx +88 -0
  90. package/src/exposing/index.ts +3 -0
  91. package/src/exposing/setPoint.ts +19 -0
  92. package/src/geo/vn.geo.json +369897 -0
  93. package/src/geo/world.geo.json +32127 -0
  94. package/src/i18n/comps/index.tsx +39 -0
  95. package/src/i18n/comps/locales/en.ts +558 -0
  96. package/src/i18n/comps/locales/enObj.tsx +7186 -0
  97. package/src/i18n/comps/locales/index.ts +7 -0
  98. package/src/i18n/comps/locales/pt.ts +37 -0
  99. package/src/i18n/comps/locales/ptObj.tsx +40 -0
  100. package/src/i18n/comps/locales/types.tsx +622 -0
  101. package/src/i18n/comps/locales/zh.ts +3 -0
  102. package/src/i18n/comps/locales/zhObj.tsx +4 -0
  103. package/src/index.ts +31 -0
  104. package/src/types/global.d.ts +9 -0
  105. package/src/types/lowcoder-sdk.d.ts +578 -0
  106. package/src/utils/chartStyle.util.ts +121 -0
  107. package/src/utils/columnExtractor.util.ts +41 -0
  108. package/src/utils/dataTransform.util.ts +37 -0
  109. package/src/utils/deepEqual.util.ts +29 -0
  110. package/src/utils/echarts.util.tsx +822 -0
  111. package/src/utils/getDataKey.util.ts +115 -0
  112. package/src/utils/getLinearRegression.util.ts +46 -0
  113. package/src/utils/googleMaps.util.ts +28 -0
  114. package/src/utils/isEmpty.util.ts +10 -0
  115. package/src/utils/move.util.ts +6 -0
  116. package/src/utils/selection.util.ts +73 -0
  117. package/src/utils/style.util.ts +315 -0
  118. package/src/utils/time.util.ts +221 -0
  119. package/src/utils/timeFormatter.util.ts +104 -0
  120. package/src/utils/timeProcessing.util.ts +38 -0
  121. package/src/utils/trendline.util.ts +342 -0
  122. package/tsconfig.json +25 -0
  123. package/vite.config.js +19 -0
@@ -0,0 +1,7 @@
1
+ // file examples: en, enGB, zh, zhHK
2
+ // fallback example: current locale is zh-HK, fallback order is zhHK => zh => en
3
+ export * from "./en";
4
+ export * from "./zh";
5
+
6
+ export * from "./enObj";
7
+ export * from "./zhObj";
@@ -0,0 +1,37 @@
1
+ import { en } from "./en";
2
+ export const pt: typeof en = {
3
+ ...en,
4
+ style: {
5
+ textColor: "Cor do Texto",
6
+ contrastText: "Cor de Contraste do Texto",
7
+ accent: "Acento",
8
+ border: "Cor da Borda",
9
+ borderRadius: "Raio da Borda",
10
+ borderWidth: "Grossura da Borda",
11
+ backgroundColor: "Cor de Fundo",
12
+ headerBackground: "Cor do Header",
13
+ footerBackground: "Cor do Footer",
14
+ checkedBackground: "Cor com Seleção",
15
+ uncheckedBackground: "Cor sem Seleção",
16
+ uncheckedBorder: "Borda sem Seleção",
17
+ indicatorBackground: "Cor de Indicação",
18
+ toolbarBackground: "Cor de Fundo da Barra de Informações",
19
+ margin: "Margem",
20
+ padding: "Preenchimento",
21
+ marginLeft: "Margem Esquerda",
22
+ marginRight: "Margem Direita",
23
+ marginTop: "Margem Superior",
24
+ marginBottom: "Margem Inferior",
25
+ minWidth: "Largura Mínima",
26
+ aspectRatio: "Proporção de Tela",
27
+ textSize: "Tamanho do Texto",
28
+ },
29
+ component: {
30
+ data: "Dados Hillchart",
31
+ },
32
+ methods: {
33
+ setPoint: "Definir Ponto",
34
+ invalidInput: "Entrada Inválida",
35
+ requiredField: "{field} é obrigatório",
36
+ },
37
+ };
@@ -0,0 +1,40 @@
1
+ import { I18nObjects } from "./types";
2
+
3
+ export const enObj: I18nObjects = {
4
+ defaultData: [
5
+ {
6
+ id : 1,
7
+ color: 'gray',
8
+ description: 'Validação: Integração do Salesforce',
9
+ x: 25,
10
+ size: 15
11
+ },
12
+ {
13
+ id : 2,
14
+ color: 'maroon',
15
+ description: 'Renovações',
16
+ x: 80,
17
+ size: 10 },
18
+ {
19
+ id : 3,
20
+ color: 'maroon',
21
+ description: 'Rafatoramento: Fancy Pants',
22
+ x: 35,
23
+ size: 10
24
+ },
25
+ {
26
+ id : 4,
27
+ color: 'cyan',
28
+ description: 'Refatoramento: Lighthouse Orbs',
29
+ x: 45,
30
+ size: 10
31
+ },
32
+ {
33
+ id : 5,
34
+ color: 'yellow',
35
+ description: 'Migração e Atualização de Dados',
36
+ x: 50,
37
+ size: 20
38
+ }
39
+ ],
40
+ };
@@ -0,0 +1,622 @@
1
+ import { JSONObject } from "lowcoder-sdk";
2
+
3
+ export type JSONValue =
4
+ | string
5
+ | number
6
+ | boolean
7
+ | JSONObject
8
+ | JSONArray
9
+ | null;
10
+
11
+ export interface I18nObjects {
12
+ defaultDataSource: DefaultDataSource[];
13
+ defaultBarChartOption: DefaultBarChartOption;
14
+ defaultEchartsJsonOption: DefaultEchartsJsonOption;
15
+ defaultFunnelChartOption: DefaultFunnelChartOption;
16
+ defaultGaugeChartOption: DefaultGaugeChartOption;
17
+ defaultStageGaugeChartOption: DefaultStageGaugeChartOption;
18
+ defaultGradeGaugeChartOption: DefaultGradeGaugeChartOption;
19
+ defaultTemperatureGaugeChartOption: DefaultTemperatureGaugeChartOption;
20
+ defaultMultiTitleGaugeChartOption: DefaultMultiTitleGaugeChartOption;
21
+ defaultRingGaugeChartOption: DefaultMultiTitleGaugeChartOption;
22
+ defaultBarometerGaugeChartOption: DefaultBarometerGaugeChartOption;
23
+ defaultClockGaugeChartOption: DefaultClockGaugeChartOption;
24
+ defaultSankeyChartOption: DefaultSankeyChartOption;
25
+ defaultCandleStickChartOption: DefaultCandleStickChartOption;
26
+ defaultRadarChartOption: DefaultRadarChartOption;
27
+ defaultHeatmapChartOption: DefaultHeatmapChartOption;
28
+ defaultGraphChartOption: DefaultGraphChartOption;
29
+ defaultTreeChartOption: DefaultTreeChartOption;
30
+ defaultTreemapChartOption: DefaultTreemapChartOption;
31
+ defaultSunburstChartOption: DefaultSunburstChartOption;
32
+ defaultCalendarChartOption: DefaultCalendarChartOption;
33
+ defaultThemeriverChartOption: DefaultThemeriverChartOption;
34
+ defaultMapJsonOption: DefaultMapJsonOption;
35
+ defaultPieBg: string;
36
+ usaMap: UsaMap;
37
+ defaultDatasourceBoxplot: (number | string | string)[][];
38
+ defaultDatasourceParallel: (number | string | string)[][];
39
+ defaultDatasource3DGlobe: number[][][];
40
+ }
41
+
42
+ interface UsaMap {
43
+ type: string;
44
+ features: Feature[];
45
+ }
46
+
47
+ interface Feature {
48
+ type: string;
49
+ id: string;
50
+ properties: Properties;
51
+ geometry: Geometry;
52
+ }
53
+
54
+ interface Geometry {
55
+ type: string;
56
+ coordinates: (number[] | number)[][][];
57
+ }
58
+
59
+ interface Properties {
60
+ name: string;
61
+ }
62
+
63
+ interface DefaultMapJsonOption {
64
+ tooltip: Tooltip2;
65
+ animation: boolean;
66
+ series: Series4[];
67
+ }
68
+
69
+ interface Series4 {
70
+ name: string;
71
+ type: string;
72
+ coordinateSystem: string;
73
+ itemStyle: ItemStyle2;
74
+ data: Datum15[];
75
+ encode: Encode;
76
+ }
77
+
78
+ interface Encode {
79
+ value: number;
80
+ lng: number;
81
+ lat: number;
82
+ }
83
+
84
+ interface Datum15 {
85
+ name: string;
86
+ value: number[];
87
+ }
88
+
89
+ interface Tooltip2 {
90
+ trigger: string;
91
+ }
92
+
93
+ interface DefaultThemeriverChartOption {
94
+ data: (number | string)[][];
95
+ color: string[];
96
+ }
97
+
98
+ interface DefaultCalendarChartOption {
99
+ data: (number | string)[][];
100
+ }
101
+
102
+ interface DefaultSunburstChartOption {
103
+ data: Datum14[];
104
+ levels: Level[];
105
+ label: Label4;
106
+ radius: string[];
107
+ }
108
+
109
+ interface Label4 {
110
+ show: boolean;
111
+ formatter: string;
112
+ textSize: number;
113
+ color: string;
114
+ }
115
+
116
+ interface Level {
117
+ itemStyle: ItemStyle4;
118
+ }
119
+
120
+ interface ItemStyle4 {
121
+ color: string;
122
+ borderWidth: number;
123
+ borderColor: string;
124
+ }
125
+
126
+ interface Datum14 {
127
+ name: string;
128
+ children: Child5[];
129
+ }
130
+
131
+ interface Child5 {
132
+ name: string;
133
+ value: number;
134
+ children: Child[];
135
+ }
136
+
137
+ interface DefaultTreemapChartOption {
138
+ data: Datum13[];
139
+ label: Label3;
140
+ itemStyle: ItemStyle3;
141
+ breadcrumb: Label;
142
+ roam: boolean;
143
+ }
144
+
145
+ interface ItemStyle3 {
146
+ borderColor: string;
147
+ borderWidth: number;
148
+ gapWidth: number;
149
+ }
150
+
151
+ interface Label3 {
152
+ show: boolean;
153
+ formatter: string;
154
+ textSize: number;
155
+ color: string;
156
+ position: string;
157
+ }
158
+
159
+ interface Datum13 {
160
+ name: string;
161
+ value: number;
162
+ children: Child4[];
163
+ }
164
+
165
+ interface Child4 {
166
+ name: string;
167
+ value: number;
168
+ itemStyle: ItemStyle2;
169
+ children: Child3[];
170
+ }
171
+
172
+ interface Child3 {
173
+ name: string;
174
+ value: number;
175
+ itemStyle: ItemStyle2;
176
+ }
177
+
178
+ interface DefaultTreeChartOption {
179
+ data: Datum12[];
180
+ pointColor: string;
181
+ lineColor: string;
182
+ label: Label2;
183
+ emphasis: Emphasis;
184
+ expandAndCollapse: boolean;
185
+ initialTreeDepth: number;
186
+ layout: string;
187
+ orient: string;
188
+ symbolSize: number;
189
+ }
190
+
191
+ interface Label2 {
192
+ show: boolean;
193
+ position: string;
194
+ distance: number;
195
+ textSize: number;
196
+ color: string;
197
+ }
198
+
199
+ interface Datum12 {
200
+ name: string;
201
+ children: Child2[];
202
+ }
203
+
204
+ interface Child2 {
205
+ name: string;
206
+ children: Child[];
207
+ }
208
+
209
+ interface Child {
210
+ name: string;
211
+ value: number;
212
+ }
213
+
214
+ interface DefaultGraphChartOption {
215
+ color: Color;
216
+ categories: Category[];
217
+ nodes: Node[];
218
+ links: Link2[];
219
+ }
220
+
221
+ interface Link2 {
222
+ source: string;
223
+ target: string;
224
+ value: number;
225
+ lineStyle: LineStyle;
226
+ }
227
+
228
+ interface LineStyle {
229
+ width: number;
230
+ }
231
+
232
+ interface Node {
233
+ id: string;
234
+ name: string;
235
+ value: number;
236
+ category: number;
237
+ symbolSize: number;
238
+ }
239
+
240
+ interface Category {
241
+ name: string;
242
+ itemStyle: ItemStyle2;
243
+ }
244
+
245
+ interface ItemStyle2 {
246
+ color: string;
247
+ }
248
+
249
+ interface Color {
250
+ pointColor: string;
251
+ lineColor: string;
252
+ }
253
+
254
+ interface DefaultHeatmapChartOption {
255
+ xAxis: string[];
256
+ yAxis: string[];
257
+ color: string[];
258
+ data: number[][];
259
+ }
260
+
261
+ interface DefaultRadarChartOption {
262
+ color: string[];
263
+ indicator: Indicator[];
264
+ series: Series3[];
265
+ }
266
+
267
+ interface Series3 {
268
+ name: string;
269
+ value: number[];
270
+ areaColor?: string;
271
+ lineColor?: string;
272
+ lineWidth?: number;
273
+ pointSize?: number;
274
+ pointColor?: string;
275
+ }
276
+
277
+ interface Indicator {
278
+ name: string;
279
+ max: number;
280
+ }
281
+
282
+ interface DefaultCandleStickChartOption {
283
+ xAxis: XAxis3;
284
+ axisColor: string[];
285
+ data: number[][];
286
+ itemStyle: ItemStyle;
287
+ }
288
+
289
+ interface ItemStyle {
290
+ color: string;
291
+ color0: string;
292
+ borderColor: string;
293
+ borderColor0: string;
294
+ }
295
+
296
+ interface XAxis3 {
297
+ data: string[];
298
+ }
299
+
300
+ interface DefaultSankeyChartOption {
301
+ data: Datum11[];
302
+ links: Link[];
303
+ }
304
+
305
+ interface Link {
306
+ source: string;
307
+ target: string;
308
+ value: number;
309
+ }
310
+
311
+ interface Datum11 {
312
+ name: string;
313
+ color: string;
314
+ }
315
+
316
+ interface DefaultClockGaugeChartOption {
317
+ data: Datum10[];
318
+ }
319
+
320
+ interface Datum10 {
321
+ outlineColor: string;
322
+ anchor: Anchor;
323
+ hour: Hour;
324
+ minute: Hour;
325
+ second: Hour;
326
+ }
327
+
328
+ interface Hour {
329
+ color: string;
330
+ width: number;
331
+ length: number;
332
+ value: number;
333
+ }
334
+
335
+ interface Anchor {
336
+ color: string;
337
+ size: number;
338
+ }
339
+
340
+ interface DefaultBarometerGaugeChartOption {
341
+ data: Datum9[];
342
+ }
343
+
344
+ interface Datum9 {
345
+ formatter: string;
346
+ value: number;
347
+ name: string;
348
+ outline: Outline;
349
+ inline: Outline;
350
+ }
351
+
352
+ interface Outline {
353
+ color: string;
354
+ period: number[];
355
+ splitNumber: number;
356
+ progressBarWidth: number;
357
+ axisTickLength: number;
358
+ axisTickWidth: number;
359
+ radius: string;
360
+ }
361
+
362
+ interface DefaultMultiTitleGaugeChartOption {
363
+ data: Datum8[];
364
+ }
365
+
366
+ interface Datum8 {
367
+ formatter: string;
368
+ value: Value[];
369
+ }
370
+
371
+ interface Value {
372
+ color: string;
373
+ title: string;
374
+ value: number;
375
+ titlePosition: string[];
376
+ valuePosition: string[];
377
+ }
378
+
379
+ interface DefaultTemperatureGaugeChartOption {
380
+ data: Datum7[];
381
+ }
382
+
383
+ interface Datum7 {
384
+ value: number;
385
+ color: string;
386
+ borderColor: string;
387
+ formatter: string;
388
+ }
389
+
390
+ interface DefaultGradeGaugeChartOption {
391
+ data: Datum6[];
392
+ }
393
+
394
+ interface Datum6 {
395
+ value: number;
396
+ name: string;
397
+ formatter: string;
398
+ color: (number | string)[][];
399
+ }
400
+
401
+ interface DefaultStageGaugeChartOption {
402
+ data: Datum5[];
403
+ }
404
+
405
+ interface Datum5 {
406
+ value: number;
407
+ formatter: string;
408
+ color: (number | string)[][];
409
+ }
410
+
411
+ interface DefaultGaugeChartOption {
412
+ data: Datum4[];
413
+ }
414
+
415
+ interface Datum4 {
416
+ value: number;
417
+ name: string;
418
+ color: string;
419
+ formatter: string;
420
+ }
421
+
422
+ interface DefaultFunnelChartOption {
423
+ data: Datum3[];
424
+ }
425
+
426
+ interface Datum3 {
427
+ value: number;
428
+ name: string;
429
+ color: string;
430
+ }
431
+
432
+ interface DefaultEchartsJsonOption {
433
+ backgroundColor: string;
434
+ title: Title;
435
+ tooltip: Tooltip;
436
+ legend: Legend;
437
+ grid: Grid;
438
+ xAxis: XAxis2;
439
+ yAxis: YAxis2;
440
+ dataZoom: DataZoom[];
441
+ series: Series2[];
442
+ graphic: Graphic[];
443
+ }
444
+
445
+ interface Graphic {
446
+ type: string;
447
+ left: string;
448
+ top: string;
449
+ z: number;
450
+ style: Style;
451
+ }
452
+
453
+ interface Style {
454
+ text: string;
455
+ textSize: number;
456
+ fill: string;
457
+ }
458
+
459
+ interface Series2 {
460
+ name: string;
461
+ type: string;
462
+ stack: string;
463
+ color: string;
464
+ labelLayout: LabelLayout;
465
+ label: Label;
466
+ emphasis: Emphasis;
467
+ data: Datum2[];
468
+ }
469
+
470
+ interface Datum2 {
471
+ value: null | number;
472
+ }
473
+
474
+ interface Emphasis {
475
+ focus: string;
476
+ }
477
+
478
+ interface Label {
479
+ show: boolean;
480
+ }
481
+
482
+ interface LabelLayout {
483
+ hideOverlap: boolean;
484
+ }
485
+
486
+ interface DataZoom {
487
+ show?: boolean;
488
+ type: string;
489
+ yAxisIndex: number;
490
+ start?: number;
491
+ end?: number;
492
+ width?: number;
493
+ backgroundColor?: string;
494
+ fillerColor?: string;
495
+ handleSize?: string;
496
+ handleStyle?: HandleStyle;
497
+ textStyle?: TextStyle4;
498
+ zoomLock: boolean;
499
+ }
500
+
501
+ interface TextStyle4 {
502
+ opacity: number;
503
+ }
504
+
505
+ interface HandleStyle {
506
+ color: string;
507
+ borderColor: string;
508
+ }
509
+
510
+ interface YAxis2 {
511
+ type: string;
512
+ inverse: boolean;
513
+ data: Datum[];
514
+ axisLabel: AxisLabel2;
515
+ show: boolean;
516
+ }
517
+
518
+ interface AxisLabel2 {
519
+ interval: number;
520
+ hideOverLap: boolean;
521
+ overflow: string;
522
+ width: number;
523
+ align: string;
524
+ margin: number;
525
+ textStyle: TextStyle3;
526
+ }
527
+
528
+ interface TextStyle3 {
529
+ fontFamily: string;
530
+ lineHeight: number;
531
+ whiteSpace: string;
532
+ color: string;
533
+ }
534
+
535
+ interface Datum {
536
+ value: string;
537
+ }
538
+
539
+ interface XAxis2 {
540
+ type: string;
541
+ axisLabel: AxisLabel;
542
+ }
543
+
544
+ interface AxisLabel {
545
+ formatter: string;
546
+ }
547
+
548
+ interface Grid {
549
+ top: string;
550
+ left: number;
551
+ right: string;
552
+ bottom: string;
553
+ containLabel: boolean;
554
+ }
555
+
556
+ interface Legend {
557
+ left: string;
558
+ top: string;
559
+ itemWidth: number;
560
+ itemHeight: number;
561
+ itemGap: number;
562
+ show: boolean;
563
+ textStyle: TextStyle2;
564
+ }
565
+
566
+ interface TextStyle2 {
567
+ textSize: number;
568
+ fontFamily: string;
569
+ }
570
+
571
+ interface Tooltip {
572
+ trigger: string;
573
+ confine: boolean;
574
+ className: string;
575
+ axisPointer: YAxis;
576
+ }
577
+
578
+ interface Title {
579
+ text: string;
580
+ top: number;
581
+ left: string;
582
+ textStyle: TextStyle;
583
+ }
584
+
585
+ interface TextStyle {
586
+ fontFamily: string;
587
+ textSize: string;
588
+ width: number;
589
+ overflow: string;
590
+ fontWeight: number;
591
+ }
592
+
593
+ interface DefaultBarChartOption {
594
+ xAxis: XAxis;
595
+ yAxis: YAxis;
596
+ series: Series[];
597
+ barWidth: number;
598
+ barBg: string;
599
+ }
600
+
601
+ interface Series {
602
+ data: number[];
603
+ type: string;
604
+ }
605
+
606
+ interface YAxis {
607
+ type: string;
608
+ }
609
+
610
+ interface XAxis {
611
+ type: string;
612
+ data: string[];
613
+ }
614
+
615
+ interface DefaultDataSource {
616
+ date: string;
617
+ department: string;
618
+ spending: number;
619
+ budget: number;
620
+ }
621
+
622
+ export type JSONArray = Array<JSONValue>;
@@ -0,0 +1,3 @@
1
+ export const zh = {
2
+
3
+ };
@@ -0,0 +1,4 @@
1
+ import { I18nObjects } from "./types";
2
+
3
+ export const zhObj: I18nObjects | undefined = undefined;
4
+