diff options
author | Tibor Frank <tifrank@cisco.com> | 2022-04-20 09:40:34 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2022-04-20 09:40:34 +0200 |
commit | f63e6b83d830734fdb94b8f0384a808f189711f1 (patch) | |
tree | a28aed5eb379778709d49fad2125b206b3c1a0c9 /resources/tools/dash/app/pal/trending/layout.py | |
parent | eefc901a89aa755ba41a2ec615da7610c57fe971 (diff) |
feat(uti): hrdh latency graph
Change-Id: Ib08b31b6dda79c66f4d204145a1b2ed78e9636b4
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/trending/layout.py')
-rw-r--r-- | resources/tools/dash/app/pal/trending/layout.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/resources/tools/dash/app/pal/trending/layout.py b/resources/tools/dash/app/pal/trending/layout.py index c12d64a213..dd097b449f 100644 --- a/resources/tools/dash/app/pal/trending/layout.py +++ b/resources/tools/dash/app/pal/trending/layout.py @@ -910,11 +910,20 @@ class Layout: txt = lat_data["points"][0]["text"].replace("<br>", "\n") hdrh_data = lat_data["points"][0].get("customdata", None) if hdrh_data: - graph = [dcc.Graph( - id="hdrh-latency-graph", - figure=graph_hdrh_latency(hdrh_data, self.layout) - ), ] - + graph = [dbc.Card( + class_name="g-0", + children=[ + dbc.CardHeader(hdrh_data.pop("name")), + dbc.CardBody(children=[ + dcc.Graph( + id="hdrh-latency-graph", + figure=graph_hdrh_latency( + hdrh_data, self.layout + ) + ) + ]) + ]) + ] metadata = [ dbc.Card( class_name="g-0", |