mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Series Gauge missing field data (#43673)
* series gauge data field * . * . Co-authored-by: Andrea Puccio <andrea.puccio@futuryng.com>
This commit is contained in:
parent
0d332b940f
commit
c917a3f71a
39
types/echarts/options/series/gauge.d.ts
vendored
39
types/echarts/options/series/gauge.d.ts
vendored
@ -88,6 +88,25 @@ declare namespace echarts {
|
||||
*/
|
||||
clockwise?: boolean;
|
||||
|
||||
/**
|
||||
* Data array of series, which can be a single data value.
|
||||
*
|
||||
* [see doc](https://echarts.apache.org/en/option.html#series-gauge.data)
|
||||
*
|
||||
* Or, if need extra dimensions for components like [visualMap](https://echarts.apache.org/en/option.html#visualMap)
|
||||
* to map to graphic attributes like color, it can also be in the form of array.
|
||||
*
|
||||
* In this case, we can assigin the second value in each arrary item to [visualMap](https://echarts.apache.org/en/option.html#visualMap) component.
|
||||
* More likely, we need to assign name to each data item, in which case each item should be an object:
|
||||
*
|
||||
*
|
||||
* @see https://echarts.apache.org/en/option.html#series-gauge.data
|
||||
*/
|
||||
data?: (
|
||||
(void | string | number | SeriesGauge.DataObject)[]
|
||||
| (void | string | number | SeriesGauge.DataObject)[][]
|
||||
);
|
||||
|
||||
/**
|
||||
* The minimum data value which map to
|
||||
* [minAngle](https://echarts.apache.org/en/option.html#series-gauge.minAngle)
|
||||
@ -14300,5 +14319,25 @@ declare namespace echarts {
|
||||
extraCssText?: string;
|
||||
};
|
||||
}
|
||||
|
||||
namespace SeriesGauge {
|
||||
interface DataObject {
|
||||
/**
|
||||
* The name of data item.
|
||||
*
|
||||
*
|
||||
* @see https://echarts.apache.org/en/option.html#series-gauge.data.name
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* The value of a single data item.
|
||||
*
|
||||
*
|
||||
* @see https://echarts.apache.org/en/option.html#series-gauge.data.value
|
||||
*/
|
||||
value?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user