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

Disable crosshair #49

Open
supriyakhankarnw18 opened this issue Jun 30, 2021 · 2 comments
Open

Disable crosshair #49

supriyakhankarnw18 opened this issue Jun 30, 2021 · 2 comments

Comments

@supriyakhankarnw18
Copy link

How to disable the crosshair ?

@timocov
Copy link
Contributor

timocov commented Jun 30, 2021

Will be fixed in tradingview/lightweight-charts#749.

@ihar-paliashchuk
Copy link

ihar-paliashchuk commented Aug 25, 2021

Looks like hiding a crosshair is available:

    chart.api.applyOptions {
        layout = layoutOptions {
             crosshair = CrosshairOptions(
                  vertLine = CrosshairLineOptions(visible = false, labelVisible = false),
                  horzLine = CrosshairLineOptions(visible = false, labelVisible = false)
              )
         }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants