Skip to content

Scale Bug in Callout Feature #4358

@endeffects

Description

@endeffects

@swharden There is an issue using callouts with time based candle stick charts

Chart without labels
image

Chart with labels
image

ScottPlot Version: latest

this.chartPlot.Plot.Clear();
this.chartPlot.Refresh();

this.chartPlot.Plot.Add.Candlestick(candles);

foreach (var label in summary.Labels)
{
    this.chartPlot.Plot.Add.Callout(label.Text, label.Time.ToOADate(), Convert.ToDouble(label.Price), label.Time.ToOADate(), Convert.ToDouble(label.Price));
}

this.chartPlot.Plot.Axes.DateTimeTicksBottom();
this.chartPlot.Plot.Axes.AutoScaleExpand();
this.chartPlot.Plot.HideGrid();
this.chartPlot.Refresh();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions