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 2f82862 commit 816fcd0
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.2 if series_len > 1000 else 0.5
r = 0.1 if series_len > 1000 else 0.05
plot = Bokeh.Circle(x_coordinates, y_coordinates, radii=r, colors=colors)
bokeh.clear()
bokeh.add_plots([plot])
Expand Down

0 comments on commit 816fcd0

Please sign in to comment.