plotly / Plotly.NET

interactive graphing library for .NET programming languages :chart_with_upwards_trend:
https://plotly.net
MIT License
669 stars 88 forks source link

Custom Candlestick Colors does not seem to be working #229

Closed MaheshPunna closed 3 years ago

MaheshPunna commented 3 years ago
Chart.Candlestick(
    stockData,
    Increasing = Line.init (Color = Color.fromString "cyan"),
    Decreasing = Line.init (Color = Color.fromString "gray")
)

The same behavior is observed for Chart.OHLC

Current Behavior: image

Expected Behavior: image

neilyoung2008 commented 1 year ago

var candle_Chart = Chart2D.Chart.Candlestick<int, int, int, int, DateTime, string> ( open : open, high : high, low : low, close: close, X : date, Name: "K", IncreasingColor : upcolor, DecreasingColor : dncolor, //Increasing :FinanceMarker.init(MarkerColor:Color.fromString("black"), LineColor:upcolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid), //Decreasing :FinanceMarker.init(MarkerColor:dncolor, LineColor:dncolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid), ShowLegend : false,
Line : Line.init ( //Colorscale:colorscale,
//Color : Color.fromColorScaleValues(zd_colors), Width : 0.5 ),

                                                UseDefaults : false
                            );
neilyoung2008 commented 1 year ago

//Increasing :FinanceMarker.init(MarkerColor:Color.fromString("black"), LineColor:upcolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid), //Decreasing :FinanceMarker.init(MarkerColor:dncolor, LineColor:dncolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid),

The param : Increasing /Decreasing isnot work.

neilyoung2008 commented 1 year ago

@kMutagene

kMutagene commented 1 year ago

@neilyoung2008 please open a new issue with a well formatted reproducible code example, as well as information about the version, language, and os you are using.