Plotly.NET icon indicating copy to clipboard operation
Plotly.NET copied to clipboard

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

Open kMutagene opened this issue 3 years ago • 0 comments

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
)

kMutagene avatar Jul 26 '22 16:07 kMutagene