Changeset 94129 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphsimple.py
- Timestamp:
- Mar 8, 2022 2:57:25 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphsimple.py
r93115 r94129 83 83 'border="0" cellspacing="0" cellpadding="0">\n' \ 84 84 % (escapeElem(oRow.sName), escapeAttr(str(self.cxMaxBar + 2))); 85 for j in range(len(oRow.aoValues)): 86 oValue = oRow.aoValues[j]; 85 for j, oValue in enumerate(oRow.aoValues): 87 86 cPct = int(float(oValue) * 100 / fpMax); 88 87 cxBar = int(float(oValue) * self.cxMaxBar / fpMax); … … 125 124 sReport += '<div class="tmgraphlegend">\n' \ 126 125 ' <p>Legend:\n'; 127 for j in range(len(aoTable[0].asValues)):126 for j, sValue in enumerate(aoTable[0].asValues): 128 127 sColor = self.kasColors[j % len(self.kasColors)]; 129 sReport += ' <font color="%s">■ %s</font>\n' \ 130 % (sColor, escapeElem(aoTable[0].asValues[j])); 128 sReport += ' <font color="%s">■ %s</font>\n' % (sColor, escapeElem(sValue),); 131 129 sReport += ' </p>\n' \ 132 130 '</div>\n';
Note:
See TracChangeset
for help on using the changeset viewer.