Skip to content

OHLC/Candlestick charts: add option to remove range slider as high level argument #329

@kMutagene

Description

@kMutagene

Description

currently, it is only possible to remove the default rangeslider like this:

open Plotly.NET
open Plotly.NET.LayoutObjects
open System 

Chart.OHLC(
    ``open`` = [1.2; 2.7],
    high = [1.8; 8.5],
    low = [0.5; 0.1],
    close = [1.1; 2.9],
    x = [DateTime.Parse("07/07/2021"); DateTime.Parse("07/07/2022") ]
)
|> Chart.withXAxisRangeSlider(RangeSlider.init(Visible = false))

a direct option for this on Chart.OHLC would be better. same is true for Chart.Candlestick:

Chart.OHLC(
    ``open`` = [1.2; 2.7],
    high = [1.8; 8.5],
    low = [0.5; 0.1],
    close = [1.1; 2.9],
    x = [DateTime.Parse("07/07/2021"); DateTime.Parse("07/07/2022") ],
    ShowXAxisRangeSlider = false
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions