-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
Presently negative labels are displayed on top of bars
... 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:
ScottPlot/src/ScottPlot4/ScottPlot/Plottable/BarPlot.cs
Lines 83 to 87 in 4008bdf
| 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); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
