@zgfe/business-lib 1.0.0-beta.2 → 1.0.0-beta.3
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/es/chart/chartConfig.js +2 -2
- package/es/chart/index.js +0 -1
- package/package.json +1 -1
package/es/chart/chartConfig.js
CHANGED
|
@@ -225,9 +225,9 @@ export var getChartOption = function getChartOption(chartType, xData) {
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
if (legendPosition === 'top') {
|
|
228
|
-
grid.top = series.length > 1 ||
|
|
228
|
+
grid.top = series.length > 1 || series[0].name ? 45 : 10;
|
|
229
229
|
} else if (legendPosition === 'bottom') {
|
|
230
|
-
grid.bottom = series.length > 1 ? 45 : 0;
|
|
230
|
+
grid.bottom = series.length > 1 || series[0].name ? 45 : 0;
|
|
231
231
|
} // 图例配置
|
|
232
232
|
|
|
233
233
|
|
package/es/chart/index.js
CHANGED
|
@@ -136,7 +136,6 @@ var BizChart = function BizChart(props) {
|
|
|
136
136
|
eOption = getChartOption(type, reverseXAxis && showList ? showList : _rData.x_axis, _rData.series, sameColor, legendPosition, legendOrient, valueUnit, tooltipFormatter, xAxisFormatter, yAxisFormatter, reverseXAxis, seriesName);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
console.log(type, ' >>> ', eOption);
|
|
140
139
|
setChartOption(function () {
|
|
141
140
|
return _objectSpread({}, eOption);
|
|
142
141
|
});
|