fix: 增加柱状体的极限百分比
parent
78322d65cd
commit
6abea9dffe
|
|
@ -47,6 +47,9 @@
|
|||
|
||||
const setChargePercentageByPath = (percent: number) => {
|
||||
// 图形宽55 高121 以此建立用户坐标系
|
||||
if(percent > 100) {
|
||||
percent = 100;
|
||||
}
|
||||
|
||||
// 这个图形的原本数据为 y="85" height="30"
|
||||
const pw1 = document.querySelector("g rect#pw1");
|
||||
|
|
|
|||
Loading…
Reference in New Issue