battery-chart
<data-view.battery-chart>
电池显示构件
Examples
Basic
ThresholdValue
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
value | number | |||
batteryWidth | number | |||
batteryHeight | number | |||
thresholdColors | ThresholdColor[] | |||
thresholdValue | number |
Type references
ThresholdColor
Name | Description | Type | Default | Required |
---|---|---|---|---|
color | React.CSSProperties["color"] | ✅ | ||
startValue | number | ✅ | ||
endValue | number | ✅ | ||
headerColor | 电池头的颜色,默认取 color,color为渐变色,需要单独配置头部颜色,请使用该属性 | React.CSSProperties["color"] |