project-nv / night-vision

Highly customizable charting library, created for professional traders
https://nightvision.dev
MIT License
237 stars 54 forks source link

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

Open Fr3sto opened 1 year ago

Fr3sto commented 1 year ago

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

MrBjurhager commented 1 year ago

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