summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
65421a4)
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Id065f8ecd0571567f1f679bdd70c46794fc71a94
),
dcc.Loading(
dbc.Offcanvas(
),
dcc.Loading(
dbc.Offcanvas(
id="offcanvas-metadata",
title="Throughput And Latency",
placement="end",
id="offcanvas-metadata",
title="Throughput And Latency",
placement="end",
children=[
dcc.DatePickerRange(
id="dpr-period",
children=[
dcc.DatePickerRange(
id="dpr-period",
+ className="d-flex justify-content-center",
min_date_allowed=\
datetime.utcnow()-timedelta(days=180),
max_date_allowed=datetime.utcnow(),
min_date_allowed=\
datetime.utcnow()-timedelta(days=180),
max_date_allowed=datetime.utcnow(),
trigger_id = callback_context.triggered[0]["prop_id"].split(".")[0]
if trigger_id == "graph-tput":
title = "Throughput"
trigger_id = callback_context.triggered[0]["prop_id"].split(".")[0]
if trigger_id == "graph-tput":
title = "Throughput"
- txt = tput_data["points"][0]["text"].replace("<br>", "\n")
+ array = tput_data["points"][0]["text"].split("<br>")
+ children = [
+ dbc.ListGroupItem(
+ [dbc.Badge(x.split(":")[0]), x.split(": ")[1]]
+ ) for x in array
+ ]
elif trigger_id == "graph-latency":
title = "Latency"
elif trigger_id == "graph-latency":
title = "Latency"
- txt = lat_data["points"][0]["text"].replace("<br>", "\n")
+ array = lat_data["points"][0]["text"].split("<br>")
+ children = [
+ dbc.ListGroupItem(
+ [dbc.Badge(x.split(":")[0]), x.split(": ")[1]]
+ ) for x in array
+ ]
hdrh_data = lat_data["points"][0].get("customdata", None)
if hdrh_data:
graph = [dbc.Card(
hdrh_data = lat_data["points"][0].get("customdata", None)
if hdrh_data:
graph = [dbc.Card(
children=[
dbc.CardHeader(hdrh_data.pop("name")),
dbc.CardBody(children=[
children=[
dbc.CardHeader(hdrh_data.pop("name")),
dbc.CardBody(children=[
children=[
dbc.CardHeader(children=[
dcc.Clipboard(
children=[
dbc.CardHeader(children=[
dcc.Clipboard(
]),
dbc.CardBody(
id="tput-lat-metadata",
]),
dbc.CardBody(
id="tput-lat-metadata",
+ class_name="p-0",
+ children=[
+ dbc.ListGroup(children, flush=True)
+ ]