Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crosshair label text appears on the chart during initial render #1255

Closed
SlicedSilver opened this issue Feb 4, 2023 · 0 comments · Fixed by #1258 or #1262
Closed

Crosshair label text appears on the chart during initial render #1255

SlicedSilver opened this issue Feb 4, 2023 · 0 comments · Fixed by #1258 or #1262
Labels
bug Unexpected problem or unintended behavior.
Milestone

Comments

@SlicedSilver
Copy link
Contributor

SlicedSilver commented Feb 4, 2023

The first render of time scale, BEFORE you move your cursor over the chart, contains some artefact text drawn over a border, like on the screenshot below. Looks like the text normally drawn by CrosshairTimeAxisView

Lightweight Charts Version: master branch

Steps/code to reproduce:

  1. Create a chart, and don't interact with it.

Helps to change the background colour to make the text more visible

Actual behavior:
Crosshair text appears on the time scale (without the crosshair label background).

Expected behavior:
Crosshair labels shouldn't appear at all when the user hasn't interacted with the chart yet.

Screenshots:
crosshair_bug

@SlicedSilver SlicedSilver added the bug Unexpected problem or unintended behavior. label Feb 4, 2023
@SlicedSilver SlicedSilver added this to the 4.0 milestone Feb 4, 2023
@SlicedSilver SlicedSilver pinned this issue Feb 8, 2023
@SlicedSilver SlicedSilver unpinned this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior.
Projects
None yet
1 participant