Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions viewer/trends.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def get_results_dir():
return results_dir_candidates[1] # Fallback to default

def generate_d3_chart(df, x_col, y_col, hue_col, title, ylabel):
df_sorted = df.sort_values(by=x_col)

# job_id is unplotted but read by the tooltip in chart.js.
df_sorted = df[[x_col, y_col, hue_col, "job_id"]].sort_values(by=x_col)

# Convert dataframe to records for JSON
data_records = df_sorted.to_dict(orient='records')
import json
Expand Down
Loading