Code Insights: Add dynamic y-axis width calculation
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 |
---|---|