fix for improper display of % of peak for instruction mix panel

Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
This commit is contained in:
Nicholas Curtis
2024-02-28 10:57:20 -05:00
کامیت شده توسط Cole Ramos
والد cdeef4ebb3
کامیت c10cc0ede2
+4 -1
مشاهده پرونده
@@ -227,10 +227,13 @@ def build_bar_chart(display_df, table_config, barchart_elements, norm_filt):
).update_xaxes(range=[0, 1638])
) # append second GB/s chart
else:
key = 'Avg'
if table_config['id'] in [1101]:
key = 'Pct of Peak'
d_figs.append(
px.bar(
display_df,
x="Avg",
x=key,
y="Metric",
color="Avg",
range_color=[0, 100],