dtable-statistic 4.2.2 → 4.3.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/es/api/dtable-db-api.js +31 -37
- package/es/calculator/base-calculator.js +49 -99
- package/es/calculator/basic-chart-calculator.js +335 -559
- package/es/calculator/combination-calculator.js +231 -299
- package/es/calculator/compare-bar-calculator.js +184 -281
- package/es/calculator/completeness-calculator.js +203 -288
- package/es/calculator/copy-value.js +18 -18
- package/es/calculator/dashboard-calculator.js +68 -137
- package/es/calculator/heat-map-calculator.js +139 -220
- package/es/calculator/horizontal-bar-calculator.js +64 -93
- package/es/calculator/index.js +53 -69
- package/es/calculator/map-calculator.js +98 -174
- package/es/calculator/mirror-calculator.js +137 -216
- package/es/calculator/number-card-calculator.js +58 -126
- package/es/calculator/pivot-table-calculator.js +750 -792
- package/es/calculator/scatter-calculator.js +72 -140
- package/es/calculator/thread-manager.js +48 -67
- package/es/calculator/trend-calculator.js +107 -191
- package/es/calculator/workers/basic-chart-calculator-worker.js +194 -165
- package/es/calculator/workers/calculator.worker.js +22 -6
- package/es/calculator/workers/card-calculator-worker.js +16 -14
- package/es/calculator/workers/combination-calculator-worker.js +128 -135
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +80 -96
- package/es/calculator/workers/completeness-calculator-worker.js +56 -49
- package/es/calculator/workers/dashboard-calculator-worker.js +24 -22
- package/es/calculator/workers/mirror-calculator-worker.js +52 -52
- package/es/calculator/workers/pivot-table-calculator-worker.js +247 -230
- package/es/calculator/workers/scatter-calculator-worker.js +34 -32
- package/es/calculator/workers/trend-calculator-worker.js +33 -29
- package/es/calculator/world-map-calculator.js +120 -197
- package/es/components/common-add-tool.js +7 -5
- package/es/components/dialog/chart-addition-edit-dialog.js +67 -77
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +57 -67
- package/es/components/dialog/color-theme-dialog.js +34 -47
- package/es/components/dialog/delete-confirmation-dialog.js +7 -5
- package/es/components/dialog/enlarged-chart-dialog.js +68 -81
- package/es/components/dialog/new-table-dialog.js +62 -80
- package/es/components/dialog/new-view-dialog.js +50 -62
- package/es/components/dialog/rename-view-dialog.js +49 -58
- package/es/components/dialog/statistic-record-dialog/index.js +233 -231
- package/es/components/dialog/statistic-types-dialog/index.js +40 -49
- package/es/components/dialog/table-select-dialog.js +61 -70
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +129 -142
- package/es/components/dtable-popover.js +62 -81
- package/es/components/dtable-search-input.js +89 -99
- package/es/components/dtable-select.js +55 -74
- package/es/components/icon.js +5 -3
- package/es/components/loading.js +1 -1
- package/es/components/modal-portal.js +15 -32
- package/es/components/popover/color-rules/color-rule.js +137 -141
- package/es/components/popover/color-rules/index.js +58 -66
- package/es/components/popover/color-rules/rule-filters/filter.js +124 -124
- package/es/components/popover/color-rules/rule-filters/index.js +50 -58
- package/es/components/popover/color-rules/rule-filters/number-input.js +42 -57
- package/es/components/popover/color-rules-popover.js +117 -121
- package/es/components/popover/color-selector-popover.js +60 -70
- package/es/components/seatable-radio/index.js +2 -2
- package/es/components/select/option-group.js +139 -157
- package/es/components/select/option.js +26 -40
- package/es/components/select/select.js +97 -112
- package/es/components/toast/alert.js +65 -80
- package/es/components/toast/index.js +1 -1
- package/es/components/toast/toast.js +76 -103
- package/es/components/toast/toastManager.js +57 -93
- package/es/components/toast/toaster.js +58 -56
- package/es/constants/color-rules.js +8 -5
- package/es/constants/dtable-select-style.js +44 -48
- package/es/constants/event-types.js +4 -4
- package/es/constants/index.js +328 -242
- package/es/constants/map.js +2 -2
- package/es/constants/model.js +20 -20
- package/es/constants/regions.js +1 -1
- package/es/constants/zIndexes.js +1 -1
- package/es/custom-g2.js +11 -11
- package/es/dashboard.js +343 -333
- package/es/desktop-dashboard.js +217 -224
- package/es/index.js +45 -58
- package/es/locale/index.js +3 -3
- package/es/locale/lang/de.js +1 -1
- package/es/locale/lang/en.js +7 -7
- package/es/locale/lang/fr.js +1 -1
- package/es/locale/lang/zh_CN.js +1 -1
- package/es/mobile-dashboard.js +76 -89
- package/es/model/bar-group.js +34 -44
- package/es/model/bar.js +26 -36
- package/es/model/base-model.js +11 -12
- package/es/model/basic-number-card.js +10 -20
- package/es/model/collaborators.js +10 -11
- package/es/model/combination.js +32 -42
- package/es/model/compare-bar.js +30 -40
- package/es/model/completeness-group.js +19 -29
- package/es/model/completeness.js +14 -24
- package/es/model/custom-bar.js +14 -24
- package/es/model/dashboard.js +9 -19
- package/es/model/generic-model.js +187 -197
- package/es/model/heat-map.js +16 -26
- package/es/model/horizontal-bar-group.js +32 -42
- package/es/model/horizontal-bar.js +26 -36
- package/es/model/index.js +31 -3
- package/es/model/map.js +20 -30
- package/es/model/mirror.js +15 -25
- package/es/model/pie.js +21 -31
- package/es/model/ring.js +23 -33
- package/es/model/scatter.js +11 -21
- package/es/model/statistic-dashboard.js +7 -8
- package/es/model/table.js +19 -29
- package/es/model/trend.js +15 -25
- package/es/model/world-map.js +17 -27
- package/es/service/chart-service.js +69 -65
- package/es/service/dashboard-service.js +421 -419
- package/es/service/map-json.js +112 -132
- package/es/stat-editor/chart-name-editor.js +44 -58
- package/es/stat-editor/index.js +59 -70
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +93 -98
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +246 -248
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +127 -126
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +5 -3
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +78 -90
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +146 -150
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +88 -98
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +100 -118
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +161 -148
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +58 -66
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +58 -60
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +152 -148
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +101 -105
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +81 -91
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +110 -122
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +101 -113
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +130 -120
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +88 -102
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +88 -102
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +200 -194
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +98 -110
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +106 -118
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +212 -223
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +109 -119
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +329 -319
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +82 -90
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +58 -65
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +126 -116
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +201 -182
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +79 -79
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +196 -175
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +35 -50
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +180 -147
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +31 -40
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +56 -67
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +60 -69
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +165 -158
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +61 -74
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +199 -193
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +25 -38
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +79 -86
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +138 -120
- package/es/stat-editor/stat-settings/map/map-level.js +31 -43
- package/es/stat-editor/stat-settings/map/map-province-city.js +82 -83
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +48 -50
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +96 -96
- package/es/stat-editor/stat-settings/public-setting/calender.js +69 -75
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +5 -3
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +36 -41
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +37 -41
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +25 -38
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +40 -52
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +90 -93
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +23 -36
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.js +39 -44
- package/es/stat-list/chart-preview.js +85 -98
- package/es/stat-list/index.js +170 -178
- package/es/stat-view/area-chart.js +282 -274
- package/es/stat-view/bar-chart.js +300 -292
- package/es/stat-view/base-chart.js +58 -52
- package/es/stat-view/basic-number-card.js +115 -168
- package/es/stat-view/combination-chart.js +298 -334
- package/es/stat-view/compare-chart.js +256 -254
- package/es/stat-view/completeness-chart.js +194 -206
- package/es/stat-view/custom-bar.js +221 -223
- package/es/stat-view/dashboard-chart.js +122 -180
- package/es/stat-view/heat-map.js +268 -294
- package/es/stat-view/horizontal-bar-chart.js +291 -281
- package/es/stat-view/index.js +136 -152
- package/es/stat-view/line-chart.js +267 -265
- package/es/stat-view/map.js +246 -246
- package/es/stat-view/mirror.js +141 -152
- package/es/stat-view/pie-chart.js +143 -156
- package/es/stat-view/pivot-table/index.js +113 -118
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +104 -102
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +116 -118
- package/es/stat-view/pivot-table/pivot-table-display-name.js +96 -95
- package/es/stat-view/pivot-table/two-dimension-table.js +238 -229
- package/es/stat-view/ring-chart.js +189 -200
- package/es/stat-view/scatter-chart.js +162 -213
- package/es/stat-view/treemap-chart.js +136 -200
- package/es/stat-view/trend-chart.js +137 -183
- package/es/stat-view/world-map.js +233 -243
- package/es/tabs/index.js +164 -169
- package/es/tabs/tab.js +101 -116
- package/es/utils/basic-chart-utils.js +7 -9
- package/es/utils/cell-format.js +48 -51
- package/es/utils/cell-value.js +1 -1
- package/es/utils/collaborator.js +15 -14
- package/es/utils/color-utils.js +48 -37
- package/es/utils/column-utils.js +47 -33
- package/es/utils/column.js +1 -1
- package/es/utils/common-utils.js +111 -117
- package/es/utils/date-format.js +17 -17
- package/es/utils/export-table-utils.js +507 -396
- package/es/utils/index.js +6 -6
- package/es/utils/map.js +30 -34
- package/es/utils/model.js +3 -5
- package/es/utils/object.js +4 -4
- package/es/utils/pivot-table.js +20 -20
- package/es/utils/row-utils.js +41 -33
- package/es/utils/search.js +18 -20
- package/es/utils/sql-utils.js +132 -98
- package/es/utils/stat-utils.js +303 -320
- package/es/utils/trend-utils.js +57 -67
- package/package.json +2 -2
package/es/constants/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
var _INIT_STAT_ITEM, _MULTIPLE_CELL_VALUE_, _STAT_ITEM_THEME_COLO, _DATA_SORT_TYPE_LABEL, _TYPE_DISPLAY_COLOR_U, _STATISTIC_TYPE_SHOW;
|
|
3
1
|
import { CellType } from 'dtable-store';
|
|
4
2
|
import KeyCodes from './key-codes';
|
|
5
3
|
import { MenuSelectStyle, UserSelectStyle } from './dtable-select-style';
|
|
6
4
|
import * as CommonEventTypes from './event-types';
|
|
7
5
|
export { CommonEventTypes, KeyCodes, MenuSelectStyle, UserSelectStyle };
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export const KEY_SELECTED_DASHBOARD = 'statistics-selected-dashboard';
|
|
7
|
+
export const DASHBOARD_ACTION_TYPE = {
|
|
10
8
|
MODIFY_COLOR_THEME: 'modify_color_theme',
|
|
11
9
|
ADD_DASHBOARD: 'add_dashboard',
|
|
12
10
|
RENAME_DASHBOARD: 'rename_dashboard',
|
|
@@ -18,7 +16,7 @@ export var DASHBOARD_ACTION_TYPE = {
|
|
|
18
16
|
MOVE_CHART_TO_VIEW: 'move_chart_to_view',
|
|
19
17
|
DELETE_CHART: 'delete_chart'
|
|
20
18
|
};
|
|
21
|
-
export
|
|
19
|
+
export const STAT_TYPE = {
|
|
22
20
|
MAP: 'map',
|
|
23
21
|
MAP_BUBBLE: 'map_bubble',
|
|
24
22
|
HEAT_MAP: 'heat_map',
|
|
@@ -49,12 +47,12 @@ export var STAT_TYPE = {
|
|
|
49
47
|
PIVOT_TABLE: 'pivot_table',
|
|
50
48
|
CUSTOM_BAR: 'custom_bar'
|
|
51
49
|
};
|
|
52
|
-
export
|
|
53
|
-
export
|
|
50
|
+
export const BASIC_STAT_TYPES = [STAT_TYPE.BAR, STAT_TYPE.BAR_GROUP, STAT_TYPE.BAR_STACK, STAT_TYPE.LINE, STAT_TYPE.GROUP_LINE, STAT_TYPE.PIE, STAT_TYPE.RING, STAT_TYPE.SCATTER, STAT_TYPE.HORIZONTAL_BAR, STAT_TYPE.HORIZONTAL_GROUP_BAR, STAT_TYPE.STACKED_HORIZONTAL_BAR, STAT_TYPE.AREA_CHART, STAT_TYPE.AREA_GROUP_CHART, STAT_TYPE.COMPARE_BAR, STAT_TYPE.COMPLETENESS_CHART, STAT_TYPE.GROUP_COMPLETENESS_CHART, STAT_TYPE.TREEMAP, STAT_TYPE.PIVOT_TABLE, STAT_TYPE.CUSTOM_BAR];
|
|
51
|
+
export const SUMMARY_TYPE = {
|
|
54
52
|
COUNT: 'count',
|
|
55
53
|
ADVANCED: 'advanced'
|
|
56
54
|
};
|
|
57
|
-
export
|
|
55
|
+
export const STATISTICS_COUNT_SHOW = {
|
|
58
56
|
Max: 'Max',
|
|
59
57
|
Mean: 'Mean',
|
|
60
58
|
Min: 'Min',
|
|
@@ -72,7 +70,7 @@ export var STATISTICS_COUNT_SHOW = {
|
|
|
72
70
|
quarter: 'By_quarter',
|
|
73
71
|
year: 'By_year'
|
|
74
72
|
};
|
|
75
|
-
export
|
|
73
|
+
export const STATISTICS_COUNT_TYPE = {
|
|
76
74
|
COUNT: 'count',
|
|
77
75
|
ADVANCED: 'advanced',
|
|
78
76
|
DISTRICT: 'district',
|
|
@@ -88,7 +86,7 @@ export var STATISTICS_COUNT_TYPE = {
|
|
|
88
86
|
QUARTER: 'quarter',
|
|
89
87
|
YEAR: 'year'
|
|
90
88
|
};
|
|
91
|
-
export
|
|
89
|
+
export const SUMMARY_METHOD_MAP = {
|
|
92
90
|
Sum: 'Sum',
|
|
93
91
|
Max: 'Max',
|
|
94
92
|
Min: 'Min',
|
|
@@ -96,8 +94,8 @@ export var SUMMARY_METHOD_MAP = {
|
|
|
96
94
|
Distinct_values: 'Distinct_values',
|
|
97
95
|
Row_count: 'Row_count'
|
|
98
96
|
};
|
|
99
|
-
export
|
|
100
|
-
export
|
|
97
|
+
export const SUMMARY_METHOD = [SUMMARY_METHOD_MAP.Sum, SUMMARY_METHOD_MAP.Max, SUMMARY_METHOD_MAP.Min, SUMMARY_METHOD_MAP.Mean, SUMMARY_METHOD_MAP.Distinct_values];
|
|
98
|
+
export const MONTH_MIRROR = {
|
|
101
99
|
'0': 'Jan',
|
|
102
100
|
'1': 'Feb',
|
|
103
101
|
'2': 'Mar',
|
|
@@ -111,199 +109,228 @@ export var MONTH_MIRROR = {
|
|
|
111
109
|
'10': 'Nov',
|
|
112
110
|
'11': 'Dec'
|
|
113
111
|
};
|
|
114
|
-
export
|
|
115
|
-
export
|
|
116
|
-
export
|
|
117
|
-
export
|
|
112
|
+
export const TIME_COLUMN_LIST = [CellType.CTIME, CellType.MTIME, CellType.DATE];
|
|
113
|
+
export const MIRROR_COLUMN_LIST = [CellType.TEXT, CellType.NUMBER, CellType.CTIME, CellType.MTIME, CellType.DATE, CellType.COLLABORATOR, CellType.AUTO_NUMBER, CellType.FORMULA, CellType.GEOLOCATION, CellType.URL, CellType.SINGLE_SELECT, CellType.LINK, CellType.CREATOR, CellType.LAST_MODIFIER, CellType.DURATION, CellType.EMAIL];
|
|
114
|
+
export const BASIC_CHART_COLUMN_LIST = [CellType.DATE, CellType.SINGLE_SELECT, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR, CellType.TEXT, CellType.NUMBER, CellType.FORMULA, CellType.GEOLOCATION, CellType.LINK, CellType.CTIME, CellType.MTIME, CellType.CREATOR, CellType.LAST_MODIFIER, CellType.RATE, CellType.LINK_FORMULA, CellType.CHECKBOX];
|
|
115
|
+
export const GEOLOCATION_GRANULARITY = {
|
|
118
116
|
PROVINCE: 'province',
|
|
119
117
|
CITY: 'city',
|
|
120
118
|
DISTRICT: 'district'
|
|
121
119
|
};
|
|
122
|
-
export
|
|
123
|
-
export
|
|
120
|
+
export const GEOLOCATION_GRANULARITY_LIST = [GEOLOCATION_GRANULARITY.PROVINCE, GEOLOCATION_GRANULARITY.CITY, GEOLOCATION_GRANULARITY.DISTRICT];
|
|
121
|
+
export const DATE_GRANULARITY = {
|
|
124
122
|
DAY: 'day',
|
|
125
123
|
WEEK: 'week',
|
|
126
124
|
MONTH: 'month',
|
|
127
125
|
QUARTER: 'quarter',
|
|
128
126
|
YEAR: 'year'
|
|
129
127
|
};
|
|
130
|
-
export
|
|
131
|
-
export
|
|
132
|
-
export
|
|
128
|
+
export const DATE_GRANULARITY_LIST = [DATE_GRANULARITY.DAY, DATE_GRANULARITY.WEEK, DATE_GRANULARITY.MONTH, DATE_GRANULARITY.QUARTER, DATE_GRANULARITY.YEAR];
|
|
129
|
+
export const LABEL_COLORS = ['#2a67d1', '#4ecccb', '#59cb74', '#fbd44a', '#f4667c', '#9860e5', '#9f8cf1', '#dc82d2', '#eaa775', '#addf84', '#85e0be', '#89d2ea'];
|
|
130
|
+
export const GROUPBY_TYPE = {
|
|
133
131
|
ROW: 'row',
|
|
134
132
|
COLUMN: 'column'
|
|
135
133
|
};
|
|
136
|
-
export
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
134
|
+
export const INIT_STAT_ITEM = {
|
|
135
|
+
[STAT_TYPE.MAP]: {
|
|
136
|
+
geo_column: null,
|
|
137
|
+
geolocation_granularity: null,
|
|
138
|
+
summary_method: null,
|
|
139
|
+
summary_column: null,
|
|
140
|
+
summary_type: SUMMARY_TYPE.COUNT
|
|
141
|
+
},
|
|
142
|
+
[STAT_TYPE.WORLD_MAP]: {
|
|
143
|
+
column: null,
|
|
144
|
+
summary_method: null,
|
|
145
|
+
summary_column: null,
|
|
146
|
+
summary_type: SUMMARY_TYPE.COUNT
|
|
147
|
+
},
|
|
148
|
+
[STAT_TYPE.MAP_BUBBLE]: {
|
|
149
|
+
geo_column: null,
|
|
150
|
+
geolocation_granularity: null,
|
|
151
|
+
summary_method: null,
|
|
152
|
+
summary_column: null,
|
|
153
|
+
summary_type: SUMMARY_TYPE.COUNT
|
|
154
|
+
},
|
|
155
|
+
[STAT_TYPE.WORLD_MAP_BUBBLE]: {
|
|
156
|
+
column: null,
|
|
157
|
+
summary_method: null,
|
|
158
|
+
summary_column: null,
|
|
159
|
+
summary_type: SUMMARY_TYPE.COUNT
|
|
160
|
+
},
|
|
161
|
+
[STAT_TYPE.HEAT_MAP]: {
|
|
162
|
+
time_column: null,
|
|
163
|
+
summary_method: null,
|
|
164
|
+
summary_column: null,
|
|
165
|
+
summary_type: SUMMARY_TYPE.COUNT
|
|
166
|
+
},
|
|
167
|
+
[STAT_TYPE.MIRROR]: {
|
|
168
|
+
column: null,
|
|
169
|
+
is_transpose: false,
|
|
170
|
+
group_column: null,
|
|
171
|
+
summary_method: null,
|
|
172
|
+
summary_column: null,
|
|
173
|
+
summary_type: SUMMARY_TYPE.COUNT
|
|
174
|
+
},
|
|
175
|
+
[STAT_TYPE.BAR]: {
|
|
176
|
+
x_axis_column_key: null,
|
|
177
|
+
y_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
178
|
+
show_x_axis_label: false,
|
|
179
|
+
show_y_axis_label: false
|
|
180
|
+
},
|
|
181
|
+
[STAT_TYPE.COMPARE_BAR]: {
|
|
182
|
+
x_axis_column_key: null,
|
|
183
|
+
y_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
184
|
+
show_x_axis_label: false,
|
|
185
|
+
show_y_axis_label: false
|
|
186
|
+
},
|
|
187
|
+
[STAT_TYPE.BAR_GROUP]: {
|
|
188
|
+
x_axis_column_key: null,
|
|
189
|
+
y_axis_summary_type: 'count',
|
|
190
|
+
column_groupby_column_key: null,
|
|
191
|
+
column_groupby_numeric_columns: null,
|
|
192
|
+
column_groupby_multiple_numeric_column: false
|
|
193
|
+
},
|
|
194
|
+
[STAT_TYPE.BAR_STACK]: {
|
|
195
|
+
x_axis_column_key: null,
|
|
196
|
+
y_axis_summary_type: 'count',
|
|
197
|
+
x_axis_date_granularity: null,
|
|
198
|
+
x_axis_geolocation_granularity: null,
|
|
199
|
+
column_groupby_column_key: null,
|
|
200
|
+
column_groupby_multiple_numeric_column: false,
|
|
201
|
+
column_groupby_numeric_columns: null
|
|
202
|
+
},
|
|
203
|
+
[STAT_TYPE.HORIZONTAL_BAR]: {
|
|
204
|
+
vertical_axis_column_key: null,
|
|
205
|
+
horizontal_axis_column_key: null,
|
|
206
|
+
horizontal_axis_summary_method: null,
|
|
207
|
+
horizontal_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
208
|
+
show_vertical_axis_label: false,
|
|
209
|
+
show_horizontal_axis_label: false
|
|
210
|
+
},
|
|
211
|
+
[STAT_TYPE.HORIZONTAL_GROUP_BAR]: {
|
|
212
|
+
vertical_axis_column_key: null,
|
|
213
|
+
horizontal_axis_column_key: null,
|
|
214
|
+
horizontal_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
215
|
+
horizontal_axis_summary_method: null,
|
|
216
|
+
vertical_axis_date_granularity: null,
|
|
217
|
+
vertical_axis_geolocation_granularity: null,
|
|
218
|
+
column_groupby_column_key: null,
|
|
219
|
+
column_groupby_numeric_columns: null,
|
|
220
|
+
column_groupby_multiple_numeric_column: false
|
|
221
|
+
},
|
|
222
|
+
[STAT_TYPE.STACKED_HORIZONTAL_BAR]: {
|
|
223
|
+
vertical_axis_column_key: null,
|
|
224
|
+
horizontal_axis_column_key: null,
|
|
225
|
+
horizontal_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
226
|
+
horizontal_axis_summary_method: null,
|
|
227
|
+
vertical_axis_date_granularity: null,
|
|
228
|
+
vertical_axis_geolocation_granularity: null,
|
|
229
|
+
column_groupby_column_key: null,
|
|
230
|
+
column_groupby_numeric_columns: null,
|
|
231
|
+
column_groupby_multiple_numeric_column: false
|
|
232
|
+
},
|
|
233
|
+
[STAT_TYPE.LINE]: {
|
|
234
|
+
x_axis_column_key: null,
|
|
235
|
+
y_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
236
|
+
show_x_axis_label: false,
|
|
237
|
+
show_y_axis_label: false
|
|
238
|
+
},
|
|
239
|
+
[STAT_TYPE.GROUP_LINE]: {
|
|
240
|
+
x_axis_column_key: null,
|
|
241
|
+
y_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
242
|
+
column_groupby_column_key: null,
|
|
243
|
+
column_groupby_numeric_columns: null,
|
|
244
|
+
column_groupby_multiple_numeric_column: false
|
|
245
|
+
},
|
|
246
|
+
[STAT_TYPE.PIE]: {
|
|
247
|
+
groupby_column_key: null,
|
|
248
|
+
summary_type: SUMMARY_TYPE.COUNT,
|
|
249
|
+
groupby_date_granularity: null,
|
|
250
|
+
groupby_geolocation_granularity: null
|
|
251
|
+
},
|
|
252
|
+
[STAT_TYPE.RING]: {
|
|
253
|
+
groupby_column_key: null,
|
|
254
|
+
summary_type: SUMMARY_TYPE.COUNT,
|
|
255
|
+
groupby_date_granularity: null,
|
|
256
|
+
groupby_geolocation_granularity: null
|
|
257
|
+
},
|
|
258
|
+
[STAT_TYPE.TREEMAP]: {
|
|
259
|
+
groupby_column_key: null,
|
|
260
|
+
summary_type: SUMMARY_TYPE.COUNT,
|
|
261
|
+
groupby_date_granularity: null,
|
|
262
|
+
groupby_geolocation_granularity: null
|
|
263
|
+
},
|
|
264
|
+
[STAT_TYPE.SCATTER]: {
|
|
265
|
+
x_axis_column: null,
|
|
266
|
+
y_axis_column: null,
|
|
267
|
+
group_column: null,
|
|
268
|
+
show_x_axis_label: false,
|
|
269
|
+
show_y_axis_label: false
|
|
270
|
+
},
|
|
271
|
+
[STAT_TYPE.BASIC_NUMBER_CARD]: {
|
|
272
|
+
numeric_column: null,
|
|
273
|
+
summary_method: SUMMARY_METHOD_MAP.Row_count
|
|
274
|
+
},
|
|
275
|
+
[STAT_TYPE.COMBINATION_CHART]: {
|
|
276
|
+
x_axis_column_key: null,
|
|
277
|
+
x_axis_geolocation_granularity: null,
|
|
278
|
+
x_axis_date_granularity: null,
|
|
279
|
+
y_axis_left_summary_type: 'count',
|
|
280
|
+
y_axis_right_summary_type: 'count',
|
|
281
|
+
y_axis_left_summary_column: null,
|
|
282
|
+
y_axis_right_summary_column: null,
|
|
283
|
+
show_x_axis_label: null,
|
|
284
|
+
show_y_axis_left_label: null,
|
|
285
|
+
show_y_axis_right_label: null,
|
|
286
|
+
y_axis_left_group_by_multiple_numeric_column: false,
|
|
287
|
+
y_axis_left_group_by_numeric_columns: []
|
|
288
|
+
},
|
|
289
|
+
[STAT_TYPE.TREND_CHART]: {
|
|
290
|
+
date_column: null,
|
|
291
|
+
summary_type: 'count',
|
|
292
|
+
summary_column: null,
|
|
293
|
+
summary_method: null
|
|
294
|
+
},
|
|
295
|
+
[STAT_TYPE.AREA_CHART]: {
|
|
296
|
+
x_axis_column_key: null,
|
|
297
|
+
y_axis_summary_type: SUMMARY_TYPE.COUNT,
|
|
298
|
+
show_x_axis_label: false,
|
|
299
|
+
show_y_axis_label: false
|
|
300
|
+
},
|
|
301
|
+
[STAT_TYPE.AREA_GROUP_CHART]: {
|
|
302
|
+
x_axis_column_key: null,
|
|
303
|
+
y_axis_summary_type: 'count',
|
|
304
|
+
column_groupby_column_key: null,
|
|
305
|
+
column_groupby_numeric_columns: null,
|
|
306
|
+
column_groupby_multiple_numeric_column: false
|
|
307
|
+
},
|
|
308
|
+
[STAT_TYPE.COMPLETENESS_CHART]: {
|
|
309
|
+
completed_column: null,
|
|
310
|
+
target_column: null
|
|
311
|
+
},
|
|
312
|
+
[STAT_TYPE.DASHBOARD]: {
|
|
313
|
+
target_value_column: null,
|
|
314
|
+
target_value_column_summary_method: SUMMARY_METHOD_MAP.Row_count,
|
|
315
|
+
total_value_column: null,
|
|
316
|
+
total_value_column_summary_method: SUMMARY_METHOD_MAP.Row_count
|
|
317
|
+
},
|
|
318
|
+
[STAT_TYPE.GROUP_COMPLETENESS_CHART]: {
|
|
319
|
+
completed_column: null,
|
|
320
|
+
target_column: null,
|
|
321
|
+
group_column: null,
|
|
322
|
+
date_granularity: null,
|
|
323
|
+
geolocation_granularity: null
|
|
324
|
+
},
|
|
325
|
+
[STAT_TYPE.PIVOT_TABLE]: {
|
|
326
|
+
groupby_column_key: null,
|
|
327
|
+
summary_column_key: null,
|
|
328
|
+
summary_type: 'count',
|
|
329
|
+
column_groupby_column_key: null,
|
|
330
|
+
column_groupby_multiple_numeric_column: false
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
export const COLOR_OPTIONS = [{
|
|
307
334
|
name: 'blue',
|
|
308
335
|
exampleColors: ['#CAE9FF', '#9AC5FF', '#7DAAFF', '#5C90F9', '#3C77DD', '#075FBF', '#0047A5', '#053791', '#001E79'],
|
|
309
336
|
borderColor: '#5F7190',
|
|
@@ -334,7 +361,7 @@ export var COLOR_OPTIONS = [{
|
|
|
334
361
|
borderColor: '#5F7190',
|
|
335
362
|
highlightedBorderColor: '#30343A'
|
|
336
363
|
}];
|
|
337
|
-
export
|
|
364
|
+
export const FILL_BORDER_COLOR_MAP = {
|
|
338
365
|
'#EBEDFO': '#E1E3E6',
|
|
339
366
|
'#9AC5FF': '#8BBBFB',
|
|
340
367
|
'#5C90F9': '#5284EA',
|
|
@@ -392,7 +419,7 @@ export var FILL_BORDER_COLOR_MAP = {
|
|
|
392
419
|
'#6D2E02': '#542301',
|
|
393
420
|
'#EBEDF0': '#E1E3E6'
|
|
394
421
|
};
|
|
395
|
-
export
|
|
422
|
+
export const DTABLE_DB_SUMMARY_METHOD = {
|
|
396
423
|
Mean: 'AVG',
|
|
397
424
|
Max: 'MAX',
|
|
398
425
|
Sum: 'SUM',
|
|
@@ -401,42 +428,53 @@ export var DTABLE_DB_SUMMARY_METHOD = {
|
|
|
401
428
|
Count: 'COUNT',
|
|
402
429
|
Distinct_values: 'Distinct_values'
|
|
403
430
|
};
|
|
404
|
-
export
|
|
405
|
-
export
|
|
406
|
-
export
|
|
407
|
-
export
|
|
408
|
-
export
|
|
409
|
-
export
|
|
410
|
-
export
|
|
411
|
-
export
|
|
412
|
-
export
|
|
413
|
-
|
|
431
|
+
export const TITLE_AMOUNT = 'Amount';
|
|
432
|
+
export const TITLE_TOTAL = 'Total';
|
|
433
|
+
export const TITLE_INCREASE = 'Increase';
|
|
434
|
+
export const LEGEND_LEFT = 'Left';
|
|
435
|
+
export const LEGEND_RIGHT = 'Right';
|
|
436
|
+
export const EMPTY_NAME = 'Empty';
|
|
437
|
+
export const NO_STATISTIC_RESULTS = 'There_are_no_statistic_results_yet';
|
|
438
|
+
export const TOO_MANY_STATISTIC_ENTRIES = 'There_are_too_many_statistics_entries_to_display';
|
|
439
|
+
export const MULTIPLE_CELL_VALUE_COLUMN_TYPE_MAP = {
|
|
440
|
+
[CellType.MULTIPLE_SELECT]: true,
|
|
441
|
+
[CellType.COLLABORATOR]: true,
|
|
442
|
+
[CellType.LINK]: true
|
|
443
|
+
};
|
|
444
|
+
export const THEME_NAME_MAP = {
|
|
414
445
|
DARK: 'dark',
|
|
415
446
|
LIGHT: 'light'
|
|
416
447
|
};
|
|
417
|
-
export
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
448
|
+
export const STAT_ITEM_THEME_COLORS = {
|
|
449
|
+
[THEME_NAME_MAP.DARK]: {
|
|
450
|
+
textColor: '#ffffff',
|
|
451
|
+
gridColor: '#4E4E56',
|
|
452
|
+
labelColor: '#ffffff',
|
|
453
|
+
legendPageNavigatorMarkerColor: '#ffffff',
|
|
454
|
+
cardColor: '#ffffff'
|
|
455
|
+
},
|
|
456
|
+
[THEME_NAME_MAP.LIGHT]: {
|
|
457
|
+
textColor: '#6e6e6e',
|
|
458
|
+
gridColor: '#bfbfbf',
|
|
459
|
+
labelColor: '#000000',
|
|
460
|
+
legendPageNavigatorMarkerColor: '#000000',
|
|
461
|
+
cardColor: '#545454'
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
export const DATA_SORT_TYPE = {
|
|
431
465
|
NOT_SORTED: 'not_sorted',
|
|
432
466
|
ASCENDING: 'ascending',
|
|
433
467
|
DESCENDING: 'descending'
|
|
434
468
|
};
|
|
435
|
-
export
|
|
436
|
-
export
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
469
|
+
export const DATA_SORT_TYPES = [DATA_SORT_TYPE.NOT_SORTED, DATA_SORT_TYPE.ASCENDING, DATA_SORT_TYPE.DESCENDING];
|
|
470
|
+
export const DATA_SORT_TYPE_LABEL = {
|
|
471
|
+
[DATA_SORT_TYPE.NOT_SORTED]: 'Not_sorted',
|
|
472
|
+
[DATA_SORT_TYPE.ASCENDING]: 'Ascending',
|
|
473
|
+
[DATA_SORT_TYPE.DESCENDING]: 'Descending'
|
|
474
|
+
};
|
|
475
|
+
export const LABEL_CONFIG_CHANGED = 'label_config_changed';
|
|
476
|
+
export const PIE_CHART_COLORS = ['#46A1FD', '#4ECCCB', '#59CB74', '#FBD44A', '#F4667C', '#9860E5', '#9F8CF1', '#DC82D2', '#EAA775', '#ADDF84', '#85E0BE', '#89D2EA'];
|
|
477
|
+
export const CHART_STYLE_COLORS = [{
|
|
440
478
|
name: 'theme0',
|
|
441
479
|
colors: ['#5B8FF9', '#5AD8A6', '#5D7092', '#F6BD16', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3']
|
|
442
480
|
}, {
|
|
@@ -458,20 +496,20 @@ export var CHART_STYLE_COLORS = [{
|
|
|
458
496
|
name: 'theme6',
|
|
459
497
|
colors: ['#F76856', '#FFAF53', '#6CCDFF', '#C4C4CC', '#D48C82', '#E3C19A', '#A47CFF', '#FFD637', '#96DCFF', '#FFB6B6']
|
|
460
498
|
}];
|
|
461
|
-
export
|
|
499
|
+
export const DEFAULT_NUMBER_FORMAT_OBJECT = {
|
|
462
500
|
format: 'number'
|
|
463
501
|
};
|
|
464
|
-
export
|
|
465
|
-
export
|
|
502
|
+
export const SUPPORT_LABEL_FONT_SIZE_CHARTS = [STAT_TYPE.BAR, STAT_TYPE.BAR_GROUP, STAT_TYPE.BAR_STACK, STAT_TYPE.COMPARE_BAR, STAT_TYPE.LINE, STAT_TYPE.GROUP_LINE, STAT_TYPE.PIE, STAT_TYPE.RING, STAT_TYPE.HORIZONTAL_BAR, STAT_TYPE.HORIZONTAL_GROUP_BAR, STAT_TYPE.STACKED_HORIZONTAL_BAR, STAT_TYPE.AREA_CHART, STAT_TYPE.AREA_GROUP_CHART, STAT_TYPE.COMPLETENESS_CHART, STAT_TYPE.GROUP_COMPLETENESS_CHART, STAT_TYPE.COMBINATION_CHART];
|
|
503
|
+
export const DEFAULT_LABEL_FONT_SIZE = 12;
|
|
466
504
|
|
|
467
505
|
// label formats for pie, ring charts
|
|
468
|
-
export
|
|
469
|
-
export
|
|
506
|
+
export const LABEL_FORMATS = ['Percent', 'Value', 'Value_percent'];
|
|
507
|
+
export const LABEL_FORMATS_MAP = {
|
|
470
508
|
Value: 'Numeric_value',
|
|
471
509
|
Percent: 'Percent',
|
|
472
510
|
Value_percent: 'Numeric_value_and_percent'
|
|
473
511
|
};
|
|
474
|
-
export
|
|
512
|
+
export const LABEL_POSITION = {
|
|
475
513
|
TOP: 'top',
|
|
476
514
|
RIGHT: 'right',
|
|
477
515
|
BOTTOM: 'bottom',
|
|
@@ -480,35 +518,83 @@ export var LABEL_POSITION = {
|
|
|
480
518
|
};
|
|
481
519
|
|
|
482
520
|
// label positions for pie, ring charts
|
|
483
|
-
export
|
|
484
|
-
export
|
|
521
|
+
export const LABEL_POSITIONS = ['inside', 'outside'];
|
|
522
|
+
export const LABEL_POSITIONS_MAP = {
|
|
485
523
|
inside: 'Inside_the_chart',
|
|
486
524
|
outside: 'Outside_the_chart'
|
|
487
525
|
};
|
|
488
526
|
|
|
489
527
|
// color options for pie, ring charts
|
|
490
|
-
export
|
|
491
|
-
export
|
|
528
|
+
export const PIE_COLOR_OPTIONS = ['use_default', 'use_column_colors'];
|
|
529
|
+
export const PIE_COlOR_OPTIONS_MAP = {
|
|
492
530
|
use_default: 'Use_default_colors',
|
|
493
531
|
use_column_colors: 'Use_column_colors'
|
|
494
532
|
};
|
|
495
|
-
export
|
|
533
|
+
export const TYPE_COLOR_USING = {
|
|
496
534
|
USE_DEFAULT: 'use_default',
|
|
497
535
|
USE_COLUMN_COLORS: 'use_column_colors',
|
|
498
536
|
USE_SPECIFIC_COLORS: 'use_specific_colors',
|
|
499
537
|
USE_RULES: 'use_rules'
|
|
500
538
|
};
|
|
501
|
-
export
|
|
502
|
-
export
|
|
539
|
+
export const USEABLE_COLOR_TYPES = [TYPE_COLOR_USING.USE_DEFAULT, TYPE_COLOR_USING.USE_COLUMN_COLORS];
|
|
540
|
+
export const TYPE_DISPLAY_COLOR_USING = {
|
|
541
|
+
[TYPE_COLOR_USING.USE_DEFAULT]: 'Use_default_colors',
|
|
542
|
+
[TYPE_COLOR_USING.USE_COLUMN_COLORS]: 'Use_column_colors',
|
|
543
|
+
[TYPE_COLOR_USING.USE_SPECIFIC_COLORS]: 'Use_specific_colors',
|
|
544
|
+
[TYPE_COLOR_USING.USE_RULES]: 'Use_rules'
|
|
545
|
+
};
|
|
503
546
|
|
|
504
547
|
// default annotation font size for ring charts
|
|
505
|
-
export
|
|
548
|
+
export const DEFAULT_ANNOTATION_SIZE = 20;
|
|
506
549
|
|
|
507
550
|
// default grid size, grid distance for heat map chart
|
|
508
|
-
export
|
|
509
|
-
export
|
|
510
|
-
export
|
|
551
|
+
export const DEFAULT_GRID_SIZE = 12;
|
|
552
|
+
export const DEFAULT_GRID_DISTANCE = 4;
|
|
553
|
+
export const LEGEND_DIRECTION_MAP = {
|
|
511
554
|
VERTICAL: 'vertical'
|
|
512
555
|
};
|
|
513
|
-
export
|
|
514
|
-
export
|
|
556
|
+
export const Y_AXIS_TYPE_PREFIX = '__y_axis__';
|
|
557
|
+
export const STATISTIC_TYPE_SHOW = {
|
|
558
|
+
// bar
|
|
559
|
+
[STAT_TYPE.BAR]: 'Basic_histogram',
|
|
560
|
+
[STAT_TYPE.BAR_GROUP]: 'Grouped_histogram',
|
|
561
|
+
[STAT_TYPE.BAR_STACK]: 'Stacked_histogram',
|
|
562
|
+
[STAT_TYPE.COMPARE_BAR]: 'Time_comparison_histogram',
|
|
563
|
+
[STAT_TYPE.CUSTOM_BAR]: 'Custom_histogram',
|
|
564
|
+
// horizontal
|
|
565
|
+
[STAT_TYPE.HORIZONTAL_BAR]: 'Basic_bar_chart',
|
|
566
|
+
[STAT_TYPE.HORIZONTAL_GROUP_BAR]: 'Grouped_bar_chart',
|
|
567
|
+
[STAT_TYPE.STACKED_HORIZONTAL_BAR]: 'Stacked_bar_chart',
|
|
568
|
+
[STAT_TYPE.COMPLETENESS_CHART]: 'Completeness_chart',
|
|
569
|
+
[STAT_TYPE.GROUP_COMPLETENESS_CHART]: 'Grouped_completeness_chart',
|
|
570
|
+
// line
|
|
571
|
+
[STAT_TYPE.LINE]: 'Basic_line_chart',
|
|
572
|
+
[STAT_TYPE.GROUP_LINE]: 'Grouped_line_chart',
|
|
573
|
+
// area
|
|
574
|
+
[STAT_TYPE.AREA_CHART]: 'Area_chart',
|
|
575
|
+
[STAT_TYPE.AREA_GROUP_CHART]: 'Grouped_area_chart',
|
|
576
|
+
// pie
|
|
577
|
+
[STAT_TYPE.PIE]: 'Basic_pie_chart',
|
|
578
|
+
[STAT_TYPE.RING]: 'Ring_chart',
|
|
579
|
+
// scatter
|
|
580
|
+
[STAT_TYPE.SCATTER]: 'Scatter_chart',
|
|
581
|
+
// Combination_chart
|
|
582
|
+
[STAT_TYPE.COMBINATION_CHART]: 'Combination_chart',
|
|
583
|
+
// map
|
|
584
|
+
[STAT_TYPE.MAP]: '中国地图',
|
|
585
|
+
[STAT_TYPE.MAP_BUBBLE]: '中国地图(气泡图)',
|
|
586
|
+
[STAT_TYPE.WORLD_MAP]: 'World_map',
|
|
587
|
+
// heat
|
|
588
|
+
[STAT_TYPE.HEAT_MAP]: 'Heat_map',
|
|
589
|
+
// facet
|
|
590
|
+
[STAT_TYPE.MIRROR]: 'Mirror_chart',
|
|
591
|
+
// card
|
|
592
|
+
[STAT_TYPE.BASIC_NUMBER_CARD]: 'Basic_number_card',
|
|
593
|
+
[STAT_TYPE.TREND_CHART]: 'Trend_chart',
|
|
594
|
+
// gauge
|
|
595
|
+
[STAT_TYPE.DASHBOARD]: 'Gauge',
|
|
596
|
+
// treemap
|
|
597
|
+
[STAT_TYPE.TREEMAP]: 'Treemap',
|
|
598
|
+
// table
|
|
599
|
+
[STAT_TYPE.PIVOT_TABLE]: 'Pivot_table'
|
|
600
|
+
};
|