Skip to content

fix(profiling): compute label precision#55981

Merged
JonasBa merged 1 commit into
masterfrom
jb/fix/label-position
Sep 11, 2023
Merged

fix(profiling): compute label precision#55981
JonasBa merged 1 commit into
masterfrom
jb/fix/label-position

Conversation

@JonasBa

@JonasBa JonasBa commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

Compute chart precision based off domain range
CleanShot 2023-09-11 at 13 01 38@2x

@JonasBa JonasBa requested a review from a team as a code owner September 11, 2023 11:03
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 11, 2023
@JonasBa JonasBa force-pushed the jb/fix/label-position branch from c0b0c25 to 121a47d Compare September 11, 2023 11:04
const textOffset = 2 * window.devicePixelRatio;
const text = this.chart.formatter(intervals[i]);

if (text === lastIntervalTxt) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the labels are so small that the text matches exactly to what we rendered before, then skip drawing it.

@JonasBa JonasBa merged commit 27dbbcc into master Sep 11, 2023
@JonasBa JonasBa deleted the jb/fix/label-position branch September 11, 2023 13:43
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants