sea-chart 0.0.1 → 0.0.2
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/README.md +117 -1
- package/dist/api/index.js +101 -0
- package/{lib → dist}/components/collaborator/index.js +8 -6
- package/{lib → dist}/components/icon/index.css +1 -1
- package/{lib → dist}/components/icon/index.js +7 -5
- package/dist/components/index.js +8 -0
- package/{lib → dist}/components/loading/index.js +4 -2
- package/dist/components/number-input/index.js +31 -0
- package/{lib → dist}/components/pixel-editor/index.css +4 -4
- package/{lib → dist}/components/pixel-editor/index.js +11 -15
- package/{lib → dist}/components/select-group/index.css +10 -10
- package/dist/components/select-group/index.js +52 -0
- package/dist/components/types-dialog/index.css +97 -0
- package/dist/components/types-dialog/index.js +117 -0
- package/{lib → dist}/constants/geolocation.js +3 -3
- package/dist/constants/index.js +184 -0
- package/{lib → dist}/constants/model.js +25 -5
- package/dist/constants/style.js +15 -0
- package/dist/constants/type-image.js +59 -0
- package/dist/constants/type.js +124 -0
- package/dist/context.js +83 -0
- package/dist/editor/index.js +41 -0
- package/dist/index.js +9 -0
- package/dist/intl.js +37 -0
- package/dist/locale/index.js +18 -0
- package/{lib → dist}/locale/lang/de.js +1 -1
- package/{lib → dist}/locale/lang/en.js +1 -1
- package/{lib → dist}/locale/lang/es.js +1 -1
- package/{lib → dist}/locale/lang/fr.js +1 -1
- package/{lib → dist}/locale/lang/pt.js +1 -1
- package/{lib → dist}/locale/lang/ru.js +1 -1
- package/{lib → dist}/locale/lang/zh_CN.js +1 -1
- package/dist/model/area-group.js +41 -0
- package/dist/model/area.js +32 -0
- package/dist/model/bar-group.js +44 -0
- package/dist/model/bar-stack.js +41 -0
- package/dist/model/bar.js +38 -0
- package/dist/model/base-model.js +9 -0
- package/dist/model/basic-number-card.js +22 -0
- package/dist/model/chart.js +23 -0
- package/dist/model/combination.js +38 -0
- package/dist/model/compare-bar.js +39 -0
- package/dist/model/completeness-group.js +24 -0
- package/dist/model/completeness.js +18 -0
- package/dist/model/dashboard.js +16 -0
- package/dist/model/generic-model.js +224 -0
- package/dist/model/heat-map.js +23 -0
- package/dist/model/horizontal-bar.js +38 -0
- package/dist/model/horizontal-group-bar.js +43 -0
- package/dist/model/index.js +63 -0
- package/dist/model/line-group.js +44 -0
- package/dist/model/line.js +38 -0
- package/dist/model/map-bubble.js +27 -0
- package/dist/model/map.js +27 -0
- package/dist/model/mirror.js +26 -0
- package/dist/model/pie.js +26 -0
- package/dist/model/ring.js +26 -0
- package/dist/model/scatter.js +19 -0
- package/dist/model/stacked-horizontal-bar.js +32 -0
- package/dist/model/table.js +23 -0
- package/dist/model/tree-map.js +20 -0
- package/dist/model/trend.js +24 -0
- package/dist/model/user.js +15 -0
- package/dist/model/world-map-bubble.js +26 -0
- package/dist/model/world-map.js +26 -0
- package/{lib/components → dist}/settings/advance-bar-settings/data-settings.js +68 -45
- package/dist/settings/advance-bar-settings/style-settings.js +161 -0
- package/{lib/components → dist}/settings/bar-settings/data-settings.js +76 -51
- package/dist/settings/bar-settings/style-settings.js +179 -0
- package/dist/settings/basic-number-card/data-settings.js +126 -0
- package/dist/settings/basic-number-card/style-settings.js +42 -0
- package/dist/settings/combination-settings/data-settings.js +279 -0
- package/dist/settings/combination-settings/style-settings.js +174 -0
- package/dist/settings/dashboard-settings/data-settings.js +179 -0
- package/{lib/components → dist}/settings/data-settings.js +28 -22
- package/dist/settings/horizontal-bar-settings/data-settings.js +55 -0
- package/dist/settings/horizontal-bar-settings/style-settings.js +46 -0
- package/dist/settings/index.css +85 -0
- package/dist/settings/index.js +76 -0
- package/{lib/components → dist}/settings/pie-settings/data-settings.js +67 -44
- package/{lib/components → dist}/settings/pie-settings/style-settings.js +67 -49
- package/dist/settings/style-settings.js +118 -0
- package/{lib/components → dist}/settings/table-settings/data-settings.js +269 -208
- package/{lib/components → dist}/settings/time-comparison-settings/data-settings.js +82 -67
- package/dist/settings/time-comparison-settings/style-settings.js +213 -0
- package/dist/settings/widgets/basic-summary/index.css +12 -0
- package/dist/settings/widgets/basic-summary/index.js +176 -0
- package/{lib/components/settings/widgets/statistic-type → dist/settings/widgets/chart-type}/index.css +5 -5
- package/dist/settings/widgets/chart-type/index.js +59 -0
- package/{lib/components → dist}/settings/widgets/common-data-settings.js +24 -18
- package/dist/settings/widgets/data-filter/index.css +17 -0
- package/{lib/components → dist}/settings/widgets/data-filter/index.js +51 -37
- package/dist/settings/widgets/data-sort.js +44 -0
- package/dist/settings/widgets/date-summary-item.js +111 -0
- package/dist/settings/widgets/display-values-settings/index.css +13 -0
- package/{lib/components → dist}/settings/widgets/display-values-settings/index.js +19 -14
- package/{lib/components → dist}/settings/widgets/divider/index.css +1 -1
- package/dist/settings/widgets/divider/index.js +12 -0
- package/{lib/components → dist}/settings/widgets/font-settings/font-size-settings.js +14 -12
- package/{lib/components → dist}/settings/widgets/font-settings/font-weight-settings.js +14 -16
- package/dist/settings/widgets/group-by.js +160 -0
- package/{lib/components → dist}/settings/widgets/label-color.js +10 -10
- package/dist/settings/widgets/min-max-setting.js +52 -0
- package/dist/settings/widgets/mininum-slice-percent.js +63 -0
- package/dist/settings/widgets/numeric-summary-item.js +90 -0
- package/dist/settings/widgets/select-table/index.js +38 -0
- package/dist/settings/widgets/stack.js +50 -0
- package/dist/settings/widgets/summary-method-setting.js +66 -0
- package/dist/settings/widgets/summary-settings.js +411 -0
- package/dist/settings/widgets/switch/index.css +37 -0
- package/{lib/components → dist}/settings/widgets/switch/index.js +11 -8
- package/{lib/components → dist}/settings/widgets/text-horizontal-settings.js +12 -10
- package/dist/settings/widgets/time-picker.js +174 -0
- package/{lib/components → dist}/settings/widgets/title-settings/index.js +15 -13
- package/dist/settings/widgets/title-settings/title-text.js +25 -0
- package/dist/settings/widgets/x-axios.js +0 -0
- package/dist/settings/widgets/y-axis-group-settings.js +438 -0
- package/dist/utils/cell-format-utils.js +42 -0
- package/dist/utils/chart-data-sql.js +606 -0
- package/dist/utils/chart-utils.js +1803 -0
- package/dist/utils/chart.js +6 -0
- package/dist/utils/collaborator-manager.js +24 -0
- package/dist/utils/collaborator-utils.js +40 -0
- package/dist/utils/column-2-sql-column.js +551 -0
- package/dist/utils/column-utils.js +208 -0
- package/{lib → dist}/utils/custom-g2.js +11 -11
- package/{lib → dist}/utils/date-translate.js +11 -11
- package/dist/utils/index.js +48 -0
- package/dist/utils/key-generator.js +13 -0
- package/dist/utils/object-utils.js +45 -0
- package/{lib → dist}/utils/options-utils.js +17 -18
- package/dist/view/index.css +53 -0
- package/dist/view/index.js +169 -0
- package/{lib/layout → dist/view}/title/index.css +1 -1
- package/dist/view/title/index.js +46 -0
- package/dist/view/wrapper/area.js +150 -0
- package/dist/view/wrapper/bar-group.js +148 -0
- package/dist/view/wrapper/bar.js +138 -0
- package/dist/view/wrapper/basic-number-card.js +127 -0
- package/dist/view/wrapper/chart-component.js +261 -0
- package/dist/view/wrapper/combination.js +399 -0
- package/dist/view/wrapper/dashboard.js +164 -0
- package/dist/view/wrapper/horizontal-bar-group.js +149 -0
- package/dist/view/wrapper/horizontal-bar.js +140 -0
- package/dist/view/wrapper/horizontal-component.js +78 -0
- package/{lib/components/formatter → dist/view/wrapper}/index.js +90 -71
- package/dist/view/wrapper/line-group.js +145 -0
- package/dist/view/wrapper/line.js +157 -0
- package/dist/view/wrapper/pie.js +185 -0
- package/dist/view/wrapper/ring.js +264 -0
- package/{lib/components/formatter → dist/view/wrapper}/table/index.css +18 -18
- package/dist/view/wrapper/table/index.js +31 -0
- package/dist/view/wrapper/table/one-dimension-table-no-numeric-columns.js +144 -0
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +198 -0
- package/dist/view/wrapper/table/pivot-table-display-name.js +248 -0
- package/dist/view/wrapper/table/two-dimension-table.js +249 -0
- package/dist/view/wrapper/treemap.js +186 -0
- package/package.json +91 -100
- package/lib/components/formatter/area.js +0 -162
- package/lib/components/formatter/bar-group.js +0 -160
- package/lib/components/formatter/bar.js +0 -150
- package/lib/components/formatter/basic-number-card.js +0 -138
- package/lib/components/formatter/chart-component.js +0 -266
- package/lib/components/formatter/combination.js +0 -407
- package/lib/components/formatter/dashboard.js +0 -182
- package/lib/components/formatter/horizontal-bar-group.js +0 -161
- package/lib/components/formatter/horizontal-bar.js +0 -152
- package/lib/components/formatter/horizontal-component.js +0 -91
- package/lib/components/formatter/line-group.js +0 -157
- package/lib/components/formatter/line.js +0 -170
- package/lib/components/formatter/pie.js +0 -201
- package/lib/components/formatter/ring.js +0 -277
- package/lib/components/formatter/table/index.js +0 -42
- package/lib/components/formatter/table/one-dimension-table-no-numeric-columns.js +0 -145
- package/lib/components/formatter/table/one-dimension-table-with-numeric-columns.js +0 -193
- package/lib/components/formatter/table/pivot-table-display-name.js +0 -249
- package/lib/components/formatter/table/two-dimension-table.js +0 -241
- package/lib/components/formatter/treemap.js +0 -213
- package/lib/components/index.js +0 -5
- package/lib/components/number-input/index.js +0 -31
- package/lib/components/select-group/index.js +0 -63
- package/lib/components/settings/advance-bar-settings/style-settings.js +0 -149
- package/lib/components/settings/bar-settings/style-settings.js +0 -163
- package/lib/components/settings/basic-number-card/data-settings.js +0 -121
- package/lib/components/settings/basic-number-card/style-settings.js +0 -42
- package/lib/components/settings/combination-settings/data-settings.js +0 -256
- package/lib/components/settings/combination-settings/style-settings.js +0 -183
- package/lib/components/settings/dashboard-settings/data-settings.js +0 -167
- package/lib/components/settings/horizontal-bar-settings/data-settings.js +0 -45
- package/lib/components/settings/horizontal-bar-settings/style-settings.js +0 -38
- package/lib/components/settings/index.css +0 -73
- package/lib/components/settings/index.js +0 -74
- package/lib/components/settings/style-settings.js +0 -100
- package/lib/components/settings/time-comparison-settings/style-settings.js +0 -191
- package/lib/components/settings/widgets/basic-summary/index.css +0 -12
- package/lib/components/settings/widgets/basic-summary/index.js +0 -173
- package/lib/components/settings/widgets/data-filter/index.css +0 -17
- package/lib/components/settings/widgets/data-sort.js +0 -38
- package/lib/components/settings/widgets/date-summary-item.js +0 -126
- package/lib/components/settings/widgets/display-values-settings/index.css +0 -13
- package/lib/components/settings/widgets/divider/index.js +0 -10
- package/lib/components/settings/widgets/group-by.js +0 -168
- package/lib/components/settings/widgets/min-max-setting.js +0 -64
- package/lib/components/settings/widgets/mininum-slice-percent.js +0 -72
- package/lib/components/settings/widgets/numeric-summary-item.js +0 -109
- package/lib/components/settings/widgets/select-table/index.js +0 -49
- package/lib/components/settings/widgets/stack.js +0 -58
- package/lib/components/settings/widgets/statistic-type/index.js +0 -54
- package/lib/components/settings/widgets/summary-method-setting.js +0 -80
- package/lib/components/settings/widgets/summary-settings.js +0 -394
- package/lib/components/settings/widgets/switch/index.css +0 -37
- package/lib/components/settings/widgets/time-picker.js +0 -182
- package/lib/components/settings/widgets/title-settings/title-text.js +0 -31
- package/lib/components/settings/widgets/y-axis-group-settings.js +0 -399
- package/lib/components/types-dialog/index.css +0 -97
- package/lib/components/types-dialog/index.js +0 -127
- package/lib/constants/index.js +0 -164
- package/lib/constants/style.js +0 -13
- package/lib/constants/type-image.js +0 -32
- package/lib/constants/type.js +0 -97
- package/lib/context.js +0 -49
- package/lib/index.js +0 -6
- package/lib/intl.js +0 -37
- package/lib/layout/index.js +0 -4
- package/lib/layout/statistic/index.css +0 -53
- package/lib/layout/statistic/index.js +0 -190
- package/lib/layout/title/index.js +0 -41
- package/lib/locale/index.js +0 -11
- package/lib/model/area-group.js +0 -51
- package/lib/model/area.js +0 -42
- package/lib/model/bar-group.js +0 -54
- package/lib/model/bar-stack.js +0 -51
- package/lib/model/bar.js +0 -48
- package/lib/model/base-model.js +0 -11
- package/lib/model/basic-number-card.js +0 -32
- package/lib/model/combination.js +0 -48
- package/lib/model/compare-bar.js +0 -49
- package/lib/model/completeness-group.js +0 -34
- package/lib/model/completeness.js +0 -28
- package/lib/model/dashboard.js +0 -26
- package/lib/model/generic-model.js +0 -235
- package/lib/model/heat-map.js +0 -33
- package/lib/model/horizontal-bar.js +0 -48
- package/lib/model/horizontal-group-bar.js +0 -53
- package/lib/model/index.js +0 -36
- package/lib/model/line-group.js +0 -54
- package/lib/model/line.js +0 -48
- package/lib/model/map-bubble.js +0 -37
- package/lib/model/map.js +0 -37
- package/lib/model/mirror.js +0 -36
- package/lib/model/pie.js +0 -36
- package/lib/model/ring.js +0 -36
- package/lib/model/scatter.js +0 -29
- package/lib/model/stacked-horizontal-bar.js +0 -42
- package/lib/model/statistic.js +0 -22
- package/lib/model/table.js +0 -33
- package/lib/model/tree-map.js +0 -30
- package/lib/model/trend.js +0 -34
- package/lib/model/user.js +0 -22
- package/lib/model/world-map-bubble.js +0 -36
- package/lib/model/world-map.js +0 -36
- package/lib/utils/cell-format-utils.js +0 -41
- package/lib/utils/chart.js +0 -6
- package/lib/utils/collaborator-utils.js +0 -40
- package/lib/utils/column-utils.js +0 -247
- package/lib/utils/data-filter/filter-item-utils.js +0 -80
- package/lib/utils/data-filter/filters-utils.js +0 -406
- package/lib/utils/data-filter/index.js +0 -3
- package/lib/utils/index.js +0 -50
- package/lib/utils/key-generator.js +0 -13
- package/lib/utils/object-utils.js +0 -61
- package/lib/utils/statistic-column-2-sql-column-utils.js +0 -499
- package/lib/utils/statistic-utils.js +0 -1685
- /package/{lib → dist}/assets/icons/area-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/bar-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/card.svg +0 -0
- /package/{lib → dist}/assets/icons/combination-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/dtable-logo.svg +0 -0
- /package/{lib → dist}/assets/icons/facet-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/gauge.svg +0 -0
- /package/{lib → dist}/assets/icons/heat-map.svg +0 -0
- /package/{lib → dist}/assets/icons/histogram.svg +0 -0
- /package/{lib → dist}/assets/icons/line-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/map.svg +0 -0
- /package/{lib → dist}/assets/icons/pie-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/rectangular-tree-diagram.svg +0 -0
- /package/{lib → dist}/assets/icons/scatter-chart.svg +0 -0
- /package/{lib → dist}/assets/icons/type-change.svg +0 -0
- /package/{lib → dist}/assets/img/area-chart.png +0 -0
- /package/{lib → dist}/assets/img/area-group-chart.png +0 -0
- /package/{lib → dist}/assets/img/bar-group.png +0 -0
- /package/{lib → dist}/assets/img/bar-stack.png +0 -0
- /package/{lib → dist}/assets/img/bar.png +0 -0
- /package/{lib → dist}/assets/img/combination-chart.png +0 -0
- /package/{lib → dist}/assets/img/compared-chart.png +0 -0
- /package/{lib → dist}/assets/img/completeness-chart.png +0 -0
- /package/{lib → dist}/assets/img/custom-bar.png +0 -0
- /package/{lib → dist}/assets/img/dashboard-chart.png +0 -0
- /package/{lib → dist}/assets/img/group-completeness-chart.png +0 -0
- /package/{lib → dist}/assets/img/group_line.png +0 -0
- /package/{lib → dist}/assets/img/heat-map.png +0 -0
- /package/{lib → dist}/assets/img/horizontal-bar.png +0 -0
- /package/{lib → dist}/assets/img/horizontal-group-bar.png +0 -0
- /package/{lib → dist}/assets/img/line.png +0 -0
- /package/{lib → dist}/assets/img/map-bubble.png +0 -0
- /package/{lib → dist}/assets/img/map.png +0 -0
- /package/{lib → dist}/assets/img/mirror.png +0 -0
- /package/{lib → dist}/assets/img/number-card.png +0 -0
- /package/{lib → dist}/assets/img/pie.png +0 -0
- /package/{lib → dist}/assets/img/pivot-table.png +0 -0
- /package/{lib → dist}/assets/img/ring.png +0 -0
- /package/{lib → dist}/assets/img/scatter.png +0 -0
- /package/{lib → dist}/assets/img/stacked-horizontal-bar.png +0 -0
- /package/{lib → dist}/assets/img/treemap.png +0 -0
- /package/{lib → dist}/assets/img/trend-chart.png +0 -0
- /package/{lib → dist}/assets/img/world-map-bubble.png +0 -0
- /package/{lib → dist}/assets/img/world-map.png +0 -0
- /package/{lib → dist}/components/loading/index.css +0 -0
- /package/{lib/components/settings/widgets/select-table → dist/editor}/index.css +0 -0
- /package/{lib/components → dist}/settings/advance-bar-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/bar-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/basic-number-card/index.js +0 -0
- /package/{lib/components → dist}/settings/combination-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/dashboard-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/horizontal-bar-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/pie-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/table-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/time-comparison-settings/index.js +0 -0
- /package/{lib/components → dist}/settings/widgets/font-settings/index.js +0 -0
- /package/{lib/components/settings/widgets/x-axios.js → dist/settings/widgets/select-table/index.css} +0 -0
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
2
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
import { isNumber } from 'dtable-utils';
|
|
6
|
-
import BaseModel from './base-model';
|
|
7
|
-
import { isBoolean, getChartConfigValueByKey } from '../utils';
|
|
8
|
-
import { DATE_GRANULATES, DEFAULT_LABEL_FONT_SIZE, GEOLOCATION_GRANULATES, LABEL_POSITION_TYPE, STATISTIC_SUMMARY_TYPE, GENERIC_KEY, CHART_KEY, LEGEND_DIRECTION } from '../constants';
|
|
9
|
-
var GenericModel = /*#__PURE__*/function (_BaseModel) {
|
|
10
|
-
_inherits(GenericModel, _BaseModel);
|
|
11
|
-
var _super = _createSuper(GenericModel);
|
|
12
|
-
function GenericModel(object) {
|
|
13
|
-
var _this;
|
|
14
|
-
_classCallCheck(this, GenericModel);
|
|
15
|
-
var options = object || {};
|
|
16
|
-
_this = _super.call(this, options);
|
|
17
|
-
|
|
18
|
-
// x data
|
|
19
|
-
_this.x_axis_column_key = getChartConfigValueByKey(GENERIC_KEY.X_AXIS_COLUMN_KEY, options);
|
|
20
|
-
_this.x_axis_include_empty_cells = getChartConfigValueByKey(GENERIC_KEY.X_AXIS_INCLUDE_EMPTY_CELLS, options);
|
|
21
|
-
_this.x_axis_date_granularity = getChartConfigValueByKey(GENERIC_KEY.X_AXIS_DATE_GRANULARITY, options);
|
|
22
|
-
_this.x_axis_geolocation_granularity = getChartConfigValueByKey(GENERIC_KEY.X_AXIS_GEOLOCATION_GRANULARITY, options);
|
|
23
|
-
|
|
24
|
-
// set default value
|
|
25
|
-
if (!isBoolean(_this.x_axis_include_empty_cells)) {
|
|
26
|
-
_this.x_axis_include_empty_cells = false;
|
|
27
|
-
}
|
|
28
|
-
if (_this.x_axis_date_granularity && !DATE_GRANULATES.includes(_this.x_axis_date_granularity)) {
|
|
29
|
-
_this.x_axis_date_granularity = STATISTIC_SUMMARY_TYPE.MONTH;
|
|
30
|
-
}
|
|
31
|
-
if (_this.x_axis_geolocation_granularity && !GEOLOCATION_GRANULATES.includes(_this.x_axis_geolocation_granularity)) {
|
|
32
|
-
_this.x_axis_geolocation_granularity = STATISTIC_SUMMARY_TYPE.DISTRICT;
|
|
33
|
-
}
|
|
34
|
-
_this.x_axis_date_range_start = getChartConfigValueByKey(CHART_KEY.X_AXIS_DATE_RANGE_START, options);
|
|
35
|
-
_this.x_axis_date_range_end = getChartConfigValueByKey(CHART_KEY.X_AXIS_DATE_RANGE_END, options);
|
|
36
|
-
_this.x_axis_compared_date_range_start = getChartConfigValueByKey(CHART_KEY.X_AXIS_COMPARED_DATE_RANGE_START, options);
|
|
37
|
-
_this.x_axis_compared_date_range_end = getChartConfigValueByKey(CHART_KEY.X_AXIS_COMPARED_DATE_RANGE_END, options);
|
|
38
|
-
|
|
39
|
-
// x style
|
|
40
|
-
_this.x_axis_show_label = getChartConfigValueByKey(GENERIC_KEY.X_AXIS_SHOW_LABEL, options);
|
|
41
|
-
_this.x_axis_label_position = getChartConfigValueByKey(GENERIC_KEY.X_AXIS_LABEL_POSITION, options) || LABEL_POSITION_TYPE.CENTER;
|
|
42
|
-
if (!isBoolean(_this.x_axis_show_label)) {
|
|
43
|
-
_this.x_axis_show_label = null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// y data
|
|
47
|
-
_this.y_axis_summary_column_key = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_SUMMARY_COLUMN_KEY, options);
|
|
48
|
-
_this.y_axis_summary_type = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_SUMMARY_TYPE, options);
|
|
49
|
-
_this.y_axis_summary_method = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_SUMMARY_METHOD, options);
|
|
50
|
-
if (_this.y_axis_summary_method === STATISTIC_SUMMARY_TYPE.ROW_COUNT) {
|
|
51
|
-
_this.y_axis_summary_method = STATISTIC_SUMMARY_TYPE.MAX;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// y style
|
|
55
|
-
_this.color_option = getChartConfigValueByKey(CHART_KEY.COLOR_OPTION, options);
|
|
56
|
-
_this.y_axis_label_color = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_LABEL_COLOR, options);
|
|
57
|
-
_this.y_axis_label_color_rules = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_LABEL_COLOR_RULES, options);
|
|
58
|
-
_this.y_axis_show_value = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_SHOW_VALUE, options);
|
|
59
|
-
_this.y_axis_show_label = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_SHOW_LABEL, options);
|
|
60
|
-
if (!isBoolean(_this.y_axis_show_value)) {
|
|
61
|
-
_this.y_axis_show_value = null;
|
|
62
|
-
}
|
|
63
|
-
if (!isBoolean(_this.y_axis_show_label)) {
|
|
64
|
-
_this.y_axis_show_label = null;
|
|
65
|
-
}
|
|
66
|
-
_this.y_axis_label_position = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_LABEL_POSITION, options) || LABEL_POSITION_TYPE.CENTER;
|
|
67
|
-
_this.y_axis_auto_range = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_AUTO_RANGE, options);
|
|
68
|
-
_this.y_axis_min = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_MIN, options);
|
|
69
|
-
_this.y_axis_max = getChartConfigValueByKey(GENERIC_KEY.Y_AXIS_MAX, options);
|
|
70
|
-
if (!isBoolean(_this.y_axis_auto_range)) {
|
|
71
|
-
_this.y_axis_auto_range = true;
|
|
72
|
-
}
|
|
73
|
-
if (!isNumber(_this.y_axis_min)) {
|
|
74
|
-
_this.y_axis_min = null;
|
|
75
|
-
}
|
|
76
|
-
if (!isNumber(_this.y_axis_max)) {
|
|
77
|
-
_this.y_axis_max = null;
|
|
78
|
-
}
|
|
79
|
-
_this.y_axis_use_stack = getChartConfigValueByKey(CHART_KEY.Y_AXIS_USE_STACK, options);
|
|
80
|
-
if (!isBoolean(_this.y_axis_use_stack)) {
|
|
81
|
-
_this.y_axis_use_stack = null;
|
|
82
|
-
}
|
|
83
|
-
_this.y_axis_compare_label_color = getChartConfigValueByKey(CHART_KEY.Y_AXIS_COMPARE_LABEL_COLOR, options);
|
|
84
|
-
_this.y_axis_compared_label_color = getChartConfigValueByKey(CHART_KEY.Y_AXIS_COMPARED_LABEL_COLOR, options);
|
|
85
|
-
|
|
86
|
-
// column-group
|
|
87
|
-
_this.column_groupby_column_key = getChartConfigValueByKey(GENERIC_KEY.COLUMN_GROUPBY_COLUMN_KEY, options);
|
|
88
|
-
_this.column_groupby_date_granularity = getChartConfigValueByKey(GENERIC_KEY.COLUMN_GROUPBY_DATE_GRANULARITY, options);
|
|
89
|
-
_this.column_groupby_geolocation_granularity = getChartConfigValueByKey(GENERIC_KEY.COLUMN_GROUPBY_GEOLOCATION_GRANULARITY, options);
|
|
90
|
-
if (_this.column_groupby_date_granularity && !DATE_GRANULATES.includes(_this.column_groupby_date_granularity)) {
|
|
91
|
-
_this.column_groupby_date_granularity = STATISTIC_SUMMARY_TYPE.MONTH;
|
|
92
|
-
}
|
|
93
|
-
if (_this.column_groupby_geolocation_granularity && !GEOLOCATION_GRANULATES.includes(_this.column_groupby_geolocation_granularity)) {
|
|
94
|
-
_this.column_groupby_geolocation_granularity = STATISTIC_SUMMARY_TYPE.DISTRICT;
|
|
95
|
-
}
|
|
96
|
-
_this.column_groupby_multiple_numeric_column = getChartConfigValueByKey(CHART_KEY.COLUMN_GROUPBY_MULTIPLE_NUMERIC_COLUMN, options);
|
|
97
|
-
if (!isBoolean(_this.column_groupby_multiple_numeric_column)) {
|
|
98
|
-
_this.column_groupby_multiple_numeric_column = null;
|
|
99
|
-
}
|
|
100
|
-
_this.column_groupby_numeric_columns = getChartConfigValueByKey(CHART_KEY.COLUMN_GROUPBY_NUMERIC_COLUMNS, options);
|
|
101
|
-
_this.summary_columns = getChartConfigValueByKey(CHART_KEY.SUMMARY_COLUMNS, options);
|
|
102
|
-
if (!Array.isArray(_this.summary_columns)) {
|
|
103
|
-
_this.summary_columns = [];
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// other
|
|
107
|
-
_this.sort_type = getChartConfigValueByKey(CHART_KEY.SORT_TYPE, options);
|
|
108
|
-
_this.display_each_block_data = getChartConfigValueByKey(CHART_KEY.DISPLAY_EACH_BLOCK_DATA, options);
|
|
109
|
-
if (!isBoolean(_this.display_each_block_data)) {
|
|
110
|
-
_this.display_each_block_data = null;
|
|
111
|
-
}
|
|
112
|
-
_this.title_name = getChartConfigValueByKey(CHART_KEY.TITLE_NAME, options);
|
|
113
|
-
_this.label_font_size = getChartConfigValueByKey(GENERIC_KEY.LABEL_FONT_SIZE, options);
|
|
114
|
-
if (!isNumber(_this.label_font_size)) {
|
|
115
|
-
_this.label_font_size = DEFAULT_LABEL_FONT_SIZE;
|
|
116
|
-
}
|
|
117
|
-
_this.y_axis_left_summary_type = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_SUMMARY_TYPE, options);
|
|
118
|
-
_this.y_axis_right_summary_type = getChartConfigValueByKey(CHART_KEY.Y_AXIS_RIGHT_SUMMARY_TYPE, options);
|
|
119
|
-
_this.y_axis_left_summary_method = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_SUMMARY_METHOD, options);
|
|
120
|
-
_this.y_axis_right_summary_method = getChartConfigValueByKey(CHART_KEY.Y_AXIS_RIGHT_SUMMARY_METHOD, options);
|
|
121
|
-
_this.y_axis_left_summary_column = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_SUMMARY_COLUMN, options);
|
|
122
|
-
_this.y_axis_right_summary_column = getChartConfigValueByKey(CHART_KEY.Y_AXIS_RIGHT_SUMMARY_COLUMN, options);
|
|
123
|
-
_this.y_axis_left_group_by_multiple_numeric_column = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_GROUP_BY_MULTIPLE_NUMERIC_COLUMN, options);
|
|
124
|
-
_this.y_axis_left_group_by_numeric_columns = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_GROUP_BY_NUMERIC_COLUMNS, options);
|
|
125
|
-
if (!isBoolean(_this.y_axis_left_group_by_multiple_numeric_column)) {
|
|
126
|
-
_this.y_axis_left_group_by_multiple_numeric_column = null;
|
|
127
|
-
}
|
|
128
|
-
if (!Array.isArray(_this.y_axis_left_group_by_numeric_columns)) {
|
|
129
|
-
_this.y_axis_left_group_by_numeric_columns = [];
|
|
130
|
-
}
|
|
131
|
-
_this.y_axis_left_color = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_COLOR, options);
|
|
132
|
-
_this.y_axis_right_color = getChartConfigValueByKey(CHART_KEY.Y_AXIS_RIGHT_COLOR, options);
|
|
133
|
-
_this.show_y_axis_left_label = getChartConfigValueByKey(CHART_KEY.SHOW_Y_AXIS_LEFT_LABEL, options);
|
|
134
|
-
_this.show_y_axis_right_label = getChartConfigValueByKey(CHART_KEY.SHOW_Y_AXIS_RIGHT_LABEL, options);
|
|
135
|
-
_this.y_axis_left_label_position = getChartConfigValueByKey(CHART_KEY.Y_AXIS_LEFT_LABEL_POSITION, options) || LABEL_POSITION_TYPE.CENTER;
|
|
136
|
-
_this.y_axis_right_label_position = getChartConfigValueByKey(CHART_KEY.Y_AXIS_RIGHT_LABEL_POSITION, options) || LABEL_POSITION_TYPE.CENTER;
|
|
137
|
-
_this.y_axis_auto_range_left = getChartConfigValueByKey(CHART_KEY.Y_AXIS_AUTO_RANGE_LEFT, options);
|
|
138
|
-
_this.y_axis_min_left = getChartConfigValueByKey(CHART_KEY.Y_AXIS_MIN_LEFT, options);
|
|
139
|
-
_this.y_axis_max_left = getChartConfigValueByKey(CHART_KEY.Y_AXIS_MAX_LEFT, options);
|
|
140
|
-
if (!isBoolean(_this.y_axis_auto_range_left)) {
|
|
141
|
-
_this.y_axis_auto_range_left = true;
|
|
142
|
-
}
|
|
143
|
-
if (!isNumber(_this.y_axis_min_left)) {
|
|
144
|
-
_this.y_axis_min_left = null;
|
|
145
|
-
}
|
|
146
|
-
if (!isNumber(_this.y_axis_max_left)) {
|
|
147
|
-
_this.y_axis_max_left = null;
|
|
148
|
-
}
|
|
149
|
-
_this.y_axis_auto_range_right = getChartConfigValueByKey(CHART_KEY.Y_AXIS_AUTO_RANGE_RIGHT, options);
|
|
150
|
-
_this.y_axis_min_right = getChartConfigValueByKey(CHART_KEY.Y_AXIS_MIN_RIGHT, options);
|
|
151
|
-
_this.y_axis_max_right = getChartConfigValueByKey(CHART_KEY.Y_AXIS_MAX_RIGHT, options);
|
|
152
|
-
if (!isBoolean(_this.y_axis_auto_range_right)) {
|
|
153
|
-
_this.y_axis_auto_range_right = true;
|
|
154
|
-
}
|
|
155
|
-
if (!isNumber(_this.y_axis_min_right)) {
|
|
156
|
-
_this.y_axis_min_right = null;
|
|
157
|
-
}
|
|
158
|
-
if (!isNumber(_this.y_axis_max_right)) {
|
|
159
|
-
_this.y_axis_max_right = null;
|
|
160
|
-
}
|
|
161
|
-
_this.display_increase = getChartConfigValueByKey(CHART_KEY.DISPLAY_INCREASE, options);
|
|
162
|
-
_this.display_increase_percentage = getChartConfigValueByKey(CHART_KEY.DISPLAY_INCREASE_PERCENTAGE, options);
|
|
163
|
-
if (!isBoolean(_this.display_increase)) {
|
|
164
|
-
_this.display_increase = null;
|
|
165
|
-
}
|
|
166
|
-
if (!isBoolean(_this.display_increase_percentage)) {
|
|
167
|
-
_this.display_increase_percentage = null;
|
|
168
|
-
}
|
|
169
|
-
_this.increase_display_color = getChartConfigValueByKey(CHART_KEY.INCREASE_DISPLAY_COLOR, options);
|
|
170
|
-
if (!isBoolean(_this.increase_display_color)) {
|
|
171
|
-
_this.increase_display_color = null;
|
|
172
|
-
}
|
|
173
|
-
_this.completed_column_key = getChartConfigValueByKey(CHART_KEY.COMPLETED_COLUMN_KEY, options);
|
|
174
|
-
_this.target_column_key = getChartConfigValueByKey(CHART_KEY.TARGET_COLUMN_KEY, options);
|
|
175
|
-
_this.target_value_column_summary_method = getChartConfigValueByKey(CHART_KEY.TARGET_VALUE_COLUMN_SUMMARY_METHOD, options);
|
|
176
|
-
_this.total_value_column_key = getChartConfigValueByKey(CHART_KEY.TOTAL_VALUE_COLUMN_KEY, options);
|
|
177
|
-
_this.total_value_column_summary_method = getChartConfigValueByKey(CHART_KEY.TOTAL_VALUE_COLUMN_SUMMARY_METHOD, options);
|
|
178
|
-
_this.completed_color = getChartConfigValueByKey(CHART_KEY.COMPLETED_COLOR, options);
|
|
179
|
-
_this.display_percentage = getChartConfigValueByKey(CHART_KEY.DISPLAY_PERCENTAGE, options);
|
|
180
|
-
if (!isBoolean(_this.display_percentage)) {
|
|
181
|
-
_this.display_percentage = null;
|
|
182
|
-
}
|
|
183
|
-
_this.target_value_column_key = getChartConfigValueByKey(CHART_KEY.TARGET_VALUE_COLUMN_KEY, options);
|
|
184
|
-
_this.legend_direction = getChartConfigValueByKey(CHART_KEY.LEGEND_DIRECTION, options) || LEGEND_DIRECTION.VERTICAL;
|
|
185
|
-
_this.legend_size = getChartConfigValueByKey(CHART_KEY.LEGEND_SIZE, options);
|
|
186
|
-
if (!isNumber(_this.legend_size)) {
|
|
187
|
-
_this.legend_size = 1;
|
|
188
|
-
}
|
|
189
|
-
_this.is_transpose = getChartConfigValueByKey(CHART_KEY.IS_TRANSPOSE, options);
|
|
190
|
-
if (!isBoolean(_this.is_transpose)) {
|
|
191
|
-
_this.is_transpose = null;
|
|
192
|
-
}
|
|
193
|
-
_this.show_legend = getChartConfigValueByKey(CHART_KEY.SHOW_LEGEND, options);
|
|
194
|
-
if (!isBoolean(_this.show_legend)) {
|
|
195
|
-
_this.show_legend = null;
|
|
196
|
-
}
|
|
197
|
-
_this.display_label = getChartConfigValueByKey(CHART_KEY.DISPLAY_LABEL, options);
|
|
198
|
-
if (!isBoolean(_this.display_label)) {
|
|
199
|
-
_this.display_label = null;
|
|
200
|
-
}
|
|
201
|
-
_this.show_percent = getChartConfigValueByKey(CHART_KEY.SHOW_PERCENT, options);
|
|
202
|
-
if (!isBoolean(_this.show_percent)) {
|
|
203
|
-
_this.show_percent = null;
|
|
204
|
-
}
|
|
205
|
-
_this.minimum_slice_percent = getChartConfigValueByKey(CHART_KEY.MINIMUM_SLICE_PERCENT, options);
|
|
206
|
-
if (!isNumber(_this.minimum_slice_percent)) {
|
|
207
|
-
_this.minimum_slice_percent = 1.5;
|
|
208
|
-
}
|
|
209
|
-
_this.display_annotation = getChartConfigValueByKey(CHART_KEY.DISPLAY_ANNOTATION, options);
|
|
210
|
-
if (!isBoolean(_this.display_annotation)) {
|
|
211
|
-
_this.display_annotation = null;
|
|
212
|
-
}
|
|
213
|
-
_this.display_total = getChartConfigValueByKey(CHART_KEY.DISPLAY_TOTAL, options);
|
|
214
|
-
if (!isBoolean(_this.display_total)) {
|
|
215
|
-
_this.display_total = null;
|
|
216
|
-
}
|
|
217
|
-
_this.summary_columns_option = getChartConfigValueByKey(CHART_KEY.SUMMARY_COLUMNS_OPTION, options);
|
|
218
|
-
_this.increase_line_color = getChartConfigValueByKey(CHART_KEY.INCREASE_LINE_COLOR, options);
|
|
219
|
-
_this.data_color = getChartConfigValueByKey(CHART_KEY.DATA_COLOR, options);
|
|
220
|
-
_this.grid_distance = getChartConfigValueByKey(CHART_KEY.GRID_DISTANCE, options);
|
|
221
|
-
_this.grid_size = getChartConfigValueByKey(CHART_KEY.GRID_SIZE, options);
|
|
222
|
-
if (!isNumber(_this.grid_distance)) {
|
|
223
|
-
_this.grid_distance = null;
|
|
224
|
-
}
|
|
225
|
-
if (!isNumber(_this.grid_size)) {
|
|
226
|
-
_this.grid_size = null;
|
|
227
|
-
}
|
|
228
|
-
_this.bubble_color = getChartConfigValueByKey(CHART_KEY.BUBBLE_COLOR, options);
|
|
229
|
-
_this.label_position = getChartConfigValueByKey(CHART_KEY.LABEL_POSITION, options);
|
|
230
|
-
_this.label_format = getChartConfigValueByKey(CHART_KEY.LABEL_FORMAT, options);
|
|
231
|
-
return _this;
|
|
232
|
-
}
|
|
233
|
-
return _createClass(GenericModel);
|
|
234
|
-
}(BaseModel);
|
|
235
|
-
export { GenericModel as default };
|
package/lib/model/heat-map.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import { isDateColumn, getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
7
|
-
import BaseModel from './base-model';
|
|
8
|
-
import { STATISTIC_TYPE } from '../constants';
|
|
9
|
-
var HeatMap = /*#__PURE__*/function (_BaseModel) {
|
|
10
|
-
_inherits(HeatMap, _BaseModel);
|
|
11
|
-
var _super = _createSuper(HeatMap);
|
|
12
|
-
function HeatMap(options, tables) {
|
|
13
|
-
var _this;
|
|
14
|
-
_classCallCheck(this, HeatMap);
|
|
15
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
16
|
-
type: STATISTIC_TYPE.HEAT_MAP
|
|
17
|
-
}));
|
|
18
|
-
_this.time_column_key = options.x_axis_column_key;
|
|
19
|
-
if (_this.time_column_key && _this.table_id && tables) {
|
|
20
|
-
var table = getTableById(tables, _this.table_id);
|
|
21
|
-
var column = getTableColumnByKey(table, _this.time_column_key);
|
|
22
|
-
if (!column || !isDateColumn(column)) {
|
|
23
|
-
_this.time_column_key = null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
_this.summary_type = options.y_axis_summary_type;
|
|
27
|
-
_this.summary_column_key = options.y_axis_summary_column_key;
|
|
28
|
-
_this.summary_method = options.y_axis_summary_method;
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
return _createClass(HeatMap);
|
|
32
|
-
}(BaseModel);
|
|
33
|
-
export default HeatMap;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import BaseModel from './base-model';
|
|
7
|
-
import { isBoolean } from '../utils';
|
|
8
|
-
import { LABEL_COLORS, STATISTIC_TYPE, STATISTIC_SUMMARY_TYPE } from '../constants';
|
|
9
|
-
var HorizontalBar = /*#__PURE__*/function (_BaseModel) {
|
|
10
|
-
_inherits(HorizontalBar, _BaseModel);
|
|
11
|
-
var _super = _createSuper(HorizontalBar);
|
|
12
|
-
function HorizontalBar(options) {
|
|
13
|
-
var _this;
|
|
14
|
-
_classCallCheck(this, HorizontalBar);
|
|
15
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
16
|
-
type: STATISTIC_TYPE.HORIZONTAL_BAR
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
// vertical axis data
|
|
20
|
-
_this.vertical_axis_column_key = options.x_axis_column_key;
|
|
21
|
-
_this.vertical_axis_date_granularity = options.x_axis_date_granularity;
|
|
22
|
-
_this.vertical_axis_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
23
|
-
_this.vertical_axis_include_empty = options.x_axis_include_empty_cells;
|
|
24
|
-
|
|
25
|
-
// vertical axis style
|
|
26
|
-
_this.show_vertical_axis_label = isBoolean(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
27
|
-
_this.vertical_axis_label_position = options.x_axis_label_position;
|
|
28
|
-
|
|
29
|
-
// horizontal axis data
|
|
30
|
-
_this.horizontal_axis_summary_type = options.y_axis_summary_type || STATISTIC_SUMMARY_TYPE.COUNT;
|
|
31
|
-
_this.horizontal_axis_column_key = options.y_axis_summary_column_key;
|
|
32
|
-
_this.horizontal_axis_summary_method = options.y_axis_summary_method || STATISTIC_SUMMARY_TYPE.SUM;
|
|
33
|
-
|
|
34
|
-
// horizontal axis style
|
|
35
|
-
_this.horizontal_axis_label_color = options.y_axis_label_color || LABEL_COLORS[0];
|
|
36
|
-
_this.show_horizontal_axis_label = isBoolean(options.y_axis_show_label) ? options.y_axis_show_label : false;
|
|
37
|
-
_this.horizontal_axis_label_position = options.y_axis_label_position;
|
|
38
|
-
_this.display_data = isBoolean(options.y_axis_show_value) ? options.y_axis_show_value : false;
|
|
39
|
-
_this.horizontal_axis_auto_range = options.y_axis_auto_range;
|
|
40
|
-
_this.horizontal_axis_min = options.y_axis_min;
|
|
41
|
-
_this.horizontal_axis_max = options.y_axis_max;
|
|
42
|
-
_this.sort_type = options.sort_type;
|
|
43
|
-
_this.label_font_size = options.label_font_size;
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
return _createClass(HorizontalBar);
|
|
47
|
-
}(BaseModel);
|
|
48
|
-
export default HorizontalBar;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import BaseModel from './base-model';
|
|
7
|
-
import { isBoolean } from '../utils';
|
|
8
|
-
import { STATISTIC_TYPE, LABEL_COLORS, STATISTIC_SUMMARY_TYPE } from '../constants';
|
|
9
|
-
var HorizontalGroupBar = /*#__PURE__*/function (_BaseModel) {
|
|
10
|
-
_inherits(HorizontalGroupBar, _BaseModel);
|
|
11
|
-
var _super = _createSuper(HorizontalGroupBar);
|
|
12
|
-
function HorizontalGroupBar(options) {
|
|
13
|
-
var _this;
|
|
14
|
-
_classCallCheck(this, HorizontalGroupBar);
|
|
15
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
16
|
-
type: STATISTIC_TYPE.HORIZONTAL_GROUP_BAR
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
// vertical axis data
|
|
20
|
-
_this.vertical_axis_column_key = options.x_axis_column_key;
|
|
21
|
-
_this.vertical_axis_date_granularity = options.x_axis_date_granularity;
|
|
22
|
-
_this.vertical_axis_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
23
|
-
_this.vertical_axis_include_empty = options.x_axis_include_empty_cells;
|
|
24
|
-
|
|
25
|
-
// vertical axis style
|
|
26
|
-
_this.show_vertical_axis_label = isBoolean(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
27
|
-
_this.vertical_axis_label_position = options.x_axis_label_position;
|
|
28
|
-
|
|
29
|
-
// horizontal axis data
|
|
30
|
-
_this.horizontal_axis_summary_type = options.y_axis_summary_type || STATISTIC_SUMMARY_TYPE.COUNT;
|
|
31
|
-
_this.horizontal_axis_column_key = options.y_axis_summary_column_key;
|
|
32
|
-
_this.horizontal_axis_summary_method = options.y_axis_summary_method || STATISTIC_SUMMARY_TYPE.SUM;
|
|
33
|
-
|
|
34
|
-
// horizontal axis style
|
|
35
|
-
_this.horizontal_axis_label_color = options.y_axis_label_color || LABEL_COLORS[0];
|
|
36
|
-
_this.show_horizontal_axis_label = isBoolean(options.y_axis_show_label) ? options.y_axis_show_label : false;
|
|
37
|
-
_this.horizontal_axis_label_position = options.y_axis_label_position;
|
|
38
|
-
_this.horizontal_axis_auto_range = options.y_axis_auto_range;
|
|
39
|
-
_this.horizontal_axis_min = options.y_axis_min;
|
|
40
|
-
_this.horizontal_axis_max = options.y_axis_max;
|
|
41
|
-
|
|
42
|
-
// column-group
|
|
43
|
-
_this.column_groupby_column_key = options.column_groupby_column_key;
|
|
44
|
-
_this.column_groupby_date_granularity = options.column_groupby_date_granularity;
|
|
45
|
-
_this.column_groupby_geolocation_granularity = options.column_groupby_geolocation_granularity;
|
|
46
|
-
_this.column_groupby_multiple_numeric_column = options.column_groupby_multiple_numeric_column;
|
|
47
|
-
_this.summary_columns = options.summary_columns;
|
|
48
|
-
_this.label_font_size = options.label_font_size;
|
|
49
|
-
return _this;
|
|
50
|
-
}
|
|
51
|
-
return _createClass(HorizontalGroupBar);
|
|
52
|
-
}(BaseModel);
|
|
53
|
-
export default HorizontalGroupBar;
|
package/lib/model/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
var _STATISTIC_MAP;
|
|
3
|
-
import StatisticModel from './statistic';
|
|
4
|
-
import { STATISTIC_TYPE } from '../constants';
|
|
5
|
-
import GenericModel from './generic-model';
|
|
6
|
-
import Map from './map';
|
|
7
|
-
import MapBubble from './map-bubble';
|
|
8
|
-
import WorldMap from './world-map';
|
|
9
|
-
import WorldMapBubble from './world-map-bubble';
|
|
10
|
-
import HeatMap from './heat-map';
|
|
11
|
-
import Mirror from './mirror';
|
|
12
|
-
import Bar from './bar';
|
|
13
|
-
import Line from './line';
|
|
14
|
-
import BarGroup from './bar-group';
|
|
15
|
-
import BarStack from './bar-stack';
|
|
16
|
-
import LineGroup from './line-group';
|
|
17
|
-
import AreaGroup from './area-group';
|
|
18
|
-
import Pie from './pie';
|
|
19
|
-
import Ring from './ring';
|
|
20
|
-
import TreeMap from './tree-map';
|
|
21
|
-
import Scatter from './scatter';
|
|
22
|
-
import BasicNumberCard from './basic-number-card';
|
|
23
|
-
import HorizontalBar from './horizontal-bar';
|
|
24
|
-
import HorizontalGroupBar from './horizontal-group-bar';
|
|
25
|
-
import StackedHorizontalBar from './stacked-horizontal-bar';
|
|
26
|
-
import Combination from './combination';
|
|
27
|
-
import CompareBar from './compare-bar';
|
|
28
|
-
import Trend from './trend';
|
|
29
|
-
import Completeness from './completeness';
|
|
30
|
-
import CompletenessGroup from './completeness-group';
|
|
31
|
-
import Dashboard from './dashboard';
|
|
32
|
-
import Table from './table';
|
|
33
|
-
import Area from './area';
|
|
34
|
-
import User from './user';
|
|
35
|
-
var STATISTIC_MAP = (_STATISTIC_MAP = {}, _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.BAR, Bar), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.BAR_GROUP, BarGroup), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.BAR_STACK, BarStack), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.COMPARE_BAR, CompareBar), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.HORIZONTAL_BAR, HorizontalBar), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.HORIZONTAL_GROUP_BAR, HorizontalGroupBar), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.STACKED_HORIZONTAL_BAR, StackedHorizontalBar), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.COMPLETENESS, Completeness), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.COMPLETENESS_GROUP, CompletenessGroup), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.LINE, Line), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.LINE_GROUP, LineGroup), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.AREA, Area), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.AREA_GROUP, AreaGroup), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.PIE, Pie), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.RING, Ring), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.SCATTER, Scatter), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.COMBINATION, Combination), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.MAP, Map), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.MAP_BUBBLE, MapBubble), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.WORLD_MAP, WorldMap), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.WORLD_MAP_BUBBLE, WorldMapBubble), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.HEAT_MAP, HeatMap), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.MIRROR, Mirror), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.BASIC_NUMBER_CARD, BasicNumberCard), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.TREND, Trend), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.DASHBOARD, Dashboard), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.TREE_MAP, TreeMap), _defineProperty(_STATISTIC_MAP, STATISTIC_TYPE.TABLE, Table), _STATISTIC_MAP);
|
|
36
|
-
export { StatisticModel, GenericModel, STATISTIC_MAP, User };
|
package/lib/model/line-group.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import BaseModel from './base-model';
|
|
7
|
-
import { isBoolean } from '../utils';
|
|
8
|
-
import { LABEL_COLORS, STATISTIC_TYPE, STATISTIC_SUMMARY_TYPE } from '../constants';
|
|
9
|
-
var LineGroup = /*#__PURE__*/function (_BaseModel) {
|
|
10
|
-
_inherits(LineGroup, _BaseModel);
|
|
11
|
-
var _super = _createSuper(LineGroup);
|
|
12
|
-
function LineGroup(options) {
|
|
13
|
-
var _this;
|
|
14
|
-
_classCallCheck(this, LineGroup);
|
|
15
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
16
|
-
type: STATISTIC_TYPE.LINE_GROUP
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
// x axis data
|
|
20
|
-
_this.x_axis_column_key = options.x_axis_column_key;
|
|
21
|
-
_this.x_axis_include_empty_cells = options.x_axis_include_empty_cells;
|
|
22
|
-
_this.x_axis_date_granularity = options.x_axis_date_granularity;
|
|
23
|
-
_this.x_axis_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
24
|
-
|
|
25
|
-
// x axis style
|
|
26
|
-
_this.x_axis_show_label = isBoolean(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
27
|
-
_this.x_axis_label_position = options.x_axis_label_position;
|
|
28
|
-
|
|
29
|
-
// y axis data
|
|
30
|
-
_this.y_axis_summary_column_key = options.y_axis_summary_column_key;
|
|
31
|
-
_this.y_axis_summary_type = options.y_axis_summary_type || STATISTIC_SUMMARY_TYPE.COUNT;
|
|
32
|
-
_this.y_axis_summary_method = options.y_axis_summary_method || STATISTIC_SUMMARY_TYPE.SUM;
|
|
33
|
-
|
|
34
|
-
// y axis style
|
|
35
|
-
_this.y_axis_show_value = isBoolean(options.y_axis_show_value) ? options.y_axis_show_value : false;
|
|
36
|
-
_this.y_axis_show_label = isBoolean(options.y_axis_show_label) ? options.y_axis_show_label : false;
|
|
37
|
-
_this.y_axis_label_position = options.y_axis_label_position;
|
|
38
|
-
_this.y_axis_auto_range = options.y_axis_auto_range;
|
|
39
|
-
_this.y_axis_min = options.y_axis_min;
|
|
40
|
-
_this.y_axis_max = options.y_axis_max;
|
|
41
|
-
_this.y_axis_label_color = options.y_axis_label_color || LABEL_COLORS[0];
|
|
42
|
-
|
|
43
|
-
// column group
|
|
44
|
-
_this.column_groupby_column_key = options.column_groupby_column_key;
|
|
45
|
-
_this.column_groupby_date_granularity = options.column_groupby_date_granularity;
|
|
46
|
-
_this.column_groupby_geolocation_granularity = options.column_groupby_geolocation_granularity;
|
|
47
|
-
_this.column_groupby_multiple_numeric_column = isBoolean(options.column_groupby_multiple_numeric_column) ? options.column_groupby_multiple_numeric_column : false;
|
|
48
|
-
_this.summary_columns = options.summary_columns;
|
|
49
|
-
_this.label_font_size = options.label_font_size;
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
return _createClass(LineGroup);
|
|
53
|
-
}(BaseModel);
|
|
54
|
-
export default LineGroup;
|
package/lib/model/line.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import BaseModel from './base-model';
|
|
7
|
-
import { isBoolean } from '../utils';
|
|
8
|
-
import { LABEL_COLORS, STATISTIC_TYPE, STATISTIC_SUMMARY_TYPE } from '../constants';
|
|
9
|
-
var Line = /*#__PURE__*/function (_BaseModel) {
|
|
10
|
-
_inherits(Line, _BaseModel);
|
|
11
|
-
var _super = _createSuper(Line);
|
|
12
|
-
function Line(options) {
|
|
13
|
-
var _this;
|
|
14
|
-
_classCallCheck(this, Line);
|
|
15
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
16
|
-
type: STATISTIC_TYPE.LINE
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
// x axis data
|
|
20
|
-
_this.x_axis_column_key = options.x_axis_column_key;
|
|
21
|
-
_this.x_axis_include_empty_cells = options.x_axis_include_empty_cells;
|
|
22
|
-
_this.x_axis_date_granularity = options.x_axis_date_granularity;
|
|
23
|
-
_this.x_axis_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
24
|
-
|
|
25
|
-
// x axis style
|
|
26
|
-
_this.x_axis_show_label = isBoolean(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
27
|
-
_this.x_axis_label_position = options.x_axis_label_position;
|
|
28
|
-
|
|
29
|
-
// y axis data
|
|
30
|
-
_this.y_axis_summary_column_key = options.y_axis_summary_column_key;
|
|
31
|
-
_this.y_axis_summary_type = options.y_axis_summary_type || STATISTIC_SUMMARY_TYPE.COUNT;
|
|
32
|
-
_this.y_axis_summary_method = options.y_axis_summary_method || STATISTIC_SUMMARY_TYPE.SUM;
|
|
33
|
-
|
|
34
|
-
// y axis style
|
|
35
|
-
_this.y_axis_show_value = isBoolean(options.y_axis_show_value) ? options.y_axis_show_value : false;
|
|
36
|
-
_this.y_axis_show_label = isBoolean(options.y_axis_show_label) ? options.y_axis_show_label : false;
|
|
37
|
-
_this.y_axis_label_position = options.y_axis_label_position;
|
|
38
|
-
_this.y_axis_auto_range = options.y_axis_auto_range;
|
|
39
|
-
_this.y_axis_min = options.y_axis_min;
|
|
40
|
-
_this.y_axis_max = options.y_axis_max;
|
|
41
|
-
_this.y_axis_label_color = options.y_axis_label_color || LABEL_COLORS[0];
|
|
42
|
-
_this.sort_type = options.sort_type;
|
|
43
|
-
_this.label_font_size = options.label_font_size;
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
return _createClass(Line);
|
|
47
|
-
}(BaseModel);
|
|
48
|
-
export default Line;
|
package/lib/model/map-bubble.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import { getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
7
|
-
import BaseModel from './base-model';
|
|
8
|
-
import { isStatisticMapColumn } from '../utils';
|
|
9
|
-
import { STATISTIC_TYPE } from '../constants';
|
|
10
|
-
var MapBubble = /*#__PURE__*/function (_BaseModel) {
|
|
11
|
-
_inherits(MapBubble, _BaseModel);
|
|
12
|
-
var _super = _createSuper(MapBubble);
|
|
13
|
-
function MapBubble(options, tables) {
|
|
14
|
-
var _this;
|
|
15
|
-
_classCallCheck(this, MapBubble);
|
|
16
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
17
|
-
type: STATISTIC_TYPE.MAP_BUBBLE
|
|
18
|
-
}));
|
|
19
|
-
_this.geo_column_key = options.x_axis_column_key;
|
|
20
|
-
if (_this.geo_column_key && _this.table_id && tables) {
|
|
21
|
-
var table = getTableById(tables, _this.table_id);
|
|
22
|
-
var column = getTableColumnByKey(table, _this.geo_column_key);
|
|
23
|
-
if (!isStatisticMapColumn(column)) {
|
|
24
|
-
_this.geo_column_key = null;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
_this.geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
28
|
-
_this.summary_type = options.y_axis_summary_type;
|
|
29
|
-
_this.summary_method = options.y_axis_summary_method;
|
|
30
|
-
_this.summary_column_key = options.y_axis_summary_column_key;
|
|
31
|
-
_this.legend_direction = options.legend_direction;
|
|
32
|
-
_this.legend_size = options.legend_size;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
return _createClass(MapBubble);
|
|
36
|
-
}(BaseModel);
|
|
37
|
-
export default MapBubble;
|
package/lib/model/map.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import { getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
7
|
-
import BaseModel from './base-model';
|
|
8
|
-
import { isStatisticMapColumn } from '../utils';
|
|
9
|
-
import { STATISTIC_TYPE } from '../constants';
|
|
10
|
-
var Map = /*#__PURE__*/function (_BaseModel) {
|
|
11
|
-
_inherits(Map, _BaseModel);
|
|
12
|
-
var _super = _createSuper(Map);
|
|
13
|
-
function Map(options, tables) {
|
|
14
|
-
var _this;
|
|
15
|
-
_classCallCheck(this, Map);
|
|
16
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
17
|
-
type: STATISTIC_TYPE.MAP
|
|
18
|
-
}));
|
|
19
|
-
_this.geo_column_key = options.x_axis_column_key;
|
|
20
|
-
if (_this.geo_column_key && _this.table_id && tables) {
|
|
21
|
-
var table = getTableById(tables, _this.table_id);
|
|
22
|
-
var column = getTableColumnByKey(table, _this.geo_column_key);
|
|
23
|
-
if (!isStatisticMapColumn(column)) {
|
|
24
|
-
_this.geo_column_key = null;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
_this.geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
28
|
-
_this.summary_type = options.y_axis_summary_type;
|
|
29
|
-
_this.summary_method = options.y_axis_summary_method;
|
|
30
|
-
_this.summary_column_key = options.y_axis_summary_column_key;
|
|
31
|
-
_this.legend_direction = options.legend_direction;
|
|
32
|
-
_this.legend_size = options.legend_size;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
return _createClass(Map);
|
|
36
|
-
}(BaseModel);
|
|
37
|
-
export default Map;
|
package/lib/model/mirror.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import { getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
7
|
-
import BaseModel from './base-model';
|
|
8
|
-
import { isBoolean, isStatisticMirrorColumn } from '../utils';
|
|
9
|
-
import { STATISTIC_TYPE } from '../constants';
|
|
10
|
-
var Mirror = /*#__PURE__*/function (_BaseModel) {
|
|
11
|
-
_inherits(Mirror, _BaseModel);
|
|
12
|
-
var _super = _createSuper(Mirror);
|
|
13
|
-
function Mirror(options, tables) {
|
|
14
|
-
var _this;
|
|
15
|
-
_classCallCheck(this, Mirror);
|
|
16
|
-
_this = _super.call(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
17
|
-
type: STATISTIC_TYPE.MIRROR
|
|
18
|
-
}));
|
|
19
|
-
_this.column_key = options.x_axis_column_key;
|
|
20
|
-
if (_this.column && _this.table_id && tables) {
|
|
21
|
-
var table = getTableById(tables, _this.table_id);
|
|
22
|
-
var column = getTableColumnByKey(table, _this.column_key);
|
|
23
|
-
if (!isStatisticMirrorColumn(column)) {
|
|
24
|
-
_this.column_key = null;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
_this.is_transpose = isBoolean(options.is_transpose) ? options.is_transpose : false;
|
|
28
|
-
_this.group_column_key = options.column_groupby_column_key;
|
|
29
|
-
_this.summary_method = options.y_axis_summary_method;
|
|
30
|
-
_this.summary_column_key = options.y_axis_summary_column_key;
|
|
31
|
-
_this.summary_type = options.y_axis_summary_type;
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return _createClass(Mirror);
|
|
35
|
-
}(BaseModel);
|
|
36
|
-
export default Mirror;
|