Skip to content

Commit

Permalink
Update point size based on series length
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Dec 18, 2024
1 parent 816fcd0 commit 14318bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def run():
y_coordinates.extend([i["y"] for i in s["data"]])
colors.extend([color] * len(s["data"]))

r = 0.1 if series_len > 1000 else 0.05
r = 0.15 if series_len > 1000 else 0.1
plot = Bokeh.Circle(x_coordinates, y_coordinates, radii=r, colors=colors)
bokeh.clear()
bokeh.add_plots([plot])
Expand Down

0 comments on commit 14318bf

Please sign in to comment.