sea-chart 1.1.83 → 1.1.84-alpha.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.
|
@@ -237,7 +237,10 @@ async function calculateTwoDimensionTable(chart, value, _ref2) {
|
|
|
237
237
|
const isGroupbyColumnDataAsAnArray = isArrayCellValue(groupbyColumn);
|
|
238
238
|
const rowGroupbyColumn = getTableColumnByKey(table, column_groupby_column_key);
|
|
239
239
|
if (!rowGroupbyColumn) {
|
|
240
|
-
return calculateOneDimensionTable(chart, value
|
|
240
|
+
return calculateOneDimensionTable(chart, value, {
|
|
241
|
+
getViewRows,
|
|
242
|
+
getTableFormulaResults
|
|
243
|
+
});
|
|
241
244
|
}
|
|
242
245
|
const isRowGroupbyColumnDataAsAnArray = isArrayCellValue(rowGroupbyColumn);
|
|
243
246
|
const statRows = await getViewRows(view, table);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import {
|
|
4
|
+
import { TYPE_COLOR_USING, CHART_STYLE_COLORS, CHART_THEME_COLOR } from '../../constants';
|
|
5
5
|
import { BaseUtils, isFunction } from '../../utils';
|
|
6
6
|
import { getLabelColor, getConvertedColorRules } from '../../utils/color-utils';
|
|
7
7
|
import intl from '../../intl';
|
|
@@ -16,7 +16,7 @@ class HorizontalBar extends HorizontalComponent {
|
|
|
16
16
|
const {
|
|
17
17
|
display_data
|
|
18
18
|
} = chart.config;
|
|
19
|
-
const appendPadding = [0, display_data ?
|
|
19
|
+
const appendPadding = [0, display_data ? 30 : 0, 0, 0]; // used to display value on the right
|
|
20
20
|
this.initChart(this.container, {
|
|
21
21
|
appendPadding
|
|
22
22
|
});
|
|
@@ -54,7 +54,6 @@ class HorizontalBar extends HorizontalComponent {
|
|
|
54
54
|
const theme = CHART_THEME_COLOR[globalTheme];
|
|
55
55
|
const {
|
|
56
56
|
table_id,
|
|
57
|
-
horizontal_axis_summary_type,
|
|
58
57
|
horizontal_axis_summary_method,
|
|
59
58
|
y_axis_summary_type,
|
|
60
59
|
y_axis_column_key,
|