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

How to make extra overlays on top of candles? #65

Open
4 tasks done
Fr3sto opened this issue Apr 13, 2023 · 1 comment
Open
4 tasks done

How to make extra overlays on top of candles? #65

Fr3sto opened this issue Apr 13, 2023 · 1 comment

Comments

@Fr3sto
Copy link

Fr3sto commented Apr 13, 2023

Describe the bug

I use Trades type Overlay after Candles. But in chart i cant see position of trades, because they are behind chart(
image

Reproduction

https://nightvision.dev/guide/built-in-overlays/Trades.html

Steps to reproduce

No response

Javascript Framework

no-framework (vanilla-js)

Logs

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a NightVision issue and not a framework-specific issue.
  • The provided reproduction is a minimal reproducible example of the bug.
@MrBjurhager
Copy link

MrBjurhager commented Apr 27, 2023

Have you tried the zIndex setting?
Example:

{
    name: "SMA",
    type: "Spline",
    data: indicators.sma,
    settings: {
        precision: 0,
        zIndex: 100  // <- This
    },
    props: {
        color: "#6fb6c7",
        lineWidth: 0.2,
    },
},

https://nightvision.dev/guide/data-struct/overlay-object.html#overlay-settings-zindex

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

2 participants