sea-chart 1.1.1 → 1.1.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/dist/context.js +2 -2
- package/dist/view/wrapper/area.js +2 -2
- package/package.json +1 -1
package/dist/context.js
CHANGED
|
@@ -112,9 +112,9 @@ class Context {
|
|
|
112
112
|
server,
|
|
113
113
|
mediaUrl
|
|
114
114
|
} = this.settings;
|
|
115
|
-
return "".concat(server).concat(mediaUrl, "dtable-statistic/img/").concat(name);
|
|
115
|
+
return "".concat(server).concat(mediaUrl, "dtable-statistic/img/").concat(name, "?v=0.0.1");
|
|
116
116
|
}
|
|
117
|
-
return "".concat(DEFAULT_MEDIAURL, "dtable-statistic/img/").concat(name);
|
|
117
|
+
return "".concat(DEFAULT_MEDIAURL, "dtable-statistic/img/").concat(name, "?v=0.0.1");
|
|
118
118
|
};
|
|
119
119
|
this.api = null;
|
|
120
120
|
this.settings = {};
|
|
@@ -80,7 +80,7 @@ class Area extends ChartComponent {
|
|
|
80
80
|
} = chart.config;
|
|
81
81
|
const newData = this.getChartGroupData(data);
|
|
82
82
|
const isSmooth = line_type === CHART_LINE_TYPES[1];
|
|
83
|
-
const
|
|
83
|
+
const isMultipleSummary = summary_columns && summary_columns.length;
|
|
84
84
|
const isAreaGroup = chart.config.type === CHART_TYPE.AREA_GROUP;
|
|
85
85
|
const useSingleSelectColumnColor = (columnGroupbyColumn === null || columnGroupbyColumn === void 0 ? void 0 : columnGroupbyColumn.type) === CellType.SINGLE_SELECT && color_theme === SUPPORT_SINGLE_SELECT_THEMES_OPTIONS.SINGLE_SELECT_COLUMN_COLORS;
|
|
86
86
|
let chartBarColor;
|
|
@@ -145,7 +145,7 @@ class Area extends ChartComponent {
|
|
|
145
145
|
}
|
|
146
146
|
}).shape(isSmooth ? 'smooth' : 'area').color(chartBarColor, colorCallBack).tooltip('group_name*name*value', (group_name, name, value) => {
|
|
147
147
|
return {
|
|
148
|
-
title: isAreaGroup &&
|
|
148
|
+
title: isAreaGroup && isMultipleSummary ? !name && typeof name !== 'number' ? intl.get('Empty') : name : title,
|
|
149
149
|
value: BaseUtils.getSummaryValueDisplayString(summaryColumn, value, y_axis_summary_method),
|
|
150
150
|
name: group_name
|
|
151
151
|
};
|