sea-chart 2.0.37 → 2.0.38
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/dist/api/index.js +20 -69
- package/dist/assets/css/sea-chart-d3-tooltip.css +0 -1
- package/dist/components/cell-factory/FormatterConfig.js +55 -62
- package/dist/components/cell-factory/SimpleCellFormatter.js +5 -12
- package/dist/components/cell-factory/SingleSelectOption.js +11 -18
- package/dist/components/cell-factory/cell-editor-factory.js +5 -12
- package/dist/components/cell-factory/cell-formatter-factory.js +4 -11
- package/dist/components/cell-factory/link-content.js +30 -38
- package/dist/components/chart-color-selector/color-selector.js +11 -18
- package/dist/components/collaborator/index.js +7 -14
- package/dist/components/color-picker/index.js +12 -19
- package/dist/components/color-popover/color-rules/color-rule.js +26 -34
- package/dist/components/color-popover/color-rules/index.js +7 -15
- package/dist/components/color-popover/color-rules/rule-filters/filter.js +27 -34
- package/dist/components/color-popover/color-rules/rule-filters/index.js +17 -25
- package/dist/components/color-popover/color-rules/rule-filters/number-input.js +9 -17
- package/dist/components/color-popover/color-rules-popover.js +31 -37
- package/dist/components/color-popover/color-selector-popover.js +12 -20
- package/dist/components/color-setting/color-group-selector.js +13 -21
- package/dist/components/common-add-tool/index.js +8 -15
- package/dist/components/data-process-setter/data-setting-header.js +7 -14
- package/dist/components/data-process-setter/hide-column-setter.js +13 -20
- package/dist/components/data-process-setter/index.js +4 -27
- package/dist/components/data-process-setter/sort-setter.js +18 -26
- package/dist/components/draggable/Draggable.js +7 -13
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +41 -48
- package/dist/components/drill-down-settings/drill-down-fields-settings/index.js +10 -18
- package/dist/components/drill-down-settings/index.js +11 -18
- package/dist/components/dtable-popover/index.js +13 -20
- package/dist/components/dtable-search-input/index.js +13 -21
- package/dist/components/font-settings/index.js +14 -22
- package/dist/components/goal-line-setting/goal-setting-item.js +6 -14
- package/dist/components/goal-line-setting/index.js +12 -19
- package/dist/components/highlighter/highlighter.js +7 -14
- package/dist/components/icon/index.js +12 -23
- package/dist/components/index.js +7 -48
- package/dist/components/loading/index.js +6 -13
- package/dist/components/number-input/index.js +11 -24
- package/dist/components/pixel-editor/index.js +15 -23
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +13 -16
- package/dist/components/popover/hide-column-popover/hide-column-popover.css +5 -1
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +28 -38
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +9 -18
- package/dist/components/popover/sort-popover/sort-popover.js +58 -69
- package/dist/components/resize-handle/ResizeHandle.js +6 -13
- package/dist/components/row-card/row-card-header-cell.js +17 -24
- package/dist/components/row-card/row-card-header.js +15 -22
- package/dist/components/row-card/row-card-item.js +35 -43
- package/dist/components/row-card/row-card.js +17 -25
- package/dist/components/statistic-record-dialog/index.js +61 -68
- package/dist/components/tooltip/index.js +39 -28
- package/dist/components/types-dialog/index.js +62 -70
- package/dist/components/types-dialog/use-force-update.js +4 -10
- package/dist/constants/color-rules.js +8 -14
- package/dist/constants/common-constants.js +8 -14
- package/dist/constants/error.js +2 -8
- package/dist/constants/geolocation.js +9 -15
- package/dist/constants/index.js +142 -271
- package/dist/constants/key-codes.js +0 -2
- package/dist/constants/model.js +3 -9
- package/dist/constants/regions.js +3 -8
- package/dist/constants/style.js +6 -12
- package/dist/constants/table.js +1 -7
- package/dist/constants/type-image.js +33 -39
- package/dist/constants/type.js +3 -9
- package/dist/context.js +13 -20
- package/dist/editor/index.js +13 -16
- package/dist/index.js +13 -104
- package/dist/intl.js +10 -17
- package/dist/locale/index.js +16 -23
- package/dist/locale/lang/de.js +2 -7
- package/dist/locale/lang/en.js +2 -7
- package/dist/locale/lang/es.js +2 -7
- package/dist/locale/lang/fr.js +2 -7
- package/dist/locale/lang/pt.js +2 -7
- package/dist/locale/lang/ru.js +2 -7
- package/dist/locale/lang/zh_CN.js +2 -7
- package/dist/model/area-group.js +12 -19
- package/dist/model/area.js +12 -19
- package/dist/model/bar-custom.js +11 -18
- package/dist/model/bar-group.js +12 -19
- package/dist/model/bar-stack.js +10 -17
- package/dist/model/bar.js +11 -18
- package/dist/model/base-model.js +4 -11
- package/dist/model/basic-number-card.js +13 -20
- package/dist/model/chart.js +7 -13
- package/dist/model/combination.js +15 -22
- package/dist/model/compare-bar.js +14 -21
- package/dist/model/completeness-group.js +11 -18
- package/dist/model/completeness.js +10 -17
- package/dist/model/dashboard.js +7 -14
- package/dist/model/funnel.js +14 -21
- package/dist/model/generic-model.js +135 -143
- package/dist/model/heat-map.js +9 -16
- package/dist/model/horizontal-bar.js +11 -18
- package/dist/model/horizontal-group-bar.js +10 -17
- package/dist/model/index.js +69 -93
- package/dist/model/line-group.js +13 -20
- package/dist/model/line.js +12 -19
- package/dist/model/map-bubble.js +14 -17
- package/dist/model/map.js +12 -19
- package/dist/model/mirror.js +13 -20
- package/dist/model/pie.js +12 -19
- package/dist/model/ring.js +12 -19
- package/dist/model/scatter.js +10 -17
- package/dist/model/stacked-horizontal-bar.js +11 -18
- package/dist/model/table-element.js +5 -12
- package/dist/model/table.js +7 -14
- package/dist/model/tree-map.js +7 -14
- package/dist/model/trend.js +11 -18
- package/dist/model/user.js +1 -7
- package/dist/model/world-map-bubble.js +12 -19
- package/dist/model/world-map.js +12 -19
- package/dist/services/map-json.js +14 -17
- package/dist/settings/advance-bar-settings/data-settings.js +36 -44
- package/dist/settings/advance-bar-settings/index.js +3 -20
- package/dist/settings/advance-bar-settings/style-settings.js +66 -73
- package/dist/settings/bar-settings/data-settings.js +39 -47
- package/dist/settings/bar-settings/index.js +3 -20
- package/dist/settings/bar-settings/style-settings.js +51 -59
- package/dist/settings/basic-number-card/data-settings.js +50 -57
- package/dist/settings/basic-number-card/index.js +3 -20
- package/dist/settings/basic-number-card/style-settings.js +19 -27
- package/dist/settings/combination-settings/data-settings.js +55 -64
- package/dist/settings/combination-settings/index.js +3 -20
- package/dist/settings/combination-settings/style-settings.js +67 -75
- package/dist/settings/completeness-settings/callbacks/callbacks.js +16 -27
- package/dist/settings/completeness-settings/data-settings/completion-settings.js +21 -28
- package/dist/settings/completeness-settings/data-settings/data-settings.js +25 -32
- package/dist/settings/completeness-settings/index.js +3 -20
- package/dist/settings/completeness-settings/style-settings.js +19 -26
- package/dist/settings/dashboard-settings/data-settings.js +44 -51
- package/dist/settings/dashboard-settings/index.js +2 -13
- package/dist/settings/data-settings.js +72 -79
- package/dist/settings/funnel-settings/components/dnd-item/dnd-item.js +12 -19
- package/dist/settings/funnel-settings/components/dnd-list.js +15 -23
- package/dist/settings/funnel-settings/components/funnel-label-setting.js +32 -40
- package/dist/settings/funnel-settings/components/funnel-layer-setting.js +22 -30
- package/dist/settings/funnel-settings/data-settings.js +23 -31
- package/dist/settings/funnel-settings/index.js +3 -20
- package/dist/settings/funnel-settings/style-settings.js +11 -19
- package/dist/settings/heat-map-settings/data-settings.js +18 -26
- package/dist/settings/heat-map-settings/index.js +3 -20
- package/dist/settings/heat-map-settings/style-settings.js +18 -26
- package/dist/settings/horizontal-bar-settings/data-settings.js +12 -19
- package/dist/settings/horizontal-bar-settings/index.js +3 -20
- package/dist/settings/horizontal-bar-settings/style-settings.js +12 -19
- package/dist/settings/index.js +57 -70
- package/dist/settings/map-settings/components/location-field-selector.js +10 -17
- package/dist/settings/map-settings/components/map-level-selector.js +11 -18
- package/dist/settings/map-settings/components/map-province-city-selector.js +19 -26
- package/dist/settings/map-settings/index.js +3 -20
- package/dist/settings/map-settings/map-data-settings.js +23 -30
- package/dist/settings/map-settings/map-style-settings.js +27 -35
- package/dist/settings/mirror-settings/data-settings.js +26 -34
- package/dist/settings/mirror-settings/index.js +2 -13
- package/dist/settings/pie-settings/data-settings.js +33 -41
- package/dist/settings/pie-settings/index.js +3 -20
- package/dist/settings/pie-settings/style-settings.js +47 -55
- package/dist/settings/scatter/data-settings.js +27 -34
- package/dist/settings/scatter/index.js +3 -12
- package/dist/settings/stacks-settings/index.js +19 -27
- package/dist/settings/stacks-settings/stack-item-settings.js +19 -27
- package/dist/settings/style-settings.js +65 -73
- package/dist/settings/table-element-settings/components/data-filter.js +49 -58
- package/dist/settings/table-element-settings/data-settings.js +21 -29
- package/dist/settings/table-element-settings/index.css +1 -31
- package/dist/settings/table-element-settings/index.js +2 -13
- package/dist/settings/table-settings/data-settings.js +113 -120
- package/dist/settings/table-settings/index.js +2 -13
- package/dist/settings/time-comparison-settings/data-settings.js +43 -51
- package/dist/settings/time-comparison-settings/index.js +3 -20
- package/dist/settings/time-comparison-settings/style-settings.js +44 -52
- package/dist/settings/trend-settings/data-settings.js +24 -32
- package/dist/settings/trend-settings/index.js +3 -20
- package/dist/settings/trend-settings/style-setting.js +19 -27
- package/dist/settings/widgets/basic-summary/index.js +59 -66
- package/dist/settings/widgets/chart-type/index.js +18 -26
- package/dist/settings/widgets/color-settings/index.js +72 -80
- package/dist/settings/widgets/common-data-settings.js +27 -34
- package/dist/settings/widgets/data-filter/index.js +59 -59
- package/dist/settings/widgets/data-sort.js +16 -24
- package/dist/settings/widgets/date-summary-item.js +26 -34
- package/dist/settings/widgets/display-values-settings/index.js +14 -22
- package/dist/settings/widgets/divider/index.js +8 -16
- package/dist/settings/widgets/font-settings/font-color-settings.js +11 -19
- package/dist/settings/widgets/font-settings/font-size-settings.js +14 -22
- package/dist/settings/widgets/font-settings/font-weight-settings.js +17 -25
- package/dist/settings/widgets/font-settings/index.js +4 -27
- package/dist/settings/widgets/group-by.js +52 -59
- package/dist/settings/widgets/min-max-setting.js +10 -18
- package/dist/settings/widgets/mininum-slice-percent.js +10 -18
- package/dist/settings/widgets/numeric-summary-item.js +25 -33
- package/dist/settings/widgets/select-line-type/index.js +10 -17
- package/dist/settings/widgets/select-table/index.js +9 -16
- package/dist/settings/widgets/select-view/index.js +20 -28
- package/dist/settings/widgets/stack.js +14 -22
- package/dist/settings/widgets/summary-method-setting.js +17 -25
- package/dist/settings/widgets/summary-settings.js +75 -82
- package/dist/settings/widgets/switch/index.js +9 -16
- package/dist/settings/widgets/text-horizontal-settings.js +15 -23
- package/dist/settings/widgets/time-picker.js +29 -37
- package/dist/settings/widgets/title-settings/index.js +29 -37
- package/dist/settings/widgets/title-settings/title-text.js +5 -12
- package/dist/settings/widgets/x-axios.js +0 -1
- package/dist/settings/widgets/y-axis-group-settings.js +65 -72
- package/dist/utils/cell-format-utils.js +25 -33
- package/dist/utils/cell-value-utils.js +4 -11
- package/dist/utils/chart-utils/base-utils.js +467 -367
- package/dist/utils/chart-utils/index.js +29 -40
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +78 -85
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +20 -21
- package/dist/utils/chart-utils/original-data-utils/combination-calculator.js +45 -52
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +21 -28
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +33 -40
- package/dist/utils/chart-utils/original-data-utils/dashboard-calculator.js +28 -26
- package/dist/utils/chart-utils/original-data-utils/index.js +50 -57
- package/dist/utils/chart-utils/original-data-utils/mirror-calculator.js +19 -26
- package/dist/utils/chart-utils/original-data-utils/pivot-table-calculator.js +94 -97
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +19 -25
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +50 -36
- package/dist/utils/chart-utils/sql-statistics-utils.js +385 -388
- package/dist/utils/chart.js +9 -17
- package/dist/utils/collaborator-manager.js +3 -9
- package/dist/utils/collaborator-utils.js +19 -31
- package/dist/utils/collaborator.js +6 -15
- package/dist/utils/color-utils.js +18 -29
- package/dist/utils/column-utils.js +88 -102
- package/dist/utils/common-utils.js +28 -53
- package/dist/utils/concurrency-manager.js +1 -7
- package/dist/utils/contexts.js +7 -11
- package/dist/utils/date-translate.js +12 -20
- package/dist/utils/digital-sign-utils.js +7 -14
- package/dist/utils/event-bus.js +1 -7
- package/dist/utils/hotkey.js +5 -11
- package/dist/utils/index.js +73 -219
- package/dist/utils/key-generator.js +2 -9
- package/dist/utils/map.js +22 -31
- package/dist/utils/object-utils.js +2 -8
- package/dist/utils/options-utils.js +10 -18
- package/dist/utils/row-record-utils.js +251 -183
- package/dist/utils/row-utils.js +27 -38
- package/dist/utils/search.js +24 -32
- package/dist/utils/sql/chart-data-sql.js +106 -112
- package/dist/utils/sql/column-2-sql-column.js +162 -172
- package/dist/utils/sql/index.js +3 -27
- package/dist/utils/trend-utils.js +50 -45
- package/dist/view/index.css +2 -8
- package/dist/view/index.js +102 -103
- package/dist/view/title/index.js +16 -24
- package/dist/view/wrapper/area-group.js +57 -57
- package/dist/view/wrapper/area.js +43 -51
- package/dist/view/wrapper/bar-compare.js +56 -48
- package/dist/view/wrapper/bar-custom-stack.js +73 -55
- package/dist/view/wrapper/bar-group.js +94 -73
- package/dist/view/wrapper/bar-stack.js +49 -57
- package/dist/view/wrapper/bar.js +40 -48
- package/dist/view/wrapper/basic-number-card.js +50 -34
- package/dist/view/wrapper/chart-component.js +164 -569
- package/dist/view/wrapper/combination.js +55 -63
- package/dist/view/wrapper/completeness-group.js +140 -93
- package/dist/view/wrapper/completeness.js +36 -44
- package/dist/view/wrapper/dashboard.js +104 -59
- package/dist/view/wrapper/funnel.js +40 -43
- package/dist/view/wrapper/heat-map.js +62 -70
- package/dist/view/wrapper/horizontal-bar-group.js +70 -58
- package/dist/view/wrapper/horizontal-bar-stack.js +48 -56
- package/dist/view/wrapper/horizontal-bar.js +41 -49
- package/dist/view/wrapper/index.js +107 -115
- package/dist/view/wrapper/line-group.js +49 -52
- package/dist/view/wrapper/line.js +42 -50
- package/dist/view/wrapper/map-bubble.js +40 -48
- package/dist/view/wrapper/map-world-bubble.js +40 -47
- package/dist/view/wrapper/map-world.js +42 -49
- package/dist/view/wrapper/map.js +42 -50
- package/dist/view/wrapper/mirror.js +41 -49
- package/dist/view/wrapper/pie.js +45 -53
- package/dist/view/wrapper/ring.js +50 -58
- package/dist/view/wrapper/scatter.js +50 -56
- package/dist/view/wrapper/table/index.js +14 -22
- package/dist/view/wrapper/table/one-dimension-table-no-numeric-columns.js +49 -57
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +53 -61
- package/dist/view/wrapper/table/pivot-table-display-name.js +82 -90
- package/dist/view/wrapper/table/two-dimension-table.js +85 -92
- package/dist/view/wrapper/table-element/components/dataset-utils.js +23 -36
- package/dist/view/wrapper/table-element/components/formatter.js +90 -99
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +23 -32
- package/dist/view/wrapper/table-element/components/formatters/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +90 -97
- package/dist/view/wrapper/table-element/components/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/link-formatter.js +90 -97
- package/dist/view/wrapper/table-element/components/record.js +13 -20
- package/dist/view/wrapper/table-element/components/records-body.js +9 -17
- package/dist/view/wrapper/table-element/components/records-header/index.js +7 -16
- package/dist/view/wrapper/table-element/components/records-header/records-header-cell.js +8 -16
- package/dist/view/wrapper/table-element/components/records.js +25 -33
- package/dist/view/wrapper/table-element/components/resize-column-handle/resize-column-handle.js +8 -13
- package/dist/view/wrapper/table-element/components/utils.js +6 -16
- package/dist/view/wrapper/table-element/components/value-display-utils.js +4 -11
- package/dist/view/wrapper/table-element/components/vertical-scrollbar/index.js +6 -13
- package/dist/view/wrapper/table-element/index.js +30 -43
- package/dist/view/wrapper/treemap.js +38 -46
- package/dist/view/wrapper/trend.js +80 -65
- package/package.json +15 -12
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
-
var _dtableUtils = require("dtable-utils");
|
|
15
|
-
var _constants = require("../../constants");
|
|
16
|
-
var _utils = require("../../utils");
|
|
17
|
-
var _intl = _interopRequireDefault(require("../../intl"));
|
|
18
|
-
var _tooltip = _interopRequireDefault(require("../../components/tooltip"));
|
|
19
|
-
var _chartComponent = _interopRequireDefault(require("./chart-component"));
|
|
20
|
-
class Scatter extends _chartComponent.default {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { cloneDeep, debounce } from 'lodash-es';
|
|
4
|
+
import * as d3 from 'd3';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
7
|
+
import { CHART_THEME_COLOR } from '../../constants';
|
|
8
|
+
import { BaseUtils, isFunction } from '../../utils';
|
|
9
|
+
import intl from '../../intl';
|
|
10
|
+
import ToolTip from '../../components/tooltip';
|
|
11
|
+
import ChartComponent from './chart-component';
|
|
12
|
+
class Scatter extends ChartComponent {
|
|
21
13
|
constructor(props) {
|
|
22
14
|
super(props);
|
|
23
15
|
this.handleResize = () => {
|
|
@@ -27,8 +19,7 @@ class Scatter extends _chartComponent.default {
|
|
|
27
19
|
};
|
|
28
20
|
this.createChart = () => {
|
|
29
21
|
const {
|
|
30
|
-
chart
|
|
31
|
-
columnGroupbyColumn
|
|
22
|
+
chart
|
|
32
23
|
} = this.props;
|
|
33
24
|
const {
|
|
34
25
|
y_axis_show_label,
|
|
@@ -40,7 +31,7 @@ class Scatter extends _chartComponent.default {
|
|
|
40
31
|
marginLeft: y_axis_show_label ? 20 : 0,
|
|
41
32
|
marginBottom: x_axis_show_label ? 20 : 0,
|
|
42
33
|
marginTop: y_axis_show_value ? 15 : 0,
|
|
43
|
-
bottomLegendSpace:
|
|
34
|
+
bottomLegendSpace: 0
|
|
44
35
|
};
|
|
45
36
|
this.initChart(this.container, chart === null || chart === void 0 ? void 0 : chart.id, initConfig);
|
|
46
37
|
};
|
|
@@ -51,18 +42,21 @@ class Scatter extends _chartComponent.default {
|
|
|
51
42
|
let {
|
|
52
43
|
result: data
|
|
53
44
|
} = this.props;
|
|
54
|
-
data =
|
|
45
|
+
data = BaseUtils.formatEmptyName(data, '', intl.get('Empty'));
|
|
55
46
|
if (!Array.isArray(data)) return;
|
|
56
47
|
data = this.transformStringToNumber(data);
|
|
57
48
|
this.draw(data);
|
|
58
49
|
this.renderAxisLabel(this.props.chart, this.props.tables, this.container);
|
|
59
|
-
|
|
50
|
+
isFunction(customRender) && customRender(this.chart);
|
|
60
51
|
};
|
|
61
52
|
this.transformStringToNumber = data => {
|
|
62
|
-
const newData =
|
|
53
|
+
const newData = cloneDeep(data);
|
|
63
54
|
newData.forEach(item => {
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
if (item.original_value) {
|
|
56
|
+
var _item$original_value, _item$original_value2;
|
|
57
|
+
item.name = ((_item$original_value = item.original_value) === null || _item$original_value === void 0 ? void 0 : _item$original_value.name) || '';
|
|
58
|
+
item.value = ((_item$original_value2 = item.original_value) === null || _item$original_value2 === void 0 ? void 0 : _item$original_value2.value) || 0;
|
|
59
|
+
}
|
|
66
60
|
});
|
|
67
61
|
return newData;
|
|
68
62
|
};
|
|
@@ -71,7 +65,7 @@ class Scatter extends _chartComponent.default {
|
|
|
71
65
|
chartColorTheme
|
|
72
66
|
} = this.props;
|
|
73
67
|
let currentIdx = 0;
|
|
74
|
-
let colors =
|
|
68
|
+
let colors = BaseUtils.getCurrentTheme(chartColorTheme).colors;
|
|
75
69
|
const colorMap = data.reduce((acc, cur) => {
|
|
76
70
|
if (cur.groupby && !acc[cur.groupby]) {
|
|
77
71
|
acc[cur.groupby] = colors[currentIdx++ % colors.length];
|
|
@@ -92,7 +86,7 @@ class Scatter extends _chartComponent.default {
|
|
|
92
86
|
} = event;
|
|
93
87
|
const newTooltipData = {
|
|
94
88
|
titleMarkColor: event.currentTarget.getAttribute('fill'),
|
|
95
|
-
title: groupby || groupby === 0 ? groupby :
|
|
89
|
+
title: groupby || groupby === 0 ? groupby : intl.get('Empty'),
|
|
96
90
|
items: [{
|
|
97
91
|
name: selectedXAxisColumn.name,
|
|
98
92
|
value: name
|
|
@@ -132,7 +126,7 @@ class Scatter extends _chartComponent.default {
|
|
|
132
126
|
const {
|
|
133
127
|
globalTheme
|
|
134
128
|
} = this.props;
|
|
135
|
-
const theme =
|
|
129
|
+
const theme = CHART_THEME_COLOR[globalTheme];
|
|
136
130
|
const contentWrapper = event.currentTarget.parentNode;
|
|
137
131
|
|
|
138
132
|
// Remove old mark line wrapper
|
|
@@ -185,7 +179,7 @@ class Scatter extends _chartComponent.default {
|
|
|
185
179
|
tables,
|
|
186
180
|
chartColorTheme
|
|
187
181
|
} = this.props;
|
|
188
|
-
const theme =
|
|
182
|
+
const theme = CHART_THEME_COLOR[globalTheme];
|
|
189
183
|
const {
|
|
190
184
|
label_font_size,
|
|
191
185
|
x_axis_column_key,
|
|
@@ -204,18 +198,18 @@ class Scatter extends _chartComponent.default {
|
|
|
204
198
|
bottomLegendSpace
|
|
205
199
|
} = this.chartBoundingClientRect;
|
|
206
200
|
const colorMap = this.getFillColor(data);
|
|
207
|
-
const selectedTable =
|
|
208
|
-
const selectedXAxisColumn =
|
|
209
|
-
const selectedYAxisColumn =
|
|
201
|
+
const selectedTable = getTableById(tables, table_id);
|
|
202
|
+
const selectedXAxisColumn = getTableColumnByKey(selectedTable, x_axis_column_key);
|
|
203
|
+
const selectedYAxisColumn = getTableColumnByKey(selectedTable, y_axis_column_key);
|
|
210
204
|
|
|
211
205
|
// Y axis
|
|
212
206
|
const y = d3.scaleLinear().domain(y_axis_auto_range ? [0, d3.max(data, d => d.value)] : [y_axis_min, y_axis_max]).range([chartHeight - insertPadding - bottomLegendSpace, insertPadding + marginTop]);
|
|
213
|
-
this.chart.append('g').attr('class', 'y-axis-wrapper').attr('transform',
|
|
207
|
+
this.chart.append('g').attr('class', 'y-axis-wrapper').attr('transform', `translate(${insertPadding}, 0)`).call(d3.axisLeft(y).tickSizeInner(0).ticks(5).tickFormat(d => d)).call(g => this.drawYaxis(g, theme));
|
|
214
208
|
|
|
215
209
|
// X axis
|
|
216
210
|
const niceEnd = d3.nice(0, d3.max(data, d => d.name), 5)[1];
|
|
217
211
|
const x = d3.scaleLinear().domain([0, niceEnd]).range([insertPadding + this.horizontalOverflowOffset, chartWidth - insertPadding]);
|
|
218
|
-
this.chart.append('g').attr('class', 'x-axis-wrapper').attr('transform',
|
|
212
|
+
this.chart.append('g').attr('class', 'x-axis-wrapper').attr('transform', `translate(0, ${chartHeight - insertPadding - bottomLegendSpace})`).call(d3.axisBottom(x).tickSizeOuter(0).tickSizeInner(5).ticks(5).tickFormat(d => d)).call(g => {
|
|
219
213
|
g.selectAll('.domain').attr('stroke', theme.XAxisColor);
|
|
220
214
|
g.selectAll('.tick line').attr('stroke', theme.XAxisColor);
|
|
221
215
|
g.selectAll('text').attr('font-size', theme.fontSize);
|
|
@@ -236,7 +230,7 @@ class Scatter extends _chartComponent.default {
|
|
|
236
230
|
groupby
|
|
237
231
|
} = d;
|
|
238
232
|
if (groupby && groupby[0] === 'groupby') {
|
|
239
|
-
return
|
|
233
|
+
return BaseUtils.getCurrentTheme(chartColorTheme).colors[0];
|
|
240
234
|
}
|
|
241
235
|
return colorMap[d.groupby];
|
|
242
236
|
}).attr('data-x', d => x(d.name)).attr('data-y', d => y(d.value)).attr('data-value', d => d.value).attr('data-width', 3.5).attr('data-groupName', d => d.name).attr('cx', d => x(d.name)).attr('cy', d => y(d.value)).attr('r', 3.5).attr('opacity', 0.85).call(g => {
|
|
@@ -268,7 +262,7 @@ class Scatter extends _chartComponent.default {
|
|
|
268
262
|
this.setLegend({
|
|
269
263
|
legendName: 'groupby',
|
|
270
264
|
theme,
|
|
271
|
-
legendPosition: 'top-
|
|
265
|
+
legendPosition: 'top-right',
|
|
272
266
|
data,
|
|
273
267
|
groupColumn: this.props.columnGroupbyColumn,
|
|
274
268
|
chart,
|
|
@@ -284,12 +278,12 @@ class Scatter extends _chartComponent.default {
|
|
|
284
278
|
componentDidMount() {
|
|
285
279
|
this.createChart();
|
|
286
280
|
this.drawChart();
|
|
287
|
-
this.debouncedHandleResize =
|
|
281
|
+
this.debouncedHandleResize = debounce(this.handleResize, 300);
|
|
288
282
|
window.addEventListener('resize', this.debouncedHandleResize);
|
|
289
283
|
}
|
|
290
284
|
componentDidUpdate(prevProps) {
|
|
291
285
|
super.componentDidUpdate(prevProps);
|
|
292
|
-
if (
|
|
286
|
+
if (BaseUtils.shouldChartComponentUpdate(prevProps, this.props)) {
|
|
293
287
|
this.destroyChart();
|
|
294
288
|
this.createChart();
|
|
295
289
|
this.drawChart();
|
|
@@ -307,13 +301,13 @@ class Scatter extends _chartComponent.default {
|
|
|
307
301
|
tooltipData,
|
|
308
302
|
toolTipPosition
|
|
309
303
|
} = this.state;
|
|
310
|
-
return /*#__PURE__*/
|
|
304
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
311
305
|
ref: ref => this.container = ref,
|
|
312
|
-
className: (
|
|
306
|
+
className: classNames('sea-chart-container', {
|
|
313
307
|
'show-x-axis-label': this.isShowXAxisLabel(chart),
|
|
314
308
|
'show-y-axis-label': this.isShowYAxisLabel(chart)
|
|
315
309
|
})
|
|
316
|
-
}, /*#__PURE__*/
|
|
310
|
+
}, /*#__PURE__*/React.createElement(ToolTip, {
|
|
317
311
|
tooltipData: tooltipData,
|
|
318
312
|
toolTipPosition: toolTipPosition,
|
|
319
313
|
chart: this.chart
|
|
@@ -321,16 +315,16 @@ class Scatter extends _chartComponent.default {
|
|
|
321
315
|
}
|
|
322
316
|
}
|
|
323
317
|
Scatter.propTypes = {
|
|
324
|
-
canvasStyle:
|
|
325
|
-
chart:
|
|
326
|
-
groupbyColumn:
|
|
327
|
-
columnGroupbyColumn:
|
|
328
|
-
summaryColumn:
|
|
329
|
-
result:
|
|
330
|
-
tables:
|
|
331
|
-
globalTheme:
|
|
332
|
-
chartColorTheme:
|
|
333
|
-
toggleRecords:
|
|
334
|
-
customRender:
|
|
318
|
+
canvasStyle: PropTypes.object,
|
|
319
|
+
chart: PropTypes.object,
|
|
320
|
+
groupbyColumn: PropTypes.object,
|
|
321
|
+
columnGroupbyColumn: PropTypes.object,
|
|
322
|
+
summaryColumn: PropTypes.object,
|
|
323
|
+
result: PropTypes.array,
|
|
324
|
+
tables: PropTypes.array,
|
|
325
|
+
globalTheme: PropTypes.string,
|
|
326
|
+
chartColorTheme: PropTypes.string,
|
|
327
|
+
toggleRecords: PropTypes.func,
|
|
328
|
+
customRender: PropTypes.func
|
|
335
329
|
};
|
|
336
|
-
|
|
330
|
+
export default Scatter;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _intl = _interopRequireDefault(require("../../../intl"));
|
|
11
|
-
var _twoDimensionTable = _interopRequireDefault(require("./two-dimension-table"));
|
|
12
|
-
var _oneDimensionTableNoNumericColumns = _interopRequireDefault(require("./one-dimension-table-no-numeric-columns"));
|
|
13
|
-
var _oneDimensionTableWithNumericColumns = _interopRequireDefault(require("./one-dimension-table-with-numeric-columns"));
|
|
14
|
-
require("./index.css");
|
|
15
|
-
class Table extends _react.PureComponent {
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import intl from '../../../intl';
|
|
3
|
+
import TwoDimensionTable from './two-dimension-table';
|
|
4
|
+
import OneDimensionTableNoNumericColumns from './one-dimension-table-no-numeric-columns';
|
|
5
|
+
import OneDimensionTableWithNumericColumns from './one-dimension-table-with-numeric-columns';
|
|
6
|
+
import './index.css';
|
|
7
|
+
class Table extends PureComponent {
|
|
16
8
|
constructor() {
|
|
17
9
|
super(...arguments);
|
|
18
10
|
this.toggleRecords = (cell, selectedCell) => {
|
|
@@ -31,20 +23,20 @@ class Table extends _react.PureComponent {
|
|
|
31
23
|
} = result;
|
|
32
24
|
if (!groupbyColumn) return null;
|
|
33
25
|
if (Array.isArray(pivot_columns) && pivot_columns.length > 100) {
|
|
34
|
-
return /*#__PURE__*/
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", null, intl.get('There_are_too_many_statistics_entries_to_display'));
|
|
35
27
|
}
|
|
36
28
|
if (columnGroupbyColumn) {
|
|
37
|
-
return /*#__PURE__*/
|
|
29
|
+
return /*#__PURE__*/React.createElement(TwoDimensionTable, Object.assign({}, this.props, {
|
|
38
30
|
toggleRecords: this.toggleRecords
|
|
39
31
|
}));
|
|
40
32
|
}
|
|
41
33
|
if (!Array.isArray(pivot_columns)) return null;
|
|
42
34
|
if (pivot_columns.length < 2) {
|
|
43
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/React.createElement(OneDimensionTableNoNumericColumns, Object.assign({}, this.props, {
|
|
44
36
|
toggleRecords: this.toggleRecords
|
|
45
37
|
}));
|
|
46
38
|
}
|
|
47
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/React.createElement(OneDimensionTableWithNumericColumns, Object.assign({}, this.props, {
|
|
48
40
|
toggleRecords: this.toggleRecords
|
|
49
41
|
}));
|
|
50
42
|
};
|
|
@@ -53,9 +45,9 @@ class Table extends _react.PureComponent {
|
|
|
53
45
|
const {
|
|
54
46
|
result
|
|
55
47
|
} = this.props;
|
|
56
|
-
return /*#__PURE__*/
|
|
57
|
-
className:
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: `sea-chart-table-wrapper sea-chart-${result.dimensions}-table-wrapper`
|
|
58
50
|
}, this.renderContainer());
|
|
59
51
|
}
|
|
60
52
|
}
|
|
61
|
-
|
|
53
|
+
export default Table;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _dtableUtils = require("dtable-utils");
|
|
12
|
-
var _utils = require("../../../utils");
|
|
13
|
-
var _intl = _interopRequireDefault(require("../../../intl"));
|
|
14
|
-
var _constants = require("../../../constants");
|
|
15
|
-
var _pivotTableDisplayName = _interopRequireDefault(require("./pivot-table-display-name"));
|
|
16
|
-
class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { getTableById } from 'dtable-utils';
|
|
4
|
+
import { BaseUtils, ObjectUtils } from '../../../utils';
|
|
5
|
+
import intl from '../../../intl';
|
|
6
|
+
import { CHART_THEME_COLOR, CHART_SUMMARY_TYPE } from '../../../constants';
|
|
7
|
+
import PivotTableDisplayName from './pivot-table-display-name';
|
|
8
|
+
class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
17
9
|
constructor() {
|
|
18
10
|
super(...arguments);
|
|
19
11
|
this.renderHeader = () => {
|
|
@@ -30,27 +22,27 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
30
22
|
const {
|
|
31
23
|
name: groupName
|
|
32
24
|
} = groupbyColumn;
|
|
33
|
-
const isCount = summary_type ===
|
|
25
|
+
const isCount = summary_type === CHART_SUMMARY_TYPE.COUNT;
|
|
34
26
|
this.isCount = isCount;
|
|
35
|
-
const columnName = isCount ?
|
|
27
|
+
const columnName = isCount ? intl.get('Amount') : this.getColumnName();
|
|
36
28
|
const {
|
|
37
29
|
rowIdx: selectRowIdx,
|
|
38
30
|
cellIdx: selectedCellIdx
|
|
39
31
|
} = selectedCell || {};
|
|
40
32
|
const isSelectedTotalCellBottom = selectRowIdx === 0 && selectedCellIdx === 0;
|
|
41
|
-
return /*#__PURE__*/
|
|
33
|
+
return /*#__PURE__*/React.createElement("thead", {
|
|
42
34
|
className: "seatable-table-header-sm"
|
|
43
|
-
}, /*#__PURE__*/
|
|
35
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
44
36
|
className: "pivot-table-header"
|
|
45
|
-
}, groupName), /*#__PURE__*/
|
|
46
|
-
className: (
|
|
37
|
+
}, groupName), /*#__PURE__*/React.createElement("th", {
|
|
38
|
+
className: classnames('pivot-table-header', {
|
|
47
39
|
'selected-pivot-cell-top': isSelectedTotalCellBottom
|
|
48
40
|
})
|
|
49
|
-
}, /*#__PURE__*/
|
|
50
|
-
className: (
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", null, columnName)), display_total && /*#__PURE__*/React.createElement("th", {
|
|
42
|
+
className: classnames('pivot-table-header', {
|
|
51
43
|
'selected-pivot-cell-top': isSelectedTotalCellBottom
|
|
52
44
|
})
|
|
53
|
-
}, /*#__PURE__*/
|
|
45
|
+
}, /*#__PURE__*/React.createElement("div", null, intl.get('Total')))));
|
|
54
46
|
};
|
|
55
47
|
this.getColumnName = () => {
|
|
56
48
|
const {
|
|
@@ -65,7 +57,7 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
65
57
|
table_id
|
|
66
58
|
} = chart.config;
|
|
67
59
|
if (Array.isArray(pivot_columns) && pivot_columns.length !== 0) {
|
|
68
|
-
const table =
|
|
60
|
+
const table = getTableById(tables, table_id);
|
|
69
61
|
const column = table === null || table === void 0 ? void 0 : table.columns.find(item => item.key === pivot_columns[0].key);
|
|
70
62
|
return (column === null || column === void 0 ? void 0 : column.name) || '';
|
|
71
63
|
}
|
|
@@ -127,10 +119,10 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
127
119
|
let pivotColumnCells = [];
|
|
128
120
|
const isSelectRowTotalCellRight = selectRowIdx === pivotRowsLen && selectedCellIdx === 0;
|
|
129
121
|
const isSelectTotal = selectRowIdx === pivotRowsLen && selectedCellIdx === 0;
|
|
130
|
-
const total =
|
|
131
|
-
const summaryDisplayValue =
|
|
132
|
-
const isValidSummaryDisplayValue =
|
|
133
|
-
return /*#__PURE__*/
|
|
122
|
+
const total = ObjectUtils.hasOwnProperty(pivot_columns_total, 'total') ? pivot_columns_total['total'] : 0;
|
|
123
|
+
const summaryDisplayValue = BaseUtils.getSummaryValueDisplayString(summaryColumn, total);
|
|
124
|
+
const isValidSummaryDisplayValue = BaseUtils.isValidValue(summaryDisplayValue, display_empty);
|
|
125
|
+
return /*#__PURE__*/React.createElement("tbody", null, pivotRowsLen > 0 && pivot_rows.map((rowItem, rowIdx) => {
|
|
134
126
|
const {
|
|
135
127
|
name,
|
|
136
128
|
total
|
|
@@ -140,21 +132,21 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
140
132
|
let isSelectedTotalCellTop = selectRowIdx - 1 === rowIdx && selectedCellIdx === 0;
|
|
141
133
|
let isSelectedTotalCellLeft = selectRowIdx === rowIdx && selectedCellIdx === 0;
|
|
142
134
|
pivotColumnCells[rowIdx] = rowItem;
|
|
143
|
-
const totalDisplayValue =
|
|
144
|
-
const isValidTotalDisplayValue =
|
|
145
|
-
return /*#__PURE__*/
|
|
135
|
+
const totalDisplayValue = BaseUtils.getSummaryValueDisplayString(summaryColumn, total.total);
|
|
136
|
+
const isValidTotalDisplayValue = BaseUtils.isValidValue(totalDisplayValue, display_empty);
|
|
137
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
146
138
|
key: 'table-row-' + rowIdx
|
|
147
|
-
}, /*#__PURE__*/
|
|
148
|
-
className: (
|
|
139
|
+
}, /*#__PURE__*/React.createElement("td", {
|
|
140
|
+
className: classnames('pivot-row-name', {
|
|
149
141
|
'selected-pivot-cell-left': isSelectedRowNameRight
|
|
150
142
|
})
|
|
151
|
-
}, /*#__PURE__*/
|
|
143
|
+
}, /*#__PURE__*/React.createElement(PivotTableDisplayName, {
|
|
152
144
|
value: name,
|
|
153
145
|
column: groupbyColumn,
|
|
154
146
|
rowData: rowItem,
|
|
155
147
|
globalTheme: globalTheme
|
|
156
|
-
})), /*#__PURE__*/
|
|
157
|
-
className: (
|
|
148
|
+
})), /*#__PURE__*/React.createElement("td", {
|
|
149
|
+
className: classnames('pivot-cell', {
|
|
158
150
|
'pivot-empty-cell': !isValidTotalDisplayValue,
|
|
159
151
|
'selected-pivot-cell': isSelectedTotalCell,
|
|
160
152
|
'selected-pivot-cell-top': isSelectedTotalCellTop,
|
|
@@ -169,12 +161,12 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
169
161
|
cellIdx: 0,
|
|
170
162
|
isRow: true
|
|
171
163
|
})
|
|
172
|
-
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/
|
|
173
|
-
className: (
|
|
164
|
+
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/React.createElement("i", null), /*#__PURE__*/React.createElement("span", {
|
|
165
|
+
className: classnames({
|
|
174
166
|
'selected-pivot-cell-border': isSelectedTotalCell
|
|
175
167
|
})
|
|
176
|
-
})), display_total && /*#__PURE__*/
|
|
177
|
-
className: (
|
|
168
|
+
})), display_total && /*#__PURE__*/React.createElement("td", {
|
|
169
|
+
className: classnames('pivot-cell', {
|
|
178
170
|
'pivot-empty-cell': !isValidTotalDisplayValue,
|
|
179
171
|
'selected-pivot-cell': isSelectedTotalCell,
|
|
180
172
|
'selected-pivot-cell-top': isSelectedTotalCellTop,
|
|
@@ -189,17 +181,17 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
189
181
|
isRow: true
|
|
190
182
|
}),
|
|
191
183
|
total: totalDisplayValue
|
|
192
|
-
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/
|
|
193
|
-
className: (
|
|
184
|
+
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/React.createElement("i", null), /*#__PURE__*/React.createElement("span", {
|
|
185
|
+
className: classnames({
|
|
194
186
|
'selected-pivot-cell-border': isSelectedTotalCell
|
|
195
187
|
})
|
|
196
188
|
})));
|
|
197
|
-
}), display_total && /*#__PURE__*/
|
|
198
|
-
className: (
|
|
189
|
+
}), display_total && /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
190
|
+
className: classnames('pivot-column-total', {
|
|
199
191
|
'selected-pivot-cell-left': isSelectRowTotalCellRight
|
|
200
192
|
})
|
|
201
|
-
}, /*#__PURE__*/
|
|
202
|
-
className: (
|
|
193
|
+
}, /*#__PURE__*/React.createElement("div", null, intl.get('Total'))), /*#__PURE__*/React.createElement("td", {
|
|
194
|
+
className: classnames('pivot-cell pivot-table-total', {
|
|
203
195
|
'pivot-empty-cell': !isValidSummaryDisplayValue,
|
|
204
196
|
'selected-pivot-cell': isSelectTotal
|
|
205
197
|
}),
|
|
@@ -208,12 +200,12 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
208
200
|
cellIdx: 0
|
|
209
201
|
}),
|
|
210
202
|
title: isValidSummaryDisplayValue ? summaryDisplayValue : ''
|
|
211
|
-
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/
|
|
212
|
-
className: (
|
|
203
|
+
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/React.createElement("i", null), /*#__PURE__*/React.createElement("span", {
|
|
204
|
+
className: classnames({
|
|
213
205
|
'selected-pivot-cell-border': isSelectTotal
|
|
214
206
|
})
|
|
215
|
-
})), /*#__PURE__*/
|
|
216
|
-
className: (
|
|
207
|
+
})), /*#__PURE__*/React.createElement("td", {
|
|
208
|
+
className: classnames('pivot-cell pivot-table-total', {
|
|
217
209
|
'pivot-empty-cell': !isValidSummaryDisplayValue,
|
|
218
210
|
'selected-pivot-cell': isSelectTotal
|
|
219
211
|
}),
|
|
@@ -222,8 +214,8 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
222
214
|
cellIdx: 0
|
|
223
215
|
}),
|
|
224
216
|
title: isValidSummaryDisplayValue ? summaryDisplayValue : ''
|
|
225
|
-
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/
|
|
226
|
-
className: (
|
|
217
|
+
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/React.createElement("i", null), /*#__PURE__*/React.createElement("span", {
|
|
218
|
+
className: classnames({
|
|
227
219
|
'selected-pivot-cell-border': isSelectTotal
|
|
228
220
|
})
|
|
229
221
|
}))));
|
|
@@ -235,12 +227,12 @@ class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
|
235
227
|
globalTheme
|
|
236
228
|
} = this.props;
|
|
237
229
|
if (!groupbyColumn) return '';
|
|
238
|
-
return /*#__PURE__*/
|
|
230
|
+
return /*#__PURE__*/React.createElement("table", {
|
|
239
231
|
className: "sea-chart-pivot-table",
|
|
240
232
|
style: {
|
|
241
|
-
color:
|
|
233
|
+
color: CHART_THEME_COLOR[globalTheme].pivotTextColor
|
|
242
234
|
}
|
|
243
235
|
}, this.renderHeader(), this.renderRows());
|
|
244
236
|
}
|
|
245
237
|
}
|
|
246
|
-
|
|
238
|
+
export default OneDimensionTableNoNumericColumns;
|