Add interactivity to recently created graphs, this time using circles for interactivity
This commit is contained in:
5
utils.py
5
utils.py
@@ -412,12 +412,15 @@ def get_weekly_pr_graph_model(title, weekly_pr_data):
|
||||
|
||||
values_scaled = [((value - min_value) / value_range) * vb_height for value in values]
|
||||
plot_points = list(zip(values_scaled, relative_positions))
|
||||
messages = [f'{value} for {person_name} at {date.strftime("%d %b %y")}' for value, date in zip(values, pr_counts.keys())]
|
||||
plot_labels = zip(values_scaled, relative_positions, messages)
|
||||
|
||||
# Create a plot for each user
|
||||
plot = {
|
||||
'label': person_name, # Use PersonName instead of User ID
|
||||
'color': colors[count],
|
||||
'points': plot_points
|
||||
'points': plot_points,
|
||||
'plot_labels': plot_labels
|
||||
}
|
||||
plots.append(plot)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user