Skip to content

Code Insights: Add dynamic y-axis width calculation

Administrator requested to merge vk/add-dynamic-y-axis-width-calculation into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/23950

Context

This PR adds dynamic Y-axis calculations to be able to change width based on the biggest tick label for the y-axis. Before this PR we had just a static value (40px) this covered almost all cases but still there were some cases when this static padding value doesn't work really well.

Before After
Screenshot 2021-08-18 at 17 35 24 Screenshot 2021-08-18 at 17 26 38

Merge request reports

Loading