mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
feat(echarts): add types for echarts (#38144)
* feat(echarts): add types for echarts + lineStyle.color can be an string[] https://echarts.apache.org/zh/option.html#yAxis.splitLine.lineStyle.color + cartesianAxis.min/max can be a function https://echarts.apache.org/zh/option.html#yAxis.min * docs(echarts): change reference link * docs(echarts): fix yAxis.max reference link * style(echarts): add space before `number`
This commit is contained in:
parent
808267e6e8
commit
dd4a93f39b
8
types/echarts/index.d.ts
vendored
8
types/echarts/index.d.ts
vendored
@ -1170,9 +1170,9 @@ declare namespace echarts {
|
||||
* Moreover, it can be set as negative number, like `-3`.
|
||||
*
|
||||
* @default null
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.min
|
||||
* @see https://echarts.apache.org/option.html#yAxis.min
|
||||
*/
|
||||
min?: number | string;
|
||||
min?: number | string | ((value: { min: number, max: number }) => number);
|
||||
|
||||
/**
|
||||
* The maximum value of axis.
|
||||
@ -1187,9 +1187,9 @@ declare namespace echarts {
|
||||
* Moreover, it can be set as negative number, like `-3`.
|
||||
*
|
||||
* @default null
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.max
|
||||
* @see https://echarts.apache.org/option.html#yAxis.max
|
||||
*/
|
||||
max?: number | string;
|
||||
max?: number | string | ((value: { min: number, max: number } ) => number);
|
||||
|
||||
/**
|
||||
* It is available only in numerical axis, i.e., type: `'value'`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user