Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
feat(uti): hrdh latency graph
[csit.git]
/
resources
/
tools
/
dash
/
app
/
pal
/
trending
/
graphs.py
diff --git
a/resources/tools/dash/app/pal/trending/graphs.py
b/resources/tools/dash/app/pal/trending/graphs.py
index
dc4e7af
..
4273d9d
100644
(file)
--- a/
resources/tools/dash/app/pal/trending/graphs.py
+++ b/
resources/tools/dash/app/pal/trending/graphs.py
@@
-386,11
+386,6
@@
def graph_hdrh_latency(data: dict, layout: dict) -> go.Figure:
fig = None
fig = None
- try:
- name = data.pop("name")
- except (KeyError, AttributeError):
- return None
-
traces = list()
for idx, (lat_name, lat_hdrh) in enumerate(data.items()):
try:
traces = list()
for idx, (lat_name, lat_hdrh) in enumerate(data.items()):
try:
@@
-450,7
+445,6
@@
def graph_hdrh_latency(data: dict, layout: dict) -> go.Figure:
fig.add_traces(traces)
layout_hdrh = layout.get("plot-hdrh-latency", None)
if lat_hdrh:
fig.add_traces(traces)
layout_hdrh = layout.get("plot-hdrh-latency", None)
if lat_hdrh:
- layout_hdrh["title"]["text"] = f"<b>{name}</b>"
fig.update_layout(layout_hdrh)
return fig
fig.update_layout(layout_hdrh)
return fig