sea-chart 1.1.83 → 1.1.84-alpha.1
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
CHANGED
|
@@ -46,13 +46,13 @@ class SeaChartAPI {
|
|
|
46
46
|
};
|
|
47
47
|
this.sqlQuery = function (sql, parameters) {
|
|
48
48
|
let convert_keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
49
|
-
// dtable-db
|
|
50
49
|
const {
|
|
51
|
-
|
|
50
|
+
dtableServer,
|
|
52
51
|
dtableUuid,
|
|
53
52
|
accessToken
|
|
54
53
|
} = _this;
|
|
55
|
-
const
|
|
54
|
+
const apiGatewayUrl = (dtableServer || '').replace(/\/*$/, '') + '/api-gateway/';
|
|
55
|
+
const url = `${apiGatewayUrl}api/v2/dtables/${dtableUuid}/sql/`;
|
|
56
56
|
const data = {
|
|
57
57
|
sql,
|
|
58
58
|
convert_keys,
|
|
@@ -95,7 +95,6 @@ class SeaChartAPI {
|
|
|
95
95
|
this.dtableUuid = dtable_uuid;
|
|
96
96
|
this.dtableServer = dtable_server.replace(/\/+$/, '') + '/';
|
|
97
97
|
this.dtableSocket = dtable_socket.replace(/\/+$/, '') + '/';
|
|
98
|
-
this.dtableDB = dtable_db.replace(/\/+$/, '') + '/';
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
// queryUsers(userIdList) {
|
|
@@ -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,
|