-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
ScottPlot Version: 5.0.22
Hey. Thank you very much for ScottPlot, very convenient and intuitive.
However, I am having a hard time aligning the labels inside horizontally stacked bars.
I am using a WinForms library (if this changes anything)
I can use offsetY like this
var barPlot = PlotView.Plot.Add.Bars(bars);
barPlot.Horizontal = true;
barPlot.ValueLabelStyle.OffsetY = 30;
but the moment I change the number of bars it breaks =/

This is not too surprising (given that the bar width had changed). On this note I have a couple of questions I didn't find answers to
- Is it possible to set bars to constant width (so I can use the same offset)
- Is it possible to read the bar width (and adjust offset accordingly)
- Maybe there is an alignment option I missed? (I know there is
barPlot.ValueLabelStyle.Alignment = Alignment.MiddleCenter;but it works weird)
This is without offset with MiddleCenter alignment

I appreciate your work
Thanks in advance
-Sev
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
