Skip to content

BarPlot: Tick labels should be displayed below negative bars #2148

@swharden

Description

@swharden

Presently negative labels are displayed on top of bars

https://scottplot.net/cookbook/4.1/category/plottable-bar-graph/#values-above-bars

test

... but it kind of makes sense when the flag is "show values above bars"

The API should extended to allow negative bars to show labels below them

New functionality could be added here:

if (ShowValuesAboveBars)
using (var valueTextFont = GDI.Font(Font))
using (var valueTextBrush = GDI.Brush(Font.Color))
using (var sf = new StringFormat() { LineAlignment = StringAlignment.Far, Alignment = StringAlignment.Center })
gfx.DrawString(ValueFormatter(value), valueTextFont, valueTextBrush, centerPx, rect.Y, sf);

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