mirror of https://github.com/openspug/spug
U 优化工作台应用部署图表百分比显示
parent
0b870654d1
commit
1a86c44bd8
|
@ -73,7 +73,8 @@ export default class AlarmTrend extends React.Component {
|
|||
<Label
|
||||
content="percent"
|
||||
formatter={(val, item) => {
|
||||
return item.point.name + ": " + val;
|
||||
const percent = (item.point['percent'] * 100).toFixed(2) + '%';
|
||||
return item.point.name + ": " + percent;
|
||||
}}
|
||||
/>
|
||||
</Geom>
|
||||
|
|
Loading…
Reference in New Issue