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,24 +1,16 @@
|
|
|
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 _mapSetting = _interopRequireDefault(require("./style-setting/map-setting"));
|
|
15
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
16
|
-
class WordMapSettings 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 MapStyleSetting from './style-setting/map-setting';
|
|
7
|
+
import { isWorldMapColumn } from '../../../utils/column-utils';
|
|
8
|
+
class WordMapSettings extends Component {
|
|
17
9
|
constructor(props) {
|
|
18
10
|
super(props);
|
|
19
11
|
this.getColumns = columns => {
|
|
20
12
|
if (!Array.isArray(columns) || columns.length === 0) return [];
|
|
21
|
-
return columns.filter(column =>
|
|
13
|
+
return columns.filter(column => isWorldMapColumn(column));
|
|
22
14
|
};
|
|
23
15
|
this.getSelectedTextColumnOption = () => {
|
|
24
16
|
return this.textColumnsOptions.find(option => option.value.key === this.props.statItem.column);
|
|
@@ -65,14 +57,14 @@ class WordMapSettings extends _react.Component {
|
|
|
65
57
|
view_id: selectedViewId
|
|
66
58
|
} = statItem;
|
|
67
59
|
if (settingType === 'style') {
|
|
68
|
-
return /*#__PURE__*/
|
|
60
|
+
return /*#__PURE__*/React.createElement(MapStyleSetting, {
|
|
69
61
|
statItem: statItem,
|
|
70
62
|
currentColor: statItem.data_color,
|
|
71
63
|
onChangeColor: this.props.onChangeColor,
|
|
72
64
|
updateStatItem: this.props.updateStatItem
|
|
73
65
|
});
|
|
74
66
|
}
|
|
75
|
-
return /*#__PURE__*/
|
|
67
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
76
68
|
statItem: statItem,
|
|
77
69
|
selectedTableId: selectedTableId,
|
|
78
70
|
selectedViewId: selectedViewId,
|
|
@@ -81,18 +73,18 @@ class WordMapSettings extends _react.Component {
|
|
|
81
73
|
getTableById: this.props.getTableById,
|
|
82
74
|
getConvertedChart: this.props.getConvertedChart,
|
|
83
75
|
updateStatItem: this.props.updateStatItem
|
|
84
|
-
}), /*#__PURE__*/
|
|
76
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
85
77
|
className: "statistic-chart-parameter-divider"
|
|
86
|
-
}), /*#__PURE__*/
|
|
78
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
87
79
|
className: "statistic-chart-parameter-item"
|
|
88
|
-
}, /*#__PURE__*/
|
|
80
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Location_field')), /*#__PURE__*/React.createElement(ColumnSettings, {
|
|
89
81
|
columnsOptions: this.textColumnsOptions,
|
|
90
82
|
selectedColumnOption: selectedTextColumnOption,
|
|
91
83
|
onChangeSelectedColumn: this.onSelectTextColumn
|
|
92
|
-
})), /*#__PURE__*/
|
|
84
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
93
85
|
className: "statistic-chart-parameter-divider"
|
|
94
|
-
}), /*#__PURE__*/
|
|
95
|
-
label:
|
|
86
|
+
}), /*#__PURE__*/React.createElement(SummarySettings, {
|
|
87
|
+
label: intl.get('Summary_method'),
|
|
96
88
|
statItem: statItem,
|
|
97
89
|
selectedTableId: selectedTableId,
|
|
98
90
|
numericColumns: numericColumns,
|
|
@@ -106,4 +98,4 @@ class WordMapSettings extends _react.Component {
|
|
|
106
98
|
}));
|
|
107
99
|
}
|
|
108
100
|
}
|
|
109
|
-
|
|
101
|
+
export default WordMapSettings;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
12
|
-
var _dataSortSetting = _interopRequireDefault(require("../public-setting/data-sort-setting"));
|
|
13
|
-
var _barChartStyleSetting = _interopRequireDefault(require("./style-setting/bar-chart-style-setting"));
|
|
14
|
-
var _groupbySettings = _interopRequireDefault(require("./groupby-settings"));
|
|
15
|
-
var _yAxisGroupSettings = _interopRequireDefault(require("./y-axis-group-settings"));
|
|
16
|
-
var _constants = require("../../../constants");
|
|
17
|
-
class AdvanceBarChartSettings 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 DataSort from '../public-setting/data-sort-setting';
|
|
5
|
+
import BarChartStyle from './style-setting/bar-chart-style-setting';
|
|
6
|
+
import GroupbySettings from './groupby-settings';
|
|
7
|
+
import YAxisGroupSettings from './y-axis-group-settings';
|
|
8
|
+
import { GROUPBY_TYPE, STAT_TYPE } from '../../../constants';
|
|
9
|
+
class AdvanceBarChartSettings extends Component {
|
|
18
10
|
constructor() {
|
|
19
11
|
super(...arguments);
|
|
20
12
|
this.onSelectGroupbyColumn = (type, groupbyColumnKey, groupbyDateGranularity, groupbyGeolocationGranularity) => {
|
|
@@ -88,8 +80,8 @@ class AdvanceBarChartSettings extends _react.Component {
|
|
|
88
80
|
y_axis_summary_method
|
|
89
81
|
} = statItem || {};
|
|
90
82
|
if (settingType === 'style') {
|
|
91
|
-
return /*#__PURE__*/
|
|
92
|
-
showRangeSetting: type !==
|
|
83
|
+
return /*#__PURE__*/React.createElement(BarChartStyle, {
|
|
84
|
+
showRangeSetting: type !== STAT_TYPE.BAR_STACK,
|
|
93
85
|
statItem: statItem,
|
|
94
86
|
labelColorConfigs: labelColorConfigs,
|
|
95
87
|
eventBus: eventBus,
|
|
@@ -97,7 +89,7 @@ class AdvanceBarChartSettings extends _react.Component {
|
|
|
97
89
|
updateStatItem: this.props.updateStatItem
|
|
98
90
|
});
|
|
99
91
|
}
|
|
100
|
-
return /*#__PURE__*/
|
|
92
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
101
93
|
statItem: statItem,
|
|
102
94
|
selectedTableId: selectedTableId,
|
|
103
95
|
selectedViewId: selectedViewId,
|
|
@@ -106,26 +98,26 @@ class AdvanceBarChartSettings extends _react.Component {
|
|
|
106
98
|
getTableById: this.props.getTableById,
|
|
107
99
|
getConvertedChart: this.props.getConvertedChart,
|
|
108
100
|
updateStatItem: this.props.updateStatItem
|
|
109
|
-
}), /*#__PURE__*/
|
|
101
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
110
102
|
className: "statistic-chart-parameter-divider"
|
|
111
|
-
}), /*#__PURE__*/
|
|
103
|
+
}), /*#__PURE__*/React.createElement(GroupbySettings, {
|
|
112
104
|
selectedTable: selectedTable,
|
|
113
105
|
columnsOptions: generalColumnsOptions,
|
|
114
106
|
dateGranularityOptions: dateGranularityOptions,
|
|
115
107
|
geolocationGranularityOptions: geolocationGranularityOptions,
|
|
116
|
-
label:
|
|
108
|
+
label: intl.get('X-axis'),
|
|
117
109
|
groupbyColumnKey: x_axis_column_key,
|
|
118
110
|
groupbyDateGranularity: x_axis_date_granularity,
|
|
119
111
|
groupbyGeolocationGranularity: x_axis_geolocation_granularity,
|
|
120
112
|
getSelectedColumnOption: this.props.getSelectedColumnOption,
|
|
121
|
-
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this,
|
|
122
|
-
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this,
|
|
123
|
-
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this,
|
|
113
|
+
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this, GROUPBY_TYPE.ROW),
|
|
114
|
+
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this, GROUPBY_TYPE.ROW),
|
|
115
|
+
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this, GROUPBY_TYPE.ROW),
|
|
124
116
|
renderIncludeEmpty: renderIncludeEmpty
|
|
125
|
-
}), /*#__PURE__*/
|
|
117
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
126
118
|
className: "statistic-chart-parameter-divider"
|
|
127
|
-
}), /*#__PURE__*/
|
|
128
|
-
label:
|
|
119
|
+
}), /*#__PURE__*/React.createElement(YAxisGroupSettings, {
|
|
120
|
+
label: intl.get('Y-axis'),
|
|
129
121
|
statItem: statItem,
|
|
130
122
|
selectedTable: selectedTable,
|
|
131
123
|
summaryType: y_axis_summary_type,
|
|
@@ -137,17 +129,17 @@ class AdvanceBarChartSettings extends _react.Component {
|
|
|
137
129
|
numericColumnsOptions: numericColumnsOptions,
|
|
138
130
|
getSelectedColumnOption: this.props.getSelectedColumnOption,
|
|
139
131
|
onChangeColumnGroupbyType: this.updateColumnGroupby,
|
|
140
|
-
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this,
|
|
141
|
-
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this,
|
|
142
|
-
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this,
|
|
132
|
+
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this, GROUPBY_TYPE.COLUMN),
|
|
133
|
+
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this, GROUPBY_TYPE.COLUMN),
|
|
134
|
+
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this, GROUPBY_TYPE.COLUMN),
|
|
143
135
|
updatedColumnGroupbyNumericColumns: this.updatedColumnGroupbyNumericColumns,
|
|
144
136
|
updateStatItem: this.props.updateStatItem
|
|
145
|
-
}), type ===
|
|
137
|
+
}), type === STAT_TYPE.BAR_STACK && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
146
138
|
className: "statistic-chart-parameter-divider"
|
|
147
|
-
}), /*#__PURE__*/
|
|
139
|
+
}), /*#__PURE__*/React.createElement(DataSort, {
|
|
148
140
|
statItem: statItem,
|
|
149
141
|
updateStatItem: this.props.updateStatItem
|
|
150
142
|
})));
|
|
151
143
|
}
|
|
152
144
|
}
|
|
153
|
-
|
|
145
|
+
export default AdvanceBarChartSettings;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
12
|
-
var _barChartStyleSetting = _interopRequireDefault(require("./style-setting/bar-chart-style-setting"));
|
|
13
|
-
var _groupbySettings = _interopRequireDefault(require("./groupby-settings"));
|
|
14
|
-
var _summarySettings = _interopRequireDefault(require("./summary-settings"));
|
|
15
|
-
var _dataSortSetting = _interopRequireDefault(require("../public-setting/data-sort-setting"));
|
|
16
|
-
var _constants = require("../../../constants");
|
|
17
|
-
class BarSettings 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 BarChartStyle from './style-setting/bar-chart-style-setting';
|
|
5
|
+
import GroupbySettings from './groupby-settings';
|
|
6
|
+
import SummarySettings from './summary-settings';
|
|
7
|
+
import DataSort from '../public-setting/data-sort-setting';
|
|
8
|
+
import { GROUPBY_TYPE } from '../../../constants';
|
|
9
|
+
class BarSettings extends Component {
|
|
18
10
|
constructor() {
|
|
19
11
|
super(...arguments);
|
|
20
12
|
this.onSelectGroupbyColumn = (type, groupbyColumnKey, groupbyDateGranularity, groupbyGeolocationGranularity) => {
|
|
@@ -86,7 +78,7 @@ class BarSettings extends _react.Component {
|
|
|
86
78
|
y_axis_summary_method
|
|
87
79
|
} = statItem || {};
|
|
88
80
|
if (settingType === 'style') {
|
|
89
|
-
return /*#__PURE__*/
|
|
81
|
+
return /*#__PURE__*/React.createElement(BarChartStyle, {
|
|
90
82
|
statItem: statItem,
|
|
91
83
|
labelColorConfigs: labelColorConfigs,
|
|
92
84
|
eventBus: eventBus,
|
|
@@ -94,7 +86,7 @@ class BarSettings extends _react.Component {
|
|
|
94
86
|
updateStatItem: this.props.updateStatItem
|
|
95
87
|
});
|
|
96
88
|
}
|
|
97
|
-
return /*#__PURE__*/
|
|
89
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
98
90
|
statItem: statItem,
|
|
99
91
|
selectedTableId: selectedTableId,
|
|
100
92
|
selectedViewId: selectedViewId,
|
|
@@ -103,28 +95,28 @@ class BarSettings extends _react.Component {
|
|
|
103
95
|
getTableById: this.props.getTableById,
|
|
104
96
|
getConvertedChart: this.props.getConvertedChart,
|
|
105
97
|
updateStatItem: this.props.updateStatItem
|
|
106
|
-
}), /*#__PURE__*/
|
|
98
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
107
99
|
className: "statistic-chart-parameter-divider"
|
|
108
|
-
}), /*#__PURE__*/
|
|
100
|
+
}), /*#__PURE__*/React.createElement(GroupbySettings, {
|
|
109
101
|
selectedTable: selectedTable,
|
|
110
102
|
columnsOptions: generalColumnsOptions,
|
|
111
103
|
dateGranularityOptions: dateGranularityOptions,
|
|
112
104
|
geolocationGranularityOptions: geolocationGranularityOptions,
|
|
113
|
-
label:
|
|
114
|
-
placeholder:
|
|
105
|
+
label: intl.get('X-axis'),
|
|
106
|
+
placeholder: intl.get('Select_a_column'),
|
|
115
107
|
groupbyColumnKey: x_axis_column_key,
|
|
116
108
|
groupbyDateGranularity: x_axis_date_granularity,
|
|
117
109
|
groupbyGeolocationGranularity: x_axis_geolocation_granularity,
|
|
118
110
|
getSelectedColumnOption: this.props.getSelectedColumnOption,
|
|
119
|
-
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this,
|
|
120
|
-
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this,
|
|
121
|
-
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this,
|
|
111
|
+
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this, GROUPBY_TYPE.ROW),
|
|
112
|
+
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this, GROUPBY_TYPE.ROW),
|
|
113
|
+
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this, GROUPBY_TYPE.ROW),
|
|
122
114
|
renderIncludeEmpty: renderIncludeEmpty
|
|
123
|
-
}), /*#__PURE__*/
|
|
115
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
124
116
|
className: "statistic-chart-parameter-divider"
|
|
125
|
-
}), /*#__PURE__*/
|
|
117
|
+
}), /*#__PURE__*/React.createElement(SummarySettings, {
|
|
126
118
|
statItem: statItem,
|
|
127
|
-
label:
|
|
119
|
+
label: intl.get('Y-axis'),
|
|
128
120
|
numericColumnsOptions: numericColumnsOptions,
|
|
129
121
|
summaryType: y_axis_summary_type,
|
|
130
122
|
summaryColumnKey: y_axis_column_key,
|
|
@@ -133,12 +125,12 @@ class BarSettings extends _react.Component {
|
|
|
133
125
|
onChangeSummaryType: this.updatedSummaryType,
|
|
134
126
|
onSelectNumericColumn: this.updateSummaryColumn,
|
|
135
127
|
onSelectSummaryMethod: this.updateSummaryMethod
|
|
136
|
-
}), /*#__PURE__*/
|
|
128
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
137
129
|
className: "statistic-chart-parameter-divider"
|
|
138
|
-
}), /*#__PURE__*/
|
|
130
|
+
}), /*#__PURE__*/React.createElement(DataSort, {
|
|
139
131
|
statItem: statItem,
|
|
140
132
|
updateStatItem: this.props.updateStatItem
|
|
141
133
|
}));
|
|
142
134
|
}
|
|
143
135
|
}
|
|
144
|
-
|
|
136
|
+
export default BarSettings;
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _components = require("../../../components");
|
|
13
|
-
var _completenessStyle = _interopRequireDefault(require("./style-setting/completeness-style"));
|
|
14
|
-
var _groupbySettings = _interopRequireDefault(require("./groupby-settings"));
|
|
15
|
-
var _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
16
|
-
var _dataSortSetting = _interopRequireDefault(require("../public-setting/data-sort-setting"));
|
|
17
|
-
var _constants = require("../../../constants");
|
|
18
|
-
const COLUMN_TYPES = [_dtableStore.CellType.TEXT, _dtableStore.CellType.COLLABORATOR, _dtableStore.CellType.SINGLE_SELECT];
|
|
19
|
-
class CompletenessSetting extends _react.Component {
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import { CellType, TableUtils } from 'dtable-store';
|
|
4
|
+
import { DTableSelect } from '../../../components';
|
|
5
|
+
import CompletenessStyle from './style-setting/completeness-style';
|
|
6
|
+
import GroupbySettings from './groupby-settings';
|
|
7
|
+
import BaseSettings from '../public-setting/base-settings';
|
|
8
|
+
import DataSort from '../public-setting/data-sort-setting';
|
|
9
|
+
import { TIME_COLUMN_LIST, STAT_TYPE } from '../../../constants';
|
|
10
|
+
const COLUMN_TYPES = [CellType.TEXT, CellType.COLLABORATOR, CellType.SINGLE_SELECT];
|
|
11
|
+
class CompletenessSetting extends Component {
|
|
20
12
|
constructor(props) {
|
|
21
13
|
super(props);
|
|
22
14
|
this.renderNameSettings = () => {
|
|
@@ -28,10 +20,10 @@ class CompletenessSetting extends _react.Component {
|
|
|
28
20
|
name_column
|
|
29
21
|
} = statItem;
|
|
30
22
|
const selectedItem = getSelectedColumnOption(name_column, this.columnOptions);
|
|
31
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
32
24
|
className: "statistic-chart-parameter-item"
|
|
33
|
-
}, /*#__PURE__*/
|
|
34
|
-
placeholder:
|
|
25
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Name_field')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
26
|
+
placeholder: intl.get('Select_a_column'),
|
|
35
27
|
value: selectedItem,
|
|
36
28
|
onChange: this.onSelectGroupColumn,
|
|
37
29
|
options: this.columnOptions
|
|
@@ -54,10 +46,10 @@ class CompletenessSetting extends _react.Component {
|
|
|
54
46
|
completed_column
|
|
55
47
|
} = statItem;
|
|
56
48
|
const selectedItem = getSelectedColumnOption(completed_column, this.props.numericColumnsOptions);
|
|
57
|
-
return /*#__PURE__*/
|
|
49
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
58
50
|
className: "statistic-chart-parameter-item"
|
|
59
|
-
}, /*#__PURE__*/
|
|
60
|
-
placeholder:
|
|
51
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Completion_value_field')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
52
|
+
placeholder: intl.get('Select_a_column'),
|
|
61
53
|
value: selectedItem,
|
|
62
54
|
onChange: this.onSelectCompletionColumn,
|
|
63
55
|
options: this.props.numericColumnsOptions
|
|
@@ -77,12 +69,12 @@ class CompletenessSetting extends _react.Component {
|
|
|
77
69
|
date_granularity,
|
|
78
70
|
geolocation_granularity
|
|
79
71
|
} = statItem;
|
|
80
|
-
return /*#__PURE__*/
|
|
72
|
+
return /*#__PURE__*/React.createElement(GroupbySettings, {
|
|
81
73
|
selectedTable: selectedTable,
|
|
82
74
|
columnsOptions: columnGroupbyColumnsOptions,
|
|
83
75
|
dateGranularityOptions: dateGranularityOptions,
|
|
84
76
|
geolocationGranularityOptions: geolocationGranularityOptions,
|
|
85
|
-
label:
|
|
77
|
+
label: intl.get('Group_by'),
|
|
86
78
|
groupbyColumnKey: group_column,
|
|
87
79
|
groupbyDateGranularity: date_granularity,
|
|
88
80
|
groupbyGeolocationGranularity: geolocation_granularity,
|
|
@@ -98,12 +90,12 @@ class CompletenessSetting extends _react.Component {
|
|
|
98
90
|
selectedTable
|
|
99
91
|
} = this.props;
|
|
100
92
|
if (key === statItem.group_column) return;
|
|
101
|
-
const selectedColumn =
|
|
93
|
+
const selectedColumn = TableUtils.getTableColumnByKey(selectedTable, key);
|
|
102
94
|
const newStatItem = {};
|
|
103
|
-
if (selectedColumn &&
|
|
95
|
+
if (selectedColumn && TIME_COLUMN_LIST.includes(selectedColumn.type)) {
|
|
104
96
|
newStatItem.date_granularity = 'month';
|
|
105
97
|
}
|
|
106
|
-
if (selectedColumn.type ===
|
|
98
|
+
if (selectedColumn.type === CellType.GEOLOCATION) {
|
|
107
99
|
newStatItem.geolocation_granularity = 'district';
|
|
108
100
|
}
|
|
109
101
|
newStatItem.group_column = key;
|
|
@@ -144,10 +136,10 @@ class CompletenessSetting extends _react.Component {
|
|
|
144
136
|
target_column
|
|
145
137
|
} = statItem;
|
|
146
138
|
const selectedItem = getSelectedColumnOption(target_column, this.props.numericColumnsOptions);
|
|
147
|
-
return /*#__PURE__*/
|
|
139
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
148
140
|
className: "statistic-chart-parameter-item"
|
|
149
|
-
}, /*#__PURE__*/
|
|
150
|
-
placeholder:
|
|
141
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Total_value_field')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
142
|
+
placeholder: intl.get('Select_a_column'),
|
|
151
143
|
value: selectedItem,
|
|
152
144
|
onChange: this.onSelectTotalColumn,
|
|
153
145
|
options: this.props.numericColumnsOptions
|
|
@@ -183,14 +175,14 @@ class CompletenessSetting extends _react.Component {
|
|
|
183
175
|
table_id: selectedTableId,
|
|
184
176
|
view_id: selectedViewId
|
|
185
177
|
} = statItem || {};
|
|
186
|
-
const isGroupChart = statItem.type ===
|
|
178
|
+
const isGroupChart = statItem.type === STAT_TYPE.GROUP_COMPLETENESS_CHART;
|
|
187
179
|
if (settingType === 'style') {
|
|
188
|
-
return /*#__PURE__*/
|
|
180
|
+
return /*#__PURE__*/React.createElement(CompletenessStyle, {
|
|
189
181
|
statItem: statItem,
|
|
190
182
|
updateStatItem: this.props.updateStatItem
|
|
191
183
|
});
|
|
192
184
|
}
|
|
193
|
-
return /*#__PURE__*/
|
|
185
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
194
186
|
statItem: statItem,
|
|
195
187
|
selectedTableId: selectedTableId,
|
|
196
188
|
selectedViewId: selectedViewId,
|
|
@@ -199,16 +191,16 @@ class CompletenessSetting extends _react.Component {
|
|
|
199
191
|
getTableById: this.props.getTableById,
|
|
200
192
|
getConvertedChart: this.props.getConvertedChart,
|
|
201
193
|
updateStatItem: this.props.updateStatItem
|
|
202
|
-
}), /*#__PURE__*/
|
|
194
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
203
195
|
className: "statistic-chart-parameter-divider"
|
|
204
|
-
}), this.renderNameSettings(), /*#__PURE__*/
|
|
196
|
+
}), this.renderNameSettings(), /*#__PURE__*/React.createElement("div", {
|
|
205
197
|
className: "statistic-chart-parameter-divider"
|
|
206
|
-
}), this.renderCompletionSettings(), this.renderTotalValueSettings(), isGroupChart && this.renderGroupSettings(), !isGroupChart && /*#__PURE__*/
|
|
198
|
+
}), this.renderCompletionSettings(), this.renderTotalValueSettings(), isGroupChart && this.renderGroupSettings(), !isGroupChart && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
207
199
|
className: "statistic-chart-parameter-divider"
|
|
208
|
-
}), /*#__PURE__*/
|
|
200
|
+
}), /*#__PURE__*/React.createElement(DataSort, {
|
|
209
201
|
statItem: statItem,
|
|
210
202
|
updateStatItem: this.props.updateStatItem
|
|
211
203
|
})));
|
|
212
204
|
}
|
|
213
205
|
}
|
|
214
|
-
|
|
206
|
+
export default CompletenessSetting;
|
|
@@ -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 _groupbySettings = _interopRequireDefault(require("./groupby-settings"));
|
|
13
|
-
var _stacksSettings = _interopRequireDefault(require("./stacks-settings"));
|
|
14
|
-
var _barChartStyleSetting = _interopRequireDefault(require("./style-setting/bar-chart-style-setting"));
|
|
15
|
-
var _constants = require("../../../constants");
|
|
16
|
-
class CustomBarSettings 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 GroupbySettings from './groupby-settings';
|
|
5
|
+
import StacksSettings from './stacks-settings';
|
|
6
|
+
import BarChartStyle from './style-setting/bar-chart-style-setting';
|
|
7
|
+
import { GROUPBY_TYPE, STAT_TYPE } from '../../../constants';
|
|
8
|
+
class CustomBarSettings extends Component {
|
|
17
9
|
constructor() {
|
|
18
10
|
super(...arguments);
|
|
19
11
|
this.onSelectGroupbyColumn = (type, groupbyColumnKey, groupbyDateGranularity, groupbyGeolocationGranularity) => {
|
|
@@ -40,7 +32,7 @@ class CustomBarSettings extends _react.Component {
|
|
|
40
32
|
const {
|
|
41
33
|
y_axises
|
|
42
34
|
} = this.props.statItem;
|
|
43
|
-
return Array.isArray(y_axises) && y_axises.some(yAxis => yAxis.type ===
|
|
35
|
+
return Array.isArray(y_axises) && y_axises.some(yAxis => yAxis.type === STAT_TYPE.BAR_STACK);
|
|
44
36
|
};
|
|
45
37
|
}
|
|
46
38
|
render() {
|
|
@@ -68,7 +60,7 @@ class CustomBarSettings extends _react.Component {
|
|
|
68
60
|
} = statItem || {};
|
|
69
61
|
const hasYAxisStack = this.hasYAxisStack();
|
|
70
62
|
if (settingType === 'style') {
|
|
71
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/React.createElement(BarChartStyle, {
|
|
72
64
|
showRangeSetting: false,
|
|
73
65
|
hideDisplayDataSetting: true,
|
|
74
66
|
enableYAxisCustomTitle: hasYAxisStack,
|
|
@@ -80,7 +72,7 @@ class CustomBarSettings extends _react.Component {
|
|
|
80
72
|
updateStatItem: this.props.updateStatItem
|
|
81
73
|
});
|
|
82
74
|
}
|
|
83
|
-
return /*#__PURE__*/
|
|
75
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
84
76
|
statItem: statItem,
|
|
85
77
|
selectedTableId: table_id,
|
|
86
78
|
selectedViewId: view_id,
|
|
@@ -89,33 +81,33 @@ class CustomBarSettings extends _react.Component {
|
|
|
89
81
|
getViews: getViews,
|
|
90
82
|
getConvertedChart: this.props.getConvertedChart,
|
|
91
83
|
updateStatItem: this.props.updateStatItem
|
|
92
|
-
}), /*#__PURE__*/
|
|
84
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
93
85
|
className: "statistic-chart-parameter-divider"
|
|
94
|
-
}), /*#__PURE__*/
|
|
86
|
+
}), /*#__PURE__*/React.createElement(GroupbySettings, {
|
|
95
87
|
selectedTable: selectedTable,
|
|
96
88
|
columnsOptions: generalColumnsOptions,
|
|
97
89
|
dateGranularityOptions: dateGranularityOptions,
|
|
98
90
|
geolocationGranularityOptions: geolocationGranularityOptions,
|
|
99
|
-
label:
|
|
91
|
+
label: intl.get('X-axis'),
|
|
100
92
|
groupbyColumnKey: x_axis_column_key,
|
|
101
93
|
groupbyDateGranularity: x_axis_date_granularity,
|
|
102
94
|
groupbyGeolocationGranularity: x_axis_geolocation_granularity,
|
|
103
95
|
getSelectedColumnOption: this.props.getSelectedColumnOption,
|
|
104
|
-
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this,
|
|
105
|
-
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this,
|
|
106
|
-
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this,
|
|
96
|
+
onSelectGroupbyColumn: this.onSelectGroupbyColumn.bind(this, GROUPBY_TYPE.ROW),
|
|
97
|
+
onSelectGroupbyDateGranularity: this.onSelectGroupbyDateGranularity.bind(this, GROUPBY_TYPE.ROW),
|
|
98
|
+
onSelectGroupbyGeolocationGranularity: this.onSelectGroupbyGeolocationGranularity.bind(this, GROUPBY_TYPE.ROW),
|
|
107
99
|
renderIncludeEmpty: renderIncludeEmpty
|
|
108
|
-
}), /*#__PURE__*/
|
|
100
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
109
101
|
className: "statistic-chart-parameter-divider"
|
|
110
|
-
}), /*#__PURE__*/
|
|
102
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
111
103
|
className: "statistic-chart-parameter-item"
|
|
112
|
-
}, /*#__PURE__*/
|
|
104
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Y-axis')), /*#__PURE__*/React.createElement("div", {
|
|
113
105
|
className: "statistic-custom-bar-setting-y-axises"
|
|
114
|
-
}, /*#__PURE__*/
|
|
106
|
+
}, /*#__PURE__*/React.createElement(StacksSettings, {
|
|
115
107
|
statItem: statItem,
|
|
116
108
|
numericColumnsOptions: numericColumnsOptions,
|
|
117
109
|
updateStatItem: this.props.updateStatItem
|
|
118
110
|
}))));
|
|
119
111
|
}
|
|
120
112
|
}
|
|
121
|
-
|
|
113
|
+
export default CustomBarSettings;
|