summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
eefc901)
Change-Id: Ib08b31b6dda79c66f4d204145a1b2ed78e9636b4
Signed-off-by: Tibor Frank <tifrank@cisco.com>
- 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:
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
txt = lat_data["points"][0]["text"].replace("<br>", "\n")
hdrh_data = lat_data["points"][0].get("customdata", None)
if hdrh_data:
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",
metadata = [
dbc.Card(
class_name="g-0",
namelength: -1
plot-hdrh-latency:
namelength: -1
plot-hdrh-latency:
- title:
- text: "Latency by Percentile Distribution"
- xanchor: "center"
- x: 0.5
+ # title:
+ # text: "Latency by Percentile Distribution"
+ # xanchor: "center"
+ # x: 0.5
# font:
# size: 10
showlegend: True
# font:
# size: 10
showlegend: True
# tickfont:
# size: 14
yaxis:
# tickfont:
# size: 14
yaxis:
- title: "One-Way Latency per Direction [uSec]"
+ title: "One-Way Latency per Direction [us]"
# titlefont:
# size: 14
gridcolor: "rgb(230, 230, 230)"
# titlefont:
# size: 14
gridcolor: "rgb(230, 230, 230)"