You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/05/28 05:43:28 UTC
[incubator-echarts] 02/04: fix: compat barBorderXXX in
backgroundStyle
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch label-enhancement
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 906e36324fa8677bfebfca574050d171b5496db3
Author: pissang <bm...@gmail.com>
AuthorDate: Thu May 28 13:40:24 2020 +0800
fix: compat barBorderXXX in backgroundStyle
---
src/preprocessor/backwardCompat.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/preprocessor/backwardCompat.ts b/src/preprocessor/backwardCompat.ts
index c303624..13c22a0 100644
--- a/src/preprocessor/backwardCompat.ts
+++ b/src/preprocessor/backwardCompat.ts
@@ -25,6 +25,7 @@ import {normalizeToArray} from '../util/model';
import { Dictionary } from 'zrender/src/core/types';
import { ECUnitOption, SeriesOption } from '../util/types';
import { __DEV__ } from '../config';
+import type { BarSeriesOption } from '../chart/bar/BarSeries';
function get(opt: Dictionary<any>, path: string): any {
const pathArr = path.split(',');
@@ -129,6 +130,7 @@ export default function (option: ECUnitOption, isTheme?: boolean) {
}
else if (seriesType === 'bar') {
compatBarItemStyle(seriesOpt);
+ compatBarItemStyle((seriesOpt as BarSeriesOption).backgroundStyle);
// @ts-ignore
compatBarItemStyle(seriesOpt.emphasis);
const data = seriesOpt.data;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org