dtable-statistic 4.3.3 → 4.3.4
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 +3 -10
- package/es/calculator/base-calculator.js +12 -20
- package/es/calculator/basic-chart-calculator.js +65 -72
- package/es/calculator/combination-calculator.js +57 -64
- package/es/calculator/compare-bar-calculator.js +26 -33
- package/es/calculator/completeness-calculator.js +30 -37
- package/es/calculator/copy-value.js +1 -7
- package/es/calculator/dashboard-calculator.js +13 -20
- package/es/calculator/heat-map-calculator.js +18 -25
- package/es/calculator/horizontal-bar-calculator.js +8 -15
- package/es/calculator/index.js +35 -42
- package/es/calculator/map-calculator.js +22 -29
- package/es/calculator/mirror-calculator.js +20 -27
- package/es/calculator/number-card-calculator.js +10 -17
- package/es/calculator/pivot-table-calculator.js +58 -65
- package/es/calculator/scatter-calculator.js +14 -21
- package/es/calculator/thread-manager.js +1 -7
- package/es/calculator/trend-calculator.js +22 -29
- package/es/calculator/workers/basic-chart-calculator-worker.js +76 -83
- package/es/calculator/workers/calculator.worker.js +30 -33
- package/es/calculator/workers/card-calculator-worker.js +13 -19
- package/es/calculator/workers/combination-calculator-worker.js +46 -53
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +22 -29
- package/es/calculator/workers/completeness-calculator-worker.js +34 -41
- package/es/calculator/workers/dashboard-calculator-worker.js +18 -24
- package/es/calculator/workers/mirror-calculator-worker.js +22 -29
- package/es/calculator/workers/pivot-table-calculator-worker.js +77 -84
- package/es/calculator/workers/scatter-calculator-worker.js +20 -27
- package/es/calculator/workers/trend-calculator-worker.js +27 -34
- package/es/calculator/world-map-calculator.js +17 -24
- package/es/components/common-add-tool.js +5 -12
- package/es/components/dialog/chart-addition-edit-dialog.js +12 -20
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +101 -108
- package/es/components/dialog/color-theme-dialog.js +15 -22
- package/es/components/dialog/delete-confirmation-dialog.js +11 -18
- package/es/components/dialog/enlarged-chart-dialog.js +20 -28
- package/es/components/dialog/new-table-dialog.js +16 -23
- package/es/components/dialog/new-view-dialog.js +14 -21
- package/es/components/dialog/rename-view-dialog.js +14 -22
- package/es/components/dialog/statistic-record-dialog/index.js +37 -45
- package/es/components/dialog/statistic-types-dialog/index.js +14 -22
- package/es/components/dialog/table-select-dialog.js +15 -23
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +41 -49
- package/es/components/dtable-popover.js +12 -19
- package/es/components/dtable-search-input.js +13 -21
- package/es/components/dtable-select.js +15 -21
- package/es/components/icon.js +4 -11
- package/es/components/index.js +11 -76
- package/es/components/loading.js +3 -10
- package/es/components/modal-portal.js +5 -12
- package/es/components/popover/color-rules/color-rule.js +25 -33
- package/es/components/popover/color-rules/index.js +6 -14
- package/es/components/popover/color-rules/rule-filters/filter.js +27 -34
- package/es/components/popover/color-rules/rule-filters/index.js +17 -25
- package/es/components/popover/color-rules/rule-filters/number-input.js +9 -17
- package/es/components/popover/color-rules-popover.js +24 -32
- package/es/components/popover/color-selector-popover.js +10 -17
- package/es/components/seatable-radio/index.js +9 -16
- package/es/components/select/index.js +2 -9
- package/es/components/select/option-group.js +19 -27
- package/es/components/select/option.js +6 -14
- package/es/components/select/select.js +17 -25
- package/es/components/toast/alert.js +24 -31
- package/es/components/toast/index.js +3 -10
- package/es/components/toast/toast.js +12 -20
- package/es/components/toast/toastManager.js +9 -17
- package/es/components/toast/toaster.js +6 -14
- package/es/constants/color-rules.js +6 -12
- package/es/constants/dtable-select-style.js +4 -9
- package/es/constants/event-types.js +4 -10
- package/es/constants/index.js +67 -96
- package/es/constants/key-codes.js +0 -2
- package/es/constants/map.js +2 -8
- package/es/constants/model.js +20 -26
- package/es/constants/regions.js +3 -8
- package/es/constants/zIndexes.js +1 -7
- package/es/custom-g2.js +208 -236
- package/es/dashboard.js +50 -58
- package/es/desktop-dashboard.js +47 -55
- package/es/index.js +3 -6
- package/es/locale/index.js +10 -13
- package/es/locale/lang/de.js +1 -7
- package/es/locale/lang/en.js +1 -7
- package/es/locale/lang/fr.js +1 -7
- package/es/locale/lang/zh_CN.js +1 -7
- package/es/mobile-dashboard.js +38 -46
- package/es/model/bar-group.js +11 -19
- package/es/model/bar.js +10 -18
- package/es/model/base-model.js +2 -9
- package/es/model/basic-number-card.js +8 -16
- package/es/model/collaborators.js +2 -9
- package/es/model/combination.js +12 -20
- package/es/model/compare-bar.js +16 -24
- package/es/model/completeness-group.js +8 -16
- package/es/model/completeness.js +5 -13
- package/es/model/custom-bar.js +6 -14
- package/es/model/dashboard.js +6 -14
- package/es/model/generic-model.js +133 -141
- package/es/model/heat-map.js +11 -19
- package/es/model/horizontal-bar-group.js +10 -18
- package/es/model/horizontal-bar.js +10 -18
- package/es/model/index.js +53 -185
- package/es/model/map.js +15 -23
- package/es/model/mirror.js +13 -21
- package/es/model/pie.js +10 -18
- package/es/model/ring.js +11 -19
- package/es/model/scatter.js +6 -14
- package/es/model/statistic-dashboard.js +2 -9
- package/es/model/table.js +10 -18
- package/es/model/trend.js +12 -20
- package/es/model/world-map.js +13 -21
- package/es/service/chart-service.js +7 -14
- package/es/service/dashboard-service.js +34 -41
- package/es/service/map-json.js +8 -14
- package/es/stat-editor/chart-name-editor.js +8 -15
- package/es/stat-editor/index.js +16 -24
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +21 -29
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +49 -57
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +23 -31
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +4 -11
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +19 -27
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +43 -51
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +23 -31
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +23 -31
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +37 -45
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +19 -27
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +26 -34
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +47 -55
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +22 -30
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +18 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +27 -35
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +24 -32
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +33 -41
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +22 -30
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +27 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +46 -54
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +23 -31
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +26 -34
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +77 -85
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +21 -29
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +73 -81
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +16 -24
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +19 -27
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +18 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +49 -57
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +17 -25
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +47 -55
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +11 -19
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +45 -53
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +9 -17
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +20 -28
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +30 -38
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +50 -58
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +17 -25
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +47 -55
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +11 -19
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +12 -19
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +62 -70
- package/es/stat-editor/stat-settings/map/map-level.js +13 -20
- package/es/stat-editor/stat-settings/map/map-province-city.js +20 -27
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +11 -19
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +20 -28
- package/es/stat-editor/stat-settings/public-setting/calender.js +22 -29
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +6 -13
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +9 -16
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +13 -21
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +8 -15
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +11 -19
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +27 -35
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +8 -15
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.js +18 -26
- package/es/stat-list/chart-preview.js +20 -28
- package/es/stat-list/index.js +27 -35
- package/es/stat-view/area-chart.js +43 -50
- package/es/stat-view/bar-chart.js +47 -54
- package/es/stat-view/base-chart.js +24 -32
- package/es/stat-view/basic-number-card.js +19 -26
- package/es/stat-view/combination-chart.js +49 -56
- package/es/stat-view/compare-chart.js +39 -46
- package/es/stat-view/completeness-chart.js +28 -35
- package/es/stat-view/custom-bar.js +31 -38
- package/es/stat-view/dashboard-chart.js +15 -22
- package/es/stat-view/heat-map.js +43 -50
- package/es/stat-view/horizontal-bar-chart.js +51 -58
- package/es/stat-view/index.js +73 -80
- package/es/stat-view/line-chart.js +39 -46
- package/es/stat-view/map.js +33 -40
- package/es/stat-view/mirror.js +21 -28
- package/es/stat-view/pie-chart.js +29 -36
- package/es/stat-view/pivot-table/index.js +32 -39
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +31 -39
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +29 -37
- package/es/stat-view/pivot-table/pivot-table-display-name.js +46 -54
- package/es/stat-view/pivot-table/two-dimension-table.js +62 -70
- package/es/stat-view/ring-chart.js +38 -45
- package/es/stat-view/scatter-chart.js +30 -37
- package/es/stat-view/treemap-chart.js +37 -44
- package/es/stat-view/trend-chart.js +32 -39
- package/es/stat-view/world-map.js +33 -40
- package/es/tabs/index.js +32 -40
- package/es/tabs/tab.js +26 -34
- package/es/utils/basic-chart-utils.js +2 -9
- package/es/utils/cell-format.js +14 -22
- package/es/utils/cell-value.js +7 -14
- package/es/utils/collaborator.js +4 -13
- package/es/utils/color-utils.js +18 -29
- package/es/utils/column-utils.js +18 -29
- package/es/utils/column.js +4 -11
- package/es/utils/common-utils.js +41 -65
- package/es/utils/date-format.js +2 -8
- package/es/utils/export-table-utils.js +82 -91
- package/es/utils/index.js +11 -100
- package/es/utils/map.js +26 -36
- package/es/utils/model.js +6 -14
- package/es/utils/object.js +6 -15
- package/es/utils/pivot-table.js +16 -23
- package/es/utils/row-utils.js +23 -33
- package/es/utils/search.js +21 -29
- package/es/utils/sql-utils.js +65 -75
- package/es/utils/stat-utils.js +60 -66
- package/es/utils/trend-utils.js +32 -40
- package/package.json +1 -1
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _worldMapSettings = _interopRequireDefault(require("./world-map-settings"));
|
|
14
|
-
var _heatMapSettings = _interopRequireDefault(require("./heat-map-settings"));
|
|
15
|
-
var _mirrorSettings = _interopRequireDefault(require("./mirror-settings"));
|
|
16
|
-
var _basicNumberCardSettings = _interopRequireDefault(require("./basic-number-card-settings"));
|
|
17
|
-
var _combinationSettings = _interopRequireDefault(require("./combination-settings"));
|
|
18
|
-
var _trendChartSettings = _interopRequireDefault(require("./trend-chart-settings"));
|
|
19
|
-
var _dashboardChartSettings = _interopRequireDefault(require("./dashboard-chart-settings"));
|
|
20
|
-
var _constants = require("../../../constants");
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import { isNumericColumn } from 'dtable-store';
|
|
4
|
+
import MapSettings from './map-settings';
|
|
5
|
+
import WorldMapSettings from './world-map-settings';
|
|
6
|
+
import HeatMapSettings from './heat-map-settings';
|
|
7
|
+
import MirrorSettings from './mirror-settings';
|
|
8
|
+
import BasicNumberCardSettings from './basic-number-card-settings';
|
|
9
|
+
import CombinationSettings from './combination-settings';
|
|
10
|
+
import TrendSettings from './trend-chart-settings';
|
|
11
|
+
import DashboardChartSettings from './dashboard-chart-settings';
|
|
12
|
+
import { STAT_TYPE, SUMMARY_TYPE, SUMMARY_METHOD } from '../../../constants';
|
|
21
13
|
const GROUP_TYPES = {
|
|
22
14
|
COUNT: 'count',
|
|
23
15
|
SINGLE_NUMERIC_COLUMN: 'single_numeric_column',
|
|
24
16
|
MULTIPLE_NUMERIC_COLUMN: 'multiple_numeric_column'
|
|
25
17
|
};
|
|
26
|
-
class AdvancedChartSettings extends
|
|
18
|
+
class AdvancedChartSettings extends React.Component {
|
|
27
19
|
constructor(props) {
|
|
28
20
|
super(props);
|
|
29
21
|
this.getNumericColumns = columns => {
|
|
30
22
|
if (!columns) return [];
|
|
31
|
-
return columns.filter(column => column &&
|
|
23
|
+
return columns.filter(column => column && isNumericColumn(column));
|
|
32
24
|
};
|
|
33
25
|
this.getSettingsByType = () => {
|
|
34
26
|
const {
|
|
@@ -48,10 +40,10 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
48
40
|
table_id: selectedTableId
|
|
49
41
|
} = statItem;
|
|
50
42
|
switch (type) {
|
|
51
|
-
case
|
|
52
|
-
case
|
|
43
|
+
case STAT_TYPE.MAP:
|
|
44
|
+
case STAT_TYPE.MAP_BUBBLE:
|
|
53
45
|
{
|
|
54
|
-
return /*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/React.createElement(MapSettings, {
|
|
55
47
|
settingType: settingType,
|
|
56
48
|
selectedTableId: selectedTableId,
|
|
57
49
|
columns: this.columns,
|
|
@@ -71,10 +63,10 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
71
63
|
onChangeColor: this.onChangeColor
|
|
72
64
|
});
|
|
73
65
|
}
|
|
74
|
-
case
|
|
75
|
-
case
|
|
66
|
+
case STAT_TYPE.WORLD_MAP:
|
|
67
|
+
case STAT_TYPE.WORLD_MAP_BUBBLE:
|
|
76
68
|
{
|
|
77
|
-
return /*#__PURE__*/
|
|
69
|
+
return /*#__PURE__*/React.createElement(WorldMapSettings, {
|
|
78
70
|
settingType: settingType,
|
|
79
71
|
selectedTableId: selectedTableId,
|
|
80
72
|
columns: this.columns,
|
|
@@ -94,9 +86,9 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
94
86
|
onChangeColor: this.onChangeColor
|
|
95
87
|
});
|
|
96
88
|
}
|
|
97
|
-
case
|
|
89
|
+
case STAT_TYPE.HEAT_MAP:
|
|
98
90
|
{
|
|
99
|
-
return /*#__PURE__*/
|
|
91
|
+
return /*#__PURE__*/React.createElement(HeatMapSettings, {
|
|
100
92
|
settingType: settingType,
|
|
101
93
|
selectedTableId: selectedTableId,
|
|
102
94
|
columns: this.columns,
|
|
@@ -116,9 +108,9 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
116
108
|
onChangeColor: this.onChangeColor
|
|
117
109
|
});
|
|
118
110
|
}
|
|
119
|
-
case
|
|
111
|
+
case STAT_TYPE.MIRROR:
|
|
120
112
|
{
|
|
121
|
-
return /*#__PURE__*/
|
|
113
|
+
return /*#__PURE__*/React.createElement(MirrorSettings, {
|
|
122
114
|
settingType: settingType,
|
|
123
115
|
selectedTableId: selectedTableId,
|
|
124
116
|
columns: this.columns,
|
|
@@ -137,9 +129,9 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
137
129
|
onSelectSummaryMethod: this.onSelectSummaryMethod
|
|
138
130
|
});
|
|
139
131
|
}
|
|
140
|
-
case
|
|
132
|
+
case STAT_TYPE.BASIC_NUMBER_CARD:
|
|
141
133
|
{
|
|
142
|
-
return /*#__PURE__*/
|
|
134
|
+
return /*#__PURE__*/React.createElement(BasicNumberCardSettings, {
|
|
143
135
|
statItem: statItem,
|
|
144
136
|
labelColorConfigs: labelColorConfigs,
|
|
145
137
|
eventBus: eventBus,
|
|
@@ -156,9 +148,9 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
156
148
|
onSelectSummaryMethod: this.onSelectSummaryMethod
|
|
157
149
|
});
|
|
158
150
|
}
|
|
159
|
-
case
|
|
151
|
+
case STAT_TYPE.COMBINATION_CHART:
|
|
160
152
|
{
|
|
161
|
-
return /*#__PURE__*/
|
|
153
|
+
return /*#__PURE__*/React.createElement(CombinationSettings, {
|
|
162
154
|
statItem: statItem,
|
|
163
155
|
labelColorConfigs: labelColorConfigs,
|
|
164
156
|
eventBus: eventBus,
|
|
@@ -174,9 +166,9 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
174
166
|
getColumnsOptions: this.getColumnsOptions
|
|
175
167
|
});
|
|
176
168
|
}
|
|
177
|
-
case
|
|
169
|
+
case STAT_TYPE.TREND_CHART:
|
|
178
170
|
{
|
|
179
|
-
return /*#__PURE__*/
|
|
171
|
+
return /*#__PURE__*/React.createElement(TrendSettings, {
|
|
180
172
|
settingType: settingType,
|
|
181
173
|
selectedTableId: selectedTableId,
|
|
182
174
|
columns: this.columns,
|
|
@@ -195,9 +187,9 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
195
187
|
onSelectSummaryMethod: this.onSelectSummaryMethod
|
|
196
188
|
});
|
|
197
189
|
}
|
|
198
|
-
case
|
|
190
|
+
case STAT_TYPE.DASHBOARD:
|
|
199
191
|
{
|
|
200
|
-
return /*#__PURE__*/
|
|
192
|
+
return /*#__PURE__*/React.createElement(DashboardChartSettings, {
|
|
201
193
|
statItem: statItem,
|
|
202
194
|
labelColorConfigs: labelColorConfigs,
|
|
203
195
|
eventBus: eventBus,
|
|
@@ -227,7 +219,7 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
227
219
|
type
|
|
228
220
|
} = column;
|
|
229
221
|
return {
|
|
230
|
-
label: /*#__PURE__*/
|
|
222
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
231
223
|
className: "select-option-name"
|
|
232
224
|
}, name),
|
|
233
225
|
value: {
|
|
@@ -247,10 +239,10 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
247
239
|
if (summaryType === summary_type) return;
|
|
248
240
|
if (summaryType === GROUP_TYPES.SINGLE_NUMERIC_COLUMN) {
|
|
249
241
|
summary_column = null;
|
|
250
|
-
summary_method =
|
|
251
|
-
summary_type =
|
|
242
|
+
summary_method = SUMMARY_METHOD[0];
|
|
243
|
+
summary_type = SUMMARY_TYPE.ADVANCED;
|
|
252
244
|
} else {
|
|
253
|
-
summary_type =
|
|
245
|
+
summary_type = SUMMARY_TYPE.COUNT;
|
|
254
246
|
summary_method = null;
|
|
255
247
|
summary_column = null;
|
|
256
248
|
}
|
|
@@ -314,21 +306,21 @@ class AdvancedChartSettings extends _react.default.Component {
|
|
|
314
306
|
const {
|
|
315
307
|
settingType
|
|
316
308
|
} = this.state;
|
|
317
|
-
return /*#__PURE__*/
|
|
309
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
318
310
|
className: "statistic-chart-settings"
|
|
319
|
-
}, /*#__PURE__*/
|
|
311
|
+
}, /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
320
312
|
className: "statistic-chart-settings-type"
|
|
321
|
-
}, /*#__PURE__*/
|
|
313
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
322
314
|
onClick: () => this.selectEditType('data'),
|
|
323
315
|
className: "statistic-type-item ".concat(settingType === 'data' ? 'selected-statistic-type-item' : '')
|
|
324
|
-
},
|
|
316
|
+
}, intl.get('Data_settings')), /*#__PURE__*/React.createElement("div", {
|
|
325
317
|
onClick: () => this.selectEditType('style'),
|
|
326
318
|
className: "statistic-type-item ".concat(settingType === 'style' ? 'selected-statistic-type-item' : '')
|
|
327
|
-
},
|
|
319
|
+
}, intl.get('Style_settings'))), /*#__PURE__*/React.createElement("div", {
|
|
328
320
|
className: "statistic-chart-settings-container"
|
|
329
|
-
}, /*#__PURE__*/
|
|
321
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
330
322
|
className: "statistic-chart-settings-parameter-list pt-4"
|
|
331
323
|
}, this.getSettingsByType()))));
|
|
332
324
|
}
|
|
333
325
|
}
|
|
334
|
-
|
|
326
|
+
export default AdvancedChartSettings;
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _columnSettings = _interopRequireDefault(require("../public-setting/column-settings"));
|
|
12
|
-
var _summarySettings = _interopRequireDefault(require("./summary-settings"));
|
|
13
|
-
var _mapSetting = _interopRequireDefault(require("./style-setting/map-setting"));
|
|
14
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
15
|
-
var _constants = require("../../../constants");
|
|
16
|
-
var _mapLevel = _interopRequireDefault(require("../map/map-level"));
|
|
17
|
-
var _mapProvinceCity = _interopRequireDefault(require("../map/map-province-city"));
|
|
18
|
-
class MapSettings extends _react.Component {
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
2
|
+
import BaseSettings from '../public-setting/base-settings';
|
|
3
|
+
import ColumnSettings from '../public-setting/column-settings';
|
|
4
|
+
import SummarySettings from './summary-settings';
|
|
5
|
+
import MapStyleSetting from './style-setting/map-setting';
|
|
6
|
+
import { isMapColumn } from '../../../utils/column-utils';
|
|
7
|
+
import { GEOLOCATION_GRANULARITY } from '../../../constants';
|
|
8
|
+
import MapLevelSettings from '../map/map-level';
|
|
9
|
+
import MapProvinceCitySettings from '../map/map-province-city';
|
|
10
|
+
class MapSettings extends Component {
|
|
19
11
|
constructor(props) {
|
|
20
12
|
super(props);
|
|
21
13
|
this.getColumns = columns => {
|
|
22
14
|
if (!Array.isArray(columns) || columns.length === 0) return [];
|
|
23
|
-
return columns.filter(column =>
|
|
15
|
+
return columns.filter(column => isMapColumn(column));
|
|
24
16
|
};
|
|
25
17
|
this.getSelectedGeoColumnOption = () => {
|
|
26
18
|
return this.geoColumnsOptions.find(option => option.value.key === this.props.statItem.geo_column);
|
|
@@ -33,7 +25,7 @@ class MapSettings extends _react.Component {
|
|
|
33
25
|
if (new_geo_column === geo_column) return;
|
|
34
26
|
this.props.updateStatItem(Object.assign({}, this.props.statItem, {
|
|
35
27
|
geo_column: new_geo_column,
|
|
36
|
-
geolocation_granularity:
|
|
28
|
+
geolocation_granularity: GEOLOCATION_GRANULARITY.PROVINCE
|
|
37
29
|
}));
|
|
38
30
|
};
|
|
39
31
|
const {
|
|
@@ -68,13 +60,13 @@ class MapSettings extends _react.Component {
|
|
|
68
60
|
} = statItem;
|
|
69
61
|
const selectedGeoColumnOption = this.getSelectedGeoColumnOption();
|
|
70
62
|
if (settingType === 'style') {
|
|
71
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/React.createElement(MapStyleSetting, {
|
|
72
64
|
statItem: statItem,
|
|
73
65
|
onChangeColor: this.props.onChangeColor,
|
|
74
66
|
updateStatItem: this.props.updateStatItem
|
|
75
67
|
});
|
|
76
68
|
}
|
|
77
|
-
return /*#__PURE__*/
|
|
69
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
78
70
|
statItem: statItem,
|
|
79
71
|
selectedTableId: selectedTableId,
|
|
80
72
|
selectedViewId: selectedViewId,
|
|
@@ -83,25 +75,25 @@ class MapSettings extends _react.Component {
|
|
|
83
75
|
getTableById: this.props.getTableById,
|
|
84
76
|
getConvertedChart: this.props.getConvertedChart,
|
|
85
77
|
updateStatItem: this.props.updateStatItem
|
|
86
|
-
}), /*#__PURE__*/
|
|
78
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
87
79
|
className: "statistic-chart-parameter-divider"
|
|
88
|
-
}), /*#__PURE__*/
|
|
80
|
+
}), /*#__PURE__*/React.createElement(MapLevelSettings, {
|
|
89
81
|
statItem: statItem,
|
|
90
82
|
updateStatItem: this.props.updateStatItem
|
|
91
|
-
}), /*#__PURE__*/
|
|
83
|
+
}), /*#__PURE__*/React.createElement(MapProvinceCitySettings, {
|
|
92
84
|
statItem: statItem,
|
|
93
85
|
updateStatItem: this.props.updateStatItem
|
|
94
|
-
}), /*#__PURE__*/
|
|
86
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
95
87
|
className: "statistic-chart-parameter-divider"
|
|
96
|
-
}), /*#__PURE__*/
|
|
88
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
97
89
|
className: "statistic-chart-parameter-item"
|
|
98
|
-
}, /*#__PURE__*/
|
|
90
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u4F4D\u7F6E\u5B57\u6BB5"), /*#__PURE__*/React.createElement(ColumnSettings, {
|
|
99
91
|
columnsOptions: this.geoColumnsOptions,
|
|
100
92
|
selectedColumnOption: selectedGeoColumnOption,
|
|
101
93
|
onChangeSelectedColumn: this.onSelectGeoColumn
|
|
102
|
-
})), /*#__PURE__*/
|
|
94
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
103
95
|
className: "statistic-chart-parameter-divider"
|
|
104
|
-
}), /*#__PURE__*/
|
|
96
|
+
}), /*#__PURE__*/React.createElement(SummarySettings, {
|
|
105
97
|
label: '归总方法',
|
|
106
98
|
statItem: statItem,
|
|
107
99
|
selectedTableId: selectedTableId,
|
|
@@ -116,4 +108,4 @@ class MapSettings extends _react.Component {
|
|
|
116
108
|
}));
|
|
117
109
|
}
|
|
118
110
|
}
|
|
119
|
-
|
|
111
|
+
export default MapSettings;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
12
|
-
var _columnSettings = _interopRequireDefault(require("../public-setting/column-settings"));
|
|
13
|
-
var _summarySettings = _interopRequireDefault(require("./summary-settings"));
|
|
14
|
-
var _toggleSetting = _interopRequireDefault(require("../public-setting/toggle-setting"));
|
|
15
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
16
|
-
class MirrorSettings extends _react.Component {
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import BaseSettings from '../public-setting/base-settings';
|
|
4
|
+
import ColumnSettings from '../public-setting/column-settings';
|
|
5
|
+
import SummarySettings from './summary-settings';
|
|
6
|
+
import ToggleSetting from '../public-setting/toggle-setting';
|
|
7
|
+
import { isMirrorColumn } from '../../../utils/column-utils';
|
|
8
|
+
class MirrorSettings extends Component {
|
|
17
9
|
constructor(props) {
|
|
18
10
|
super(props);
|
|
19
11
|
this.getSelectedStatColumnOption = () => {
|
|
@@ -51,7 +43,7 @@ class MirrorSettings extends _react.Component {
|
|
|
51
43
|
columns,
|
|
52
44
|
getColumnsOptions
|
|
53
45
|
} = props;
|
|
54
|
-
const statColumns = columns.filter(column =>
|
|
46
|
+
const statColumns = columns.filter(column => isMirrorColumn(column));
|
|
55
47
|
const groupColumns = columns.filter(column => column.type === 'single-select');
|
|
56
48
|
this.statColumnsOptions = getColumnsOptions(statColumns);
|
|
57
49
|
this.groupColumnsOptions = getColumnsOptions(groupColumns);
|
|
@@ -62,7 +54,7 @@ class MirrorSettings extends _react.Component {
|
|
|
62
54
|
columns,
|
|
63
55
|
getColumnsOptions
|
|
64
56
|
} = nextProps;
|
|
65
|
-
const statColumns = columns.filter(column =>
|
|
57
|
+
const statColumns = columns.filter(column => isMirrorColumn(column));
|
|
66
58
|
this.statColumnsOptions = getColumnsOptions(statColumns);
|
|
67
59
|
const groupColumns = columns.filter(column => column.type === 'single-select');
|
|
68
60
|
this.groupColumnsOptions = getColumnsOptions(groupColumns);
|
|
@@ -83,7 +75,7 @@ class MirrorSettings extends _react.Component {
|
|
|
83
75
|
if (settingType === 'style') {
|
|
84
76
|
return null;
|
|
85
77
|
}
|
|
86
|
-
return /*#__PURE__*/
|
|
78
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
87
79
|
statItem: statItem,
|
|
88
80
|
selectedTableId: statItem.table_id,
|
|
89
81
|
selectedViewId: statItem.view_id,
|
|
@@ -92,30 +84,30 @@ class MirrorSettings extends _react.Component {
|
|
|
92
84
|
getTableById: this.props.getTableById,
|
|
93
85
|
getConvertedChart: this.props.getConvertedChart,
|
|
94
86
|
updateStatItem: this.props.updateStatItem
|
|
95
|
-
}), /*#__PURE__*/
|
|
87
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
96
88
|
className: "statistic-chart-parameter-divider"
|
|
97
|
-
}), /*#__PURE__*/
|
|
89
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
98
90
|
className: "statistic-chart-parameter-item"
|
|
99
|
-
}, /*#__PURE__*/
|
|
91
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Statistic_field')), /*#__PURE__*/React.createElement(ColumnSettings, {
|
|
100
92
|
columnsOptions: this.statColumnsOptions,
|
|
101
93
|
selectedColumnOption: selectedColumnOption,
|
|
102
94
|
onChangeSelectedColumn: this.onSelectStatColumn
|
|
103
|
-
})), /*#__PURE__*/
|
|
95
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
104
96
|
className: "statistic-chart-parameter-item"
|
|
105
|
-
}, /*#__PURE__*/
|
|
106
|
-
label:
|
|
97
|
+
}, /*#__PURE__*/React.createElement(ToggleSetting, {
|
|
98
|
+
label: intl.get('Reversing'),
|
|
107
99
|
isChecked: statItem.is_transpose,
|
|
108
100
|
handleToggleChange: this.handleToggleChange
|
|
109
|
-
})), /*#__PURE__*/
|
|
101
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
110
102
|
className: "statistic-chart-parameter-item"
|
|
111
|
-
}, /*#__PURE__*/
|
|
103
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Column_grouping_field')), /*#__PURE__*/React.createElement(ColumnSettings, {
|
|
112
104
|
columnsOptions: this.groupColumnsOptions,
|
|
113
105
|
selectedColumnOption: selectedGroupColumnOption,
|
|
114
106
|
onChangeSelectedColumn: this.onSelectGroupColumn
|
|
115
|
-
})), /*#__PURE__*/
|
|
107
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
116
108
|
className: "statistic-chart-parameter-divider"
|
|
117
|
-
}), /*#__PURE__*/
|
|
118
|
-
label:
|
|
109
|
+
}), /*#__PURE__*/React.createElement(SummarySettings, {
|
|
110
|
+
label: intl.get('Summary_method'),
|
|
119
111
|
statItem: statItem,
|
|
120
112
|
selectedTableId: selectedTableId,
|
|
121
113
|
numericColumns: numericColumns,
|
|
@@ -129,4 +121,4 @@ class MirrorSettings extends _react.Component {
|
|
|
129
121
|
}));
|
|
130
122
|
}
|
|
131
123
|
}
|
|
132
|
-
|
|
124
|
+
export default MirrorSettings;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _toggleSetting = _interopRequireDefault(require("../../public-setting/toggle-setting"));
|
|
12
|
-
var _axisLabelPositionSetting = _interopRequireDefault(require("../../public-setting/axis-label-position-setting"));
|
|
13
|
-
var _indToggleSetting = _interopRequireDefault(require("../../public-setting/ind-toggle-setting"));
|
|
14
|
-
var _minMaxSetting = _interopRequireDefault(require("../../public-setting/min-max-setting"));
|
|
15
|
-
var _labelFontSizeEditor = _interopRequireDefault(require("../../basic-chart-settings/style-setting/label-font-size-editor"));
|
|
16
|
-
var _constants = require("../../../../constants");
|
|
17
|
-
class CombinationChartStyle extends _react.Component {
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import ToggleSetting from '../../public-setting/toggle-setting';
|
|
4
|
+
import AxisLabelPosition from '../../public-setting/axis-label-position-setting';
|
|
5
|
+
import IndToggleSetting from '../../public-setting/ind-toggle-setting';
|
|
6
|
+
import MinMaxSetting from '../../public-setting/min-max-setting';
|
|
7
|
+
import LabelFontSizeEditor from '../../basic-chart-settings/style-setting/label-font-size-editor';
|
|
8
|
+
import { LABEL_CONFIG_CHANGED } from '../../../../constants';
|
|
9
|
+
class CombinationChartStyle extends Component {
|
|
18
10
|
constructor() {
|
|
19
11
|
super(...arguments);
|
|
20
12
|
this.renderShowAxisLabel = (type, position) => {
|
|
@@ -25,17 +17,17 @@ class CombinationChartStyle extends _react.Component {
|
|
|
25
17
|
show_x_axis_label
|
|
26
18
|
} = statItem || {};
|
|
27
19
|
if (type === 'x') {
|
|
28
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/React.createElement(ToggleSetting, {
|
|
29
21
|
isChecked: show_x_axis_label || false,
|
|
30
22
|
handleToggleChange: this.onToggleXAxisLabel,
|
|
31
|
-
label:
|
|
23
|
+
label: intl.get('Display_title')
|
|
32
24
|
});
|
|
33
25
|
} else {
|
|
34
26
|
const isChecked = this.props.statItem["show_y_axis_".concat(position, "_label")] || false;
|
|
35
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/React.createElement(ToggleSetting, {
|
|
36
28
|
isChecked: isChecked,
|
|
37
29
|
handleToggleChange: () => this.onToggleYAxisLabel(position),
|
|
38
|
-
label:
|
|
30
|
+
label: intl.get('Display_title')
|
|
39
31
|
});
|
|
40
32
|
}
|
|
41
33
|
};
|
|
@@ -52,7 +44,7 @@ class CombinationChartStyle extends _react.Component {
|
|
|
52
44
|
x_axis_label_position: !show_x_axis_label ? 'center' : null
|
|
53
45
|
};
|
|
54
46
|
const newStatItem = Object.assign({}, statItem, updated);
|
|
55
|
-
eventBus.dispatch(
|
|
47
|
+
eventBus.dispatch(LABEL_CONFIG_CHANGED, newStatItem);
|
|
56
48
|
this.props.updateStatItem(newStatItem);
|
|
57
49
|
};
|
|
58
50
|
this.onToggleYAxisLabel = position => {
|
|
@@ -65,7 +57,7 @@ class CombinationChartStyle extends _react.Component {
|
|
|
65
57
|
["y_axis_".concat(position, "_label_position")]: !statItem["show_y_axis_".concat(position, "_label")] ? 'center' : null
|
|
66
58
|
};
|
|
67
59
|
const newStatItem = Object.assign({}, statItem, updated);
|
|
68
|
-
eventBus.dispatch(
|
|
60
|
+
eventBus.dispatch(LABEL_CONFIG_CHANGED, newStatItem);
|
|
69
61
|
this.props.updateStatItem(newStatItem);
|
|
70
62
|
};
|
|
71
63
|
this.onSelectAxisLabelPosition = (type, option, position) => {
|
|
@@ -84,7 +76,7 @@ class CombinationChartStyle extends _react.Component {
|
|
|
84
76
|
eventBus
|
|
85
77
|
} = this.props;
|
|
86
78
|
const newStatItem = Object.assign({}, statItem, updated);
|
|
87
|
-
eventBus.dispatch(
|
|
79
|
+
eventBus.dispatch(LABEL_CONFIG_CHANGED, newStatItem);
|
|
88
80
|
this.props.updateStatItem(newStatItem);
|
|
89
81
|
};
|
|
90
82
|
this.onToggleYAxisAutoRange = key => {
|
|
@@ -150,15 +142,15 @@ class CombinationChartStyle extends _react.Component {
|
|
|
150
142
|
y_axis_max_left
|
|
151
143
|
} = statItem;
|
|
152
144
|
const checked = y_axis_auto_range_left === undefined || y_axis_auto_range_left === null ? true : y_axis_auto_range_left;
|
|
153
|
-
return /*#__PURE__*/
|
|
145
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
154
146
|
className: "mt-1"
|
|
155
|
-
}, /*#__PURE__*/
|
|
147
|
+
}, /*#__PURE__*/React.createElement(ToggleSetting, {
|
|
156
148
|
isChecked: checked,
|
|
157
149
|
handleToggleChange: () => {
|
|
158
150
|
this.onToggleYAxisAutoRange('y_axis_auto_range_left');
|
|
159
151
|
},
|
|
160
|
-
label:
|
|
161
|
-
}), !checked && /*#__PURE__*/
|
|
152
|
+
label: intl.get('Auto_range')
|
|
153
|
+
}), !checked && /*#__PURE__*/React.createElement(MinMaxSetting, {
|
|
162
154
|
min: y_axis_min_left,
|
|
163
155
|
max: y_axis_max_left,
|
|
164
156
|
onMinChange: this.onYAxisMinChange.bind(this, 'y_axis_min_left'),
|
|
@@ -175,15 +167,15 @@ class CombinationChartStyle extends _react.Component {
|
|
|
175
167
|
y_axis_max_right
|
|
176
168
|
} = statItem;
|
|
177
169
|
const checked = y_axis_auto_range_right === undefined || y_axis_auto_range_right === null ? true : y_axis_auto_range_right;
|
|
178
|
-
return /*#__PURE__*/
|
|
170
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
179
171
|
className: "mt-1"
|
|
180
|
-
}, /*#__PURE__*/
|
|
172
|
+
}, /*#__PURE__*/React.createElement(ToggleSetting, {
|
|
181
173
|
isChecked: checked,
|
|
182
174
|
handleToggleChange: () => {
|
|
183
175
|
this.onToggleYAxisAutoRange('y_axis_auto_range_right');
|
|
184
176
|
},
|
|
185
|
-
label:
|
|
186
|
-
}), !checked && /*#__PURE__*/
|
|
177
|
+
label: intl.get('Auto_range')
|
|
178
|
+
}), !checked && /*#__PURE__*/React.createElement(MinMaxSetting, {
|
|
187
179
|
min: y_axis_min_right,
|
|
188
180
|
max: y_axis_max_right,
|
|
189
181
|
onMinChange: this.onYAxisMinChange.bind(this, 'y_axis_min_right'),
|
|
@@ -202,39 +194,39 @@ class CombinationChartStyle extends _react.Component {
|
|
|
202
194
|
display_data = false,
|
|
203
195
|
label_font_size = 12
|
|
204
196
|
} = statItem;
|
|
205
|
-
return /*#__PURE__*/
|
|
197
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
206
198
|
className: "statistic-chart-parameter-item"
|
|
207
|
-
}, /*#__PURE__*/
|
|
199
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('X-axis')), this.renderShowAxisLabel('x'), show_x_axis_label && /*#__PURE__*/React.createElement(AxisLabelPosition, {
|
|
208
200
|
statItem: statItem,
|
|
209
201
|
axisType: 'x',
|
|
210
202
|
onSelectAxisLabelPosition: this.onSelectAxisLabelPosition
|
|
211
|
-
})), /*#__PURE__*/
|
|
203
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
212
204
|
className: "statistic-chart-parameter-divider"
|
|
213
|
-
}), /*#__PURE__*/
|
|
205
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
214
206
|
className: "statistic-chart-parameter-item"
|
|
215
|
-
}, /*#__PURE__*/
|
|
207
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Y-axis(left side)')), this.renderShowAxisLabel('y', 'left'), show_y_axis_left_label && /*#__PURE__*/React.createElement(AxisLabelPosition, {
|
|
216
208
|
statItem: statItem,
|
|
217
209
|
axisType: 'y_left',
|
|
218
210
|
onSelectAxisLabelPosition: (type, option) => this.onSelectAxisLabelPosition(type, option, 'left')
|
|
219
|
-
}), this.renderLeftAutoRange()), /*#__PURE__*/
|
|
211
|
+
}), this.renderLeftAutoRange()), /*#__PURE__*/React.createElement("div", {
|
|
220
212
|
className: "statistic-chart-parameter-item"
|
|
221
|
-
}, /*#__PURE__*/
|
|
213
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Y-axis(right side)')), this.renderShowAxisLabel('y', 'right'), show_y_axis_right_label && /*#__PURE__*/React.createElement(AxisLabelPosition, {
|
|
222
214
|
statItem: statItem,
|
|
223
215
|
axisType: 'y_right',
|
|
224
216
|
onSelectAxisLabelPosition: (type, option) => this.onSelectAxisLabelPosition(type, option, 'right')
|
|
225
|
-
}), this.renderRightAutoRange()), /*#__PURE__*/
|
|
217
|
+
}), this.renderRightAutoRange()), /*#__PURE__*/React.createElement("div", {
|
|
226
218
|
className: "statistic-chart-parameter-divider"
|
|
227
|
-
}), /*#__PURE__*/
|
|
219
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
228
220
|
className: "statistic-chart-parameter-item"
|
|
229
|
-
}, /*#__PURE__*/
|
|
221
|
+
}, /*#__PURE__*/React.createElement(IndToggleSetting, {
|
|
230
222
|
isChecked: display_data,
|
|
231
223
|
handleToggleChange: this.onToggleDisplayData,
|
|
232
|
-
label:
|
|
233
|
-
}), display_data && /*#__PURE__*/
|
|
224
|
+
label: intl.get('Display_data')
|
|
225
|
+
}), display_data && /*#__PURE__*/React.createElement(LabelFontSizeEditor, {
|
|
234
226
|
className: "mt-3",
|
|
235
227
|
fontSize: label_font_size,
|
|
236
228
|
onChangeFontSize: this.onChangeLabelFontSize
|
|
237
229
|
})));
|
|
238
230
|
}
|
|
239
231
|
}
|
|
240
|
-
|
|
232
|
+
export default CombinationChartStyle;
|