Skip to content

Visual Candlestick Border glitch at certain zoom level #837

@AlgoExecutor

Description

@AlgoExecutor

Hello @swharden & Team,

thank you very much for the great work. I like the new candlestick feature to control the wick color :-)
While playing with the new code I noticed the following:
After a certain zoom level - when you zoom out - the candle body gets smaller but the border keeps it size. This leads to white areas at the top and bottom of the candle. Here is a picture:
image

Zoomed in:
image

The best way to observe this is when Anti Aliasing is turned off.
Version: ScottPlot 4.1.9-beta

var candlePlot = formsPlot.Plot.AddCandlesticks(pData.ToArray());
candlePlot.WickColor = Color.DimGray;
formsPlot.Plot.XAxis.DateTimeFormat(true);
formsPlot.Configuration.Quality = QualityMode.Low;
formsPlot.Render();

Thank You :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions