X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Ftrending%2Fgraphs.py;fp=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Ftrending%2Fgraphs.py;h=36c19495a3ed7597acb4487650d773dd9dfb1c87;hp=a3357e49fb120d5ec692ddb0abce985bd54b4af0;hb=72766c8177fb76ac5ca4cbbfe616c19ec4a9a97a;hpb=01c8e09d4036daf1f6b5d26bdc48b9a723641005 diff --git a/resources/tools/dash/app/pal/trending/graphs.py b/resources/tools/dash/app/pal/trending/graphs.py index a3357e49fb..36c19495a3 100644 --- a/resources/tools/dash/app/pal/trending/graphs.py +++ b/resources/tools/dash/app/pal/trending/graphs.py @@ -213,7 +213,7 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame, for _, row in df.iterrows(): d_type = "trex" if row["dut_type"] == "none" else row["dut_type"] hover_itm = ( - f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}
" + f"date: {row['start_time'].strftime('%Y-%m-%d %H:%M:%S')}
" f" [{row[_UNIT[ttype]]}]: {row[_VALUE[ttype]]:,.0f}
" f"" f"{d_type}-ref: {row['dut_version']}
" @@ -238,7 +238,7 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame, for avg, stdev, (_, row) in zip(trend_avg, trend_stdev, df.iterrows()): d_type = "trex" if row["dut_type"] == "none" else row["dut_type"] hover_itm = ( - f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}
" + f"date: {row['start_time'].strftime('%Y-%m-%d %H:%M:%S')}
" f"trend [pps]: {avg:,.0f}
" f"stdev [pps]: {stdev:,.0f}
" f"{d_type}-ref: {row['dut_version']}
" @@ -294,7 +294,7 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame, anomaly_y.append(trend_avg[idx]) anomaly_color.append(_ANOMALY_COLOR[anomaly]) hover_itm = ( - f"date: {x_axis[idx].strftime('%d-%m-%Y %H:%M:%S')}
" + f"date: {x_axis[idx].strftime('%Y-%m-%d %H:%M:%S')}
" f"trend [pps]: {trend_avg[idx]:,.0f}
" f"classification: {anomaly}" )