[echarts] fix series-bar.itemStyle.color for linear gradient & radial gradient (#37193)

* [echarts] fix series-bar.itemStyle.color for linear gradient

* fix series-bar.itemStyle.color for linear gradient & radial gradient
This commit is contained in:
Ye Jun 2019-08-02 05:55:45 +08:00 committed by Jesse Trinity
parent 7d08dc2b5d
commit 5ab017973c

View File

@ -922,7 +922,28 @@ declare namespace echarts {
* "auto"
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-bar.itemStyle.color
*/
color?: string;
color?: string | {
type: 'linear',
x: number,
y: number,
x2: number,
y2: number,
colorStops: {
offset: number,
color: string
}[],
global: boolean
} | {
type: 'radial',
x: number,
y: number,
r: number,
colorStops: {
offset: number,
color: string
}[],
global: boolean
};
/**
* The bodrder color of bar.